This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug dynamic-link/15134] New: dlmopen fails to initialize pthread TLS to NULL
- From: "bb.sourcesbugz at magitech dot org" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sourceware dot org
- Date: Mon, 11 Feb 2013 08:48:37 +0000
- Subject: [Bug dynamic-link/15134] New: dlmopen fails to initialize pthread TLS to NULL
- Auto-submitted: auto-generated
http://sourceware.org/bugzilla/show_bug.cgi?id=15134
Bug #: 15134
Summary: dlmopen fails to initialize pthread TLS to NULL
Product: glibc
Version: 2.15
Status: NEW
Severity: normal
Priority: P2
Component: dynamic-link
AssignedTo: unassigned@sourceware.org
ReportedBy: bb.sourcesbugz@magitech.org
Classification: Unclassified
Created attachment 6862
--> http://sourceware.org/bugzilla/attachment.cgi?id=6862
Test case failing for pthread_getspecific.
Using the dlmopen() interface, calls to pthread_getspecific with a newly
created key fail to return NULL values. It is uncertain if the memory location
being addressed by the pthread_setspecific and pthread_getspecific is even the
correct memory location.
Attached unittest outputs:
[dev.00:45:47:dev3:dlmopen]$ make all
gcc -pthread -ggdb main.c -ldl -o testlib
gcc -pthread lib.c -fPIC -o lib.o -c
gcc -shared -Wl,-soname,libtest.so -o libtest.so.1 lib.o -pthread
[dev.00:47:47:dev3:dlmopen]$ make run
./testlib
dlmopen test begin
Mapping: 0
Mapping: 1
Mapping: 2
Calling: 0
key created: 0, failed to return default NULL value: 0x8416008
Calling: 1
key created: 0, failed to return default NULL value: 0x8416008
Calling: 2
key created: 0, failed to return default NULL value: 0x8416008
dlmopen test complete
dlopen test begin
dlopen test complete
=================== version ===================
/lib/i386-linux-gnu/libc.so.6
GNU C Library (Ubuntu EGLIBC 2.15-0ubuntu10.3) stable release version 2.15, by
Roland McGrath et al.
Copyright (C) 2012 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.
Compiled by GNU CC version 4.6.3.
Compiled on a Linux 3.2.30 system on 2012-10-05.
Available extensions:
crypt add-on version 2.1 by Michael Glad and others
GNU Libidn by Simon Josefsson
Native POSIX Threads Library by Ulrich Drepper et al
BIND-8.2.3-T5B
libc ABIs: UNIQUE IFUNC
--
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.