[Bug dynamic-link/14577] dlopen does not unload failed module - second dlopen succeeds
ossman at cendio dot se
sourceware-bugzilla@sourceware.org
Fri Sep 14 10:15:00 GMT 2012
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.
More information about the Glibc-bugs
mailing list