This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug libc/12561] ld.so: dlclose() can remove required local scope elements of NODELETE linkmaps
- From: "matz at suse dot de" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sources dot redhat dot com
- Date: Wed, 25 May 2011 15:16:11 +0000
- Subject: [Bug libc/12561] ld.so: dlclose() can remove required local scope elements of NODELETE linkmaps
- Auto-submitted: auto-generated
- References: <bug-12561-131@http.sourceware.org/bugzilla/>
http://sourceware.org/bugzilla/show_bug.cgi?id=12561
--- Comment #3 from Michael Matz <matz at suse dot de> 2011-05-25 15:15:55 UTC ---
Created attachment 5749
--> http://sourceware.org/bugzilla/attachment.cgi?id=5749
better testcase
Indeed, this is a better testcase really reflecting what the proxy library
does. The important part is that there needs to be two (independend)
libraries loaded, that one dependency of one of them is nodelete, and has a
finalizer that needs to lookup something in its own dependencies that wasn't
available before. Then with unpatched glibc:
# make
# /tmp/mm/lib64/ld-linux-x86-64.so.2 --library-path /tmp/mm/lib64/ ./app
./app: symbol lookup error: /suse/matz/src/nodeletebug/lib2.so: undefined
symbol: in_lib3
with patched glibc:
# ./app
#
--
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.