This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug dynamic-link/14932] dlsym(handle, "foo") and dlsym(RTLD_NEXT, "foo") return different result with versioned "foo"
- From: "carlos at redhat dot com" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sourceware dot org
- Date: Mon, 27 Oct 2014 18:47:42 +0000
- Subject: [Bug dynamic-link/14932] dlsym(handle, "foo") and dlsym(RTLD_NEXT, "foo") return different result with versioned "foo"
- Auto-submitted: auto-generated
- References: <bug-14932-131 at http dot sourceware dot org/bugzilla/>
https://sourceware.org/bugzilla/show_bug.cgi?id=14932
Carlos O'Donell <carlos at redhat dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |carlos at redhat dot com
--- Comment #1 from Carlos O'Donell <carlos at redhat dot com> ---
Worse is that dlsym for a symbol that has no default returns NULL, for example
in the case of libpthread.so and you must then use dlvsym to get the symbol.
I agree this should be fixed and dlsym should behave like the application would
normally behave had it just been compiled. You get the default version of the
symbol and RTLD_NEXT gives you the next version and so on.
--
You are receiving this mail because:
You are on the CC list for the bug.