[Bug c/39130] [libdl] (Now and then) dynamic loading/un-loading of shared libraries not happening

ykalidas at gmail dot com gcc-bugzilla@gcc.gnu.org
Sun Feb 8 06:47:00 GMT 2009



------- Comment #4 from ykalidas at gmail dot com  2009-02-08 06:47 -------
PROBLEM -

when i change the libkali.so.1 and libkali.so in ./shared/ to point to either
of the libraries lib1.so.1.0 or lib2.so.1.0,

the program run only one of the codes to which it pointed earlier.

Example
#ln -sf `pwd`/lib1.so.1.0 shared/libkali.so; ln -sf `pwd`/lib1.so.1.0
shared/libkali.so.1
#./progdl would STILL INVOKE fun() in lib2.so.1.0 EVEN IF THE FILE IS REMOVED.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39130



More information about the Gcc-bugs mailing list