[Bug dynamic-link/15134] New: dlmopen fails to initialize pthread TLS to NULL

classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

[Bug dynamic-link/15134] New: dlmopen fails to initialize pthread TLS to NULL

tromey at sourceware dot org
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: [hidden email]
        ReportedBy: [hidden email]
    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.
Reply | Threaded
Open this post in threaded view
|

[Bug dynamic-link/15134] dlmopen fails to initialize pthread TLS to NULL

tromey at sourceware dot org
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.
Reply | Threaded
Open this post in threaded view
|

[Bug dynamic-link/15134] dlmopen fails to initialize pthread TLS to NULL

tromey at sourceware dot org
In reply to this post by tromey at sourceware dot org
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.
Reply | Threaded
Open this post in threaded view
|

[Bug dynamic-link/15134] dlmopen fails to initialize pthread TLS to NULL

tromey at sourceware dot org
In reply to this post by tromey at sourceware dot org
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.
Reply | Threaded
Open this post in threaded view
|

[Bug dynamic-link/15134] dlmopen fails to initialize pthread TLS to NULL

tromey at sourceware dot org
In reply to this post by tromey at sourceware dot org
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.
Reply | Threaded
Open this post in threaded view
|

[Bug dynamic-link/15134] dlmopen fails to initialize pthread TLS to NULL

tromey at sourceware dot org
In reply to this post by tromey at sourceware dot org
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.