This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]