[Bug 680125] New: dlclose() can not unload all dynamic libraries
https://bugzilla.novell.com/show_bug.cgi?id=680125 https://bugzilla.novell.com/show_bug.cgi?id=680125#c0 Summary: dlclose() can not unload all dynamic libraries Classification: openSUSE Product: openSUSE 11.4 Version: Final Platform: Other OS/Version: Other Status: NEW Severity: Major Priority: P5 - None Component: Development AssignedTo: pth@novell.com ReportedBy: gotterdammerung@web.de QAContact: qa@suse.de Found By: --- Blocker: --- Created an attachment (id=419657) --> (http://bugzilla.novell.com/attachment.cgi?id=419657) test program which opens a dl from cmdline, closes it and checks if it is still open User-Agent: Mozilla/5.0 (X11; U; Linux i686; de-DE; rv:1.9.2.15) Gecko/20110310 Gentoo Firefox/3.6.15 A call to dlclose() does not unload some dynamic libraries, even if the reference count drops to zero and no other loaded libraries use symbols in it. See attached test programm. Some libraries like 'pthread' exhibit this behaviour and it propagates up the dependency chain. This breaks programs which rely on reloading of affected dynamic libraries. Reproducible: Always Steps to Reproduce: 1. compile test program with 'g++ test.cpp -otest -ldl' 2. run 'for file in /usr/lib64/lib*.so; do ./test $file; done | grep failed' Actual Results: see attachment #2 Expected Results: /usr/lib64/librt.so failed. (at least that is what happens on my gentoo machine) AFAIK, x86_64 and x86 are both affected. Related: [[bugzilla:645652]] -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=680125
https://bugzilla.novell.com/show_bug.cgi?id=680125#c1
--- Comment #1 from John Doe
https://bugzilla.novell.com/show_bug.cgi?id=680125
https://bugzilla.novell.com/show_bug.cgi?id=680125#c2
John Doe
https://bugzilla.novell.com/show_bug.cgi?id=680125
https://bugzilla.novell.com/show_bug.cgi?id=680125#c
Philipp Thomas
https://bugzilla.novell.com/show_bug.cgi?id=680125
https://bugzilla.novell.com/show_bug.cgi?id=680125#c3
Michael Matz
https://bugzilla.novell.com/show_bug.cgi?id=680125
https://bugzilla.novell.com/show_bug.cgi?id=680125#c4
Petr Baudis
https://bugzilla.novell.com/show_bug.cgi?id=680125
https://bugzilla.novell.com/show_bug.cgi?id=680125#c
Philipp Thomas
https://bugzilla.novell.com/show_bug.cgi?id=680125
https://bugzilla.novell.com/show_bug.cgi?id=680125#c6
John Doe
https://bugzilla.novell.com/show_bug.cgi?id=680125
https://bugzilla.novell.com/show_bug.cgi?id=680125#c
Michael Matz
https://bugzilla.novell.com/show_bug.cgi?id=680125
https://bugzilla.novell.com/show_bug.cgi?id=680125#c7
Fons Rademakers
https://bugzilla.novell.com/show_bug.cgi?id=680125
https://bugzilla.novell.com/show_bug.cgi?id=680125#c9
Pat Saull
https://bugzilla.novell.com/show_bug.cgi?id=680125
https://bugzilla.novell.com/show_bug.cgi?id=680125#c12
--- Comment #12 from Bernhard Wiedemann
https://bugzilla.novell.com/show_bug.cgi?id=680125
https://bugzilla.novell.com/show_bug.cgi?id=680125#c13
--- Comment #13 from Swamp Workflow Management
https://bugzilla.novell.com/show_bug.cgi?id=680125
https://bugzilla.novell.com/show_bug.cgi?id=680125#c14
Andreas Schwab
https://bugzilla.novell.com/show_bug.cgi?id=680125
https://bugzilla.novell.com/show_bug.cgi?id=680125#c15
Andreas Schwab
http://bugzilla.novell.com/show_bug.cgi?id=680125
http://bugzilla.novell.com/show_bug.cgi?id=680125#c16
Stanislav Brabec
participants (1)
-
bugzilla_noreply@novell.com