This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug dynamic-link/14577] dlopen does not unload failed module - second dlopen succeeds
- From: "ossman at cendio dot se" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sources dot redhat dot com
- Date: Fri, 14 Sep 2012 10:15:19 +0000
- Subject: [Bug dynamic-link/14577] dlopen does not unload failed module - second dlopen succeeds
- Auto-submitted: auto-generated
- References: <bug-14577-131@http.sourceware.org/bugzilla/>
http://sourceware.org/bugzilla/show_bug.cgi?id=14577
--- Comment #3 from Pierre Ossman <ossman at cendio dot se> 2012-09-14 10:15:19 UTC ---
Created attachment 6633
--> http://sourceware.org/bugzilla/attachment.cgi?id=6633
test case
Test case that provokes this bug. Example run:
~/devel/dlfail
[ossman@ossman]$ ./program
Opening module.so (first attempt)...
Result: OK
Getting function...
Result: OK
Calling function...
./program: symbol lookup error: ./module.so: undefined symbol: library_function
~/devel/dlfail
[ossman@ossman]$ LD_BIND_NOW=1 ./program
Opening module.so (first attempt)...
Result: fail
Opening module.so (second attempt)...
Result: OK
Getting function...
Result: OK
Calling function...
Segmentation fault (core dumped)
The structure is:
program === dlopen() ==> module.so === dynlink ==> library.so
But library.so is constructed so it lacks a symbol that module.so expects.
--
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.