This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug dynamic-link/14989] New: dlerror() returns garbage
- From: "Arfrever.FTA at GMail dot Com" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sourceware dot org
- Date: Sun, 30 Dec 2012 08:22:54 +0000
- Subject: [Bug dynamic-link/14989] New: dlerror() returns garbage
- Auto-submitted: auto-generated
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.