public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug dynamic-link/15134] New: dlmopen fails to initialize pthread TLS to NULL
@ 2013-02-11  8:48 bb.sourcesbugz at magitech dot org
  2013-02-11  8:49 ` [Bug dynamic-link/15134] " bb.sourcesbugz at magitech dot org
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: bb.sourcesbugz at magitech dot org @ 2013-02-11  8:48 UTC (permalink / raw)
  To: glibc-bugs

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.


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug dynamic-link/15134] dlmopen fails to initialize pthread TLS to NULL
  2013-02-11  8:48 [Bug dynamic-link/15134] New: dlmopen fails to initialize pthread TLS to NULL bb.sourcesbugz at magitech dot org
@ 2013-02-11  8:49 ` bb.sourcesbugz at magitech dot org
  2013-02-11  9:03 ` sourceware.bugzilla at jey dot kottalam.net
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: bb.sourcesbugz at magitech dot org @ 2013-02-11  8:49 UTC (permalink / raw)
  To: glibc-bugs

http://sourceware.org/bugzilla/show_bug.cgi?id=15134

Benn <bb.sourcesbugz at magitech dot org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |bb.sourcesbugz at magitech
                   |                            |dot org

-- 
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.


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug dynamic-link/15134] dlmopen fails to initialize pthread TLS to NULL
  2013-02-11  8:48 [Bug dynamic-link/15134] New: dlmopen fails to initialize pthread TLS to NULL bb.sourcesbugz at magitech dot org
  2013-02-11  8:49 ` [Bug dynamic-link/15134] " bb.sourcesbugz at magitech dot org
@ 2013-02-11  9:03 ` sourceware.bugzilla at jey dot kottalam.net
  2014-06-13 18:51 ` fweimer at redhat dot com
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: sourceware.bugzilla at jey dot kottalam.net @ 2013-02-11  9:03 UTC (permalink / raw)
  To: glibc-bugs

http://sourceware.org/bugzilla/show_bug.cgi?id=15134

sourceware.bugzilla at jey dot kottalam.net changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |sourceware.bugzilla at jey
                   |                            |dot kottalam.net

-- 
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.


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug dynamic-link/15134] dlmopen fails to initialize pthread TLS to NULL
  2013-02-11  8:48 [Bug dynamic-link/15134] New: dlmopen fails to initialize pthread TLS to NULL bb.sourcesbugz at magitech dot org
  2013-02-11  8:49 ` [Bug dynamic-link/15134] " bb.sourcesbugz at magitech dot org
  2013-02-11  9:03 ` sourceware.bugzilla at jey dot kottalam.net
@ 2014-06-13 18:51 ` fweimer at redhat dot com
  2014-06-26 13:51 ` fweimer at redhat dot com
  2020-12-22 13:00 ` sware at reimardoeffinger dot de
  4 siblings, 0 replies; 6+ messages in thread
From: fweimer at redhat dot com @ 2014-06-13 18:51 UTC (permalink / raw)
  To: glibc-bugs

https://sourceware.org/bugzilla/show_bug.cgi?id=15134

Florian Weimer <fweimer at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |fweimer at redhat dot com

-- 
You are receiving this mail because:
You are on the CC list for the bug.


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug dynamic-link/15134] dlmopen fails to initialize pthread TLS to NULL
  2013-02-11  8:48 [Bug dynamic-link/15134] New: dlmopen fails to initialize pthread TLS to NULL bb.sourcesbugz at magitech dot org
                   ` (2 preceding siblings ...)
  2014-06-13 18:51 ` fweimer at redhat dot com
@ 2014-06-26 13:51 ` fweimer at redhat dot com
  2020-12-22 13:00 ` sware at reimardoeffinger dot de
  4 siblings, 0 replies; 6+ messages in thread
From: fweimer at redhat dot com @ 2014-06-26 13:51 UTC (permalink / raw)
  To: glibc-bugs

https://sourceware.org/bugzilla/show_bug.cgi?id=15134

Florian Weimer <fweimer at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
              Flags|                            |security-

-- 
You are receiving this mail because:
You are on the CC list for the bug.


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug dynamic-link/15134] dlmopen fails to initialize pthread TLS to NULL
  2013-02-11  8:48 [Bug dynamic-link/15134] New: dlmopen fails to initialize pthread TLS to NULL bb.sourcesbugz at magitech dot org
                   ` (3 preceding siblings ...)
  2014-06-26 13:51 ` fweimer at redhat dot com
@ 2020-12-22 13:00 ` sware at reimardoeffinger dot de
  4 siblings, 0 replies; 6+ messages in thread
From: sware at reimardoeffinger dot de @ 2020-12-22 13:00 UTC (permalink / raw)
  To: glibc-bugs

https://sourceware.org/bugzilla/show_bug.cgi?id=15134

Reimar Döffinger <sware at reimardoeffinger dot de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |sware at reimardoeffinger dot de

--- Comment #2 from Reimar Döffinger <sware at reimardoeffinger dot de> ---
Could this actually be the same as
https://sourceware.org/bugzilla/show_bug.cgi?id=26955 ?
I noticed that it also has this effect since the code ensuring the NULL
initialization is not very robust either (it compares a sequence number on
access, but does not set to NULL on create).

-- 
You are receiving this mail because:
You are on the CC list for the bug.

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2020-12-22 13:00 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-02-11  8:48 [Bug dynamic-link/15134] New: dlmopen fails to initialize pthread TLS to NULL bb.sourcesbugz at magitech dot org
2013-02-11  8:49 ` [Bug dynamic-link/15134] " bb.sourcesbugz at magitech dot org
2013-02-11  9:03 ` sourceware.bugzilla at jey dot kottalam.net
2014-06-13 18:51 ` fweimer at redhat dot com
2014-06-26 13:51 ` fweimer at redhat dot com
2020-12-22 13:00 ` sware at reimardoeffinger dot de

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).