This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug dynamic-link/15686] New: Shared-object static constructors called with a lock held


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]