Bug 1058 - Mixed TLS models and DSOs
Summary: Mixed TLS models and DSOs
Status: RESOLVED WORKSFORME
Alias: None
Product: glibc
Classification: Unclassified
Component: nptl (show other bugs)
Version: 2.3.4
: P2 normal
Target Milestone: ---
Assignee: Ulrich Drepper
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-07-09 10:17 UTC by robertj
Modified: 2010-06-01 03:26 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:
Last reconfirmed:


Attachments
Makefile (177 bytes, text/plain)
2005-07-09 10:20 UTC, robertj
Details
DSO source (122 bytes, text/plain)
2005-07-09 10:20 UTC, robertj
Details
Driver source (163 bytes, text/plain)
2005-07-09 10:20 UTC, robertj
Details

Note You need to log in before you can comment on or make changes to this bug.
Description robertj 2005-07-09 10:17:59 UTC
If more then one TLS model is used by a DSO, loading such a
DSO w/out explicitly linking with the DSO leads to a heap
corruption in __tls_get_addr.

Reproduced with GLIBC 2.3.3, 2.3.4 on Linux 2.4, 2.6.

Test case

Run make debug
Comment 1 robertj 2005-07-09 10:20:07 UTC
Created attachment 548 [details]
Makefile
Comment 2 robertj 2005-07-09 10:20:34 UTC
Created attachment 549 [details]
DSO source
Comment 3 robertj 2005-07-09 10:20:57 UTC
Created attachment 550 [details]
Driver source
Comment 4 Petr Baudis 2010-06-01 03:26:07 UTC
Works for me with current glibc.