This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug dynamic-link/14577] dlopen does not unload failed module - second dlopen succeeds


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]