[Bug 198452] libthr/rtld deadlock

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Mon Mar 9 15:07:04 UTC 2015


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=198452

Konstantin Belousov <kib at FreeBSD.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |Works As Intended
                 CC|                            |kib at FreeBSD.org
             Status|New                         |Closed

--- Comment #1 from Konstantin Belousov <kib at FreeBSD.org> ---
(In reply to dpejesh from comment #0)

Dlopen/dlclose cannot work in the context of the dl_iterate_phdr(3) callback. 
At least, because the dl_iterate_phdr() walks over the list of the loaded
shared objects, so in the language terms, it is the iterator over collection,
and collection must be stable.  The callback API does not suppose a possibitily
of restart.

That said, callback is intended to perform some lookups on the per object
basis, e.g. enumerate exception tables, debug sections and like.

The revisions you point out as causing the problem obviously mean that this
never worked anyway.

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-threads mailing list