dlopen uniqueness bug

Richard Henderson rth@cygnus.com
Wed Feb 17 22:38:00 GMT 1999


Reported by Mike Shaver (shaver@netscape.com)

Repeat as

	gcc -shared -o /tmp/dll.so dll.c
	gcc -o /tmp/main main.c
	cd /tmp
	./main

We are only checking uniqueness of filename, not of file.  We should
be using stat to make sure the so isn't already loaded.  Solaris
gets this right.



r~


More information about the Libc-hacker mailing list