public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug dynamic-link/14989] New: dlerror() returns garbage
@ 2012-12-30  8:23 Arfrever.FTA at GMail dot Com
  2012-12-31  0:20 ` [Bug dynamic-link/14989] " bugdal at aerifal dot cx
                   ` (9 more replies)
  0 siblings, 10 replies; 11+ messages in thread
From: Arfrever.FTA at GMail dot Com @ 2012-12-30  8:23 UTC (permalink / raw)
  To: glibc-bugs

http://sourceware.org/bugzilla/show_bug.cgi?id=14989

             Bug #: 14989
           Summary: dlerror() returns garbage
           Product: glibc
           Version: 2.16
            Status: NEW
          Severity: normal
          Priority: P2
         Component: dynamic-link
        AssignedTo: unassigned@sourceware.org
        ReportedBy: Arfrever.FTA@GMail.Com
    Classification: Unclassified


$ gcc -xc - -fPIC -shared -o libtest.so <<< ""
$ cat dlerror_test.c
#include <dlfcn.h>
#include <stdio.h>

int main()
{
  void* handle = dlopen("libtest.so", RTLD_NOW);
  dlclose(handle);
  dlclose(handle);
  printf("dlerror(): '%s'\n", dlerror());
}
$ gcc -o dlerror_test dlerror_test.c -ldl
$ LD_LIBRARY_PATH="." ./dlerror_test
dlerror(): '�Ue: shared object not open'
$ LD_LIBRARY_PATH="." ./dlerror_test
dlerror(): '��: shared object not open'
$ LD_LIBRARY_PATH="." ./dlerror_test
dlerror(): '�u�: shared object not open'
$ LD_LIBRARY_PATH="." ./dlerror_test
dlerror(): '��5: shared object not open'
$ LD_LIBRARY_PATH="." ./dlerror_test
dlerror(): '�5�: shared object not open'
$ LD_LIBRARY_PATH="." ./dlerror_test
dlerror(): '�*: shared object not open'
$ LD_LIBRARY_PATH="." ./dlerror_test
dlerror(): '�%�: shared object not open'
$ LD_LIBRARY_PATH="." ./dlerror_test
dlerror(): '�e=: shared object not open'

-- 
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.


^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2014-06-26 13:38 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-12-30  8:23 [Bug dynamic-link/14989] New: dlerror() returns garbage Arfrever.FTA at GMail dot Com
2012-12-31  0:20 ` [Bug dynamic-link/14989] " bugdal at aerifal dot cx
2012-12-31  9:18 ` Arfrever.FTA at GMail dot Com
2012-12-31 15:10 ` bugdal at aerifal dot cx
2013-01-01 10:12 ` Arfrever.FTA at GMail dot Com
2013-01-01 21:27 ` bugdal at aerifal dot cx
2013-01-10 18:56 ` bugdal at aerifal dot cx
2013-10-11 19:42 ` neleai at seznam dot cz
2013-10-11 21:31 ` bugdal at aerifal dot cx
2014-06-14  5:28 ` fweimer at redhat dot com
2014-06-26 13:38 ` fweimer at redhat dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).