From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9239 invoked by alias); 11 Feb 2013 08:48:59 -0000 Received: (qmail 9139 invoked by uid 48); 11 Feb 2013 08:48:39 -0000 From: "bb.sourcesbugz at magitech dot org" To: glibc-bugs@sourceware.org Subject: [Bug dynamic-link/15134] New: dlmopen fails to initialize pthread TLS to NULL Date: Mon, 11 Feb 2013 08:48:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: glibc X-Bugzilla-Component: dynamic-link X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: bb.sourcesbugz at magitech dot org X-Bugzilla-Status: NEW X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: Message-ID: X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 Mailing-List: contact glibc-bugs-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: glibc-bugs-owner@sourceware.org X-SW-Source: 2013-02/txt/msg00057.txt.bz2 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.