This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug dynamic-link/14511] dlclose DSO unloading fundamentally unsafe
- From: "ppluzhnikov at google dot com" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sources dot redhat dot com
- Date: Thu, 23 Aug 2012 05:24:13 +0000
- Subject: [Bug dynamic-link/14511] dlclose DSO unloading fundamentally unsafe
- Auto-submitted: auto-generated
- References: <bug-14511-131@http.sourceware.org/bugzilla/>
http://sourceware.org/bugzilla/show_bug.cgi?id=14511
Paul Pluzhnikov <ppluzhnikov at google dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |ppluzhnikov at google dot
| |com
--- Comment #4 from Paul Pluzhnikov <ppluzhnikov at google dot com> 2012-08-23 05:24:13 UTC ---
> Unfortunately, this operation is fundamentally unsafe.
No, it isn't. Unloading a library that wasn't designed to be unloadable is
unsafe, so don't do that.
Unloading in general is very useful, so blank disable of unloading you proposed
would be akin to throwing the baby out with the bathwater.
Finally, a library can be linked with -Wl,-z,nodelete, which would prevent it
from ever being unloaded.
--
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.