Your message dated Wed, 27 Jul 2016 00:06:54 +0200 with message-id <[email protected]> and subject line Bug#430732: dlvsym() returns NULL on failure, but does not let dlerror() do the work on failure has caused the Debian Bug report #430732, regarding dlvsym() returns NULL on failure, but does not let dlerror() do the work on failure to be marked as done.
This means that you claim that the problem has been dealt with. If this is not the case it is now your responsibility to reopen the Bug report if necessary, and/or fix the problem forthwith. (NB: If you are a system administrator and have no idea what this message is talking about, this may indicate a serious mail system misconfiguration somewhere. Please contact [email protected] immediately.) -- 430732: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=430732 Debian Bug Tracking System Contact [email protected] with problems
--- Begin Message ---Package: libc6 Version: 2.5-9 dlvsym can fail but does not seem to set dlerror(), contrary to the manpage, which explains that error conditions should check dlvsym=NULL and dlerror!=NULL, because 0 is a valid address. The same can be said about dlsym also. The following code outputs: (nil) which is not expected. /*BINFMTC: -ldl dlvsym test code */ #define _GNU_SOURCE #include <dlfcn.h> #include <stdio.h> int main() { dlerror(); if (!dlvsym(RTLD_NEXT, "chown", "NONEXIST")) { printf("%p\n", dlerror()); } return 0; } regards, junichi -- dancer@{debian.org,netfort.gr.jp} Debian Project
--- End Message ---
--- Begin Message ---control: forwarded -1 https://sourceware.org/bugzilla/show_bug.cgi?id=19509 control: close -1 glibc/2.23.90+20160507.87523e9-1 On 2007-06-27 06:53, Junichi Uekawa wrote: > Package: libc6 > Version: 2.5-9 > > dlvsym can fail but does not seem to set dlerror(), contrary to the > manpage, which explains that error conditions should check dlvsym=NULL > and dlerror!=NULL, because 0 is a valid address. > The same can be said about dlsym also. > > > > The following code outputs: > (nil) > which is not expected. > > > > /*BINFMTC: -ldl > dlvsym test code > */ > #define _GNU_SOURCE > #include <dlfcn.h> > #include <stdio.h> > > int main() > { > dlerror(); > if (!dlvsym(RTLD_NEXT, "chown", "NONEXIST")) > { > printf("%p\n", dlerror()); > } > return 0; > } It happens this bug has been reported upstream has bz #19509. This bug has been fixed in the about to be released glibc 2.24. A version with this fix is available in experimental. I am therefore closing the bug with this version. -- Aurelien Jarno GPG: 4096R/1DDD8C9B [email protected] http://www.aurel32.net
--- End Message ---

