A small testcase for dlopen bug

H . J . Lu hjl@lucon.org
Sat Jun 1 09:47:00 GMT 2002


I finally found a small testcase for the dlopen bug. The problem is
we don't handle circular dependency right in case of relocation error:

./main foo.so 2>&1
Link map:
name = "", count = 0x0
name = "/lib/libdl.so.2", count = 0x4002a000
name = "/lib/i686/libc.so.6", count = 0x0
name = "/lib/ld-linux.so.2", count = 0x40000000
Loading: foo.so: Failed: ðáqBðáqBo: shared object not open
Link map:
name = "", count = 0x0
name = "/lib/libdl.so.2", count = 0x4002a000
name = "/lib/i686/libc.so.6", count = 0x0
name = "/lib/ld-linux.so.2", count = 0x40000000
name = "./libfoo.so", count = 0x4001a000

BTW, Solaris 8 is ok.


H.J.



More information about the Libc-alpha mailing list