[Bug dynamic-link/14989] New: dlerror() returns garbage

Arfrever.FTA at GMail dot Com sourceware-bugzilla@sourceware.org
Sun Dec 30 08:23:00 GMT 2012


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.



More information about the Glibc-bugs mailing list