This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug dynamic-link/15686] New: Shared-object static constructors called with a lock held
- From: "macro at linux-mips dot org" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sourceware dot org
- Date: Wed, 26 Jun 2013 22:43:09 +0000
- Subject: [Bug dynamic-link/15686] New: Shared-object static constructors called with a lock held
- Auto-submitted: auto-generated
http://sourceware.org/bugzilla/show_bug.cgi?id=15686
Bug ID: 15686
Summary: Shared-object static constructors called with a lock
held
Product: glibc
Version: unspecified
Status: NEW
Severity: normal
Priority: P2
Component: dynamic-link
Assignee: unassigned at sourceware dot org
Reporter: macro@linux-mips.org
CC: macro@linux-mips.org
Target: *-*-*
Shared-object static constructors are user code that the C library has no
control of. They are called with the GL(dl_load_lock) lock held and are
therefore prone to a deadlock if they call back into the wrong part of
ld.so. The exact call sequence is:
_dl_open -> dl_open_worker -> _dl_init -> call_init -> user code
and in the sequence above _dl_open takes the GL(dl_load_lock) lock before
calling dl_open_worker. This affects all targets.
See also:
http://sourceware.org/ml/libc-alpha/2013-06/msg00802.html
http://sourceware.org/ml/libc-alpha/2013-06/msg00828.html
--
You are receiving this mail because:
You are on the CC list for the bug.