diff options
author | Szabolcs Nagy <szabolcs.nagy@arm.com> | 2016-12-13 12:28:41 +0000 |
---|---|---|
committer | Szabolcs Nagy <szabolcs.nagy@arm.com> | 2021-05-11 17:16:37 +0100 |
commit | 9d0e30329c23b5ad736fda3f174208c25970dbce (patch) | |
tree | 884dd5a22724d0bacbeeb921313c371b2ccbd02f /elf/tst-tls21mod.c | |
parent | f4f8f4d4e0f92488431b268c8cd9555730b9afe9 (diff) | |
download | glibc-9d0e30329c23b5ad736fda3f174208c25970dbce.zip glibc-9d0e30329c23b5ad736fda3f174208c25970dbce.tar.gz glibc-9d0e30329c23b5ad736fda3f174208c25970dbce.tar.bz2 |
elf: Add test case for [BZ #19329]
Test concurrent dlopen and pthread_create when the loaded modules have
TLS. This triggers dl-tls assertion failures more reliably than the
nptl/tst-stack4 test.
The dlopened module has 100 DT_NEEDED dependencies with TLS, they were
reused from an existing TLS test. The number of created threads during
dlopen depends on filesystem speed and hardware, but at most 3 threads
are alive at a time to limit resource usage.
Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Diffstat (limited to 'elf/tst-tls21mod.c')
-rw-r--r-- | elf/tst-tls21mod.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/elf/tst-tls21mod.c b/elf/tst-tls21mod.c new file mode 100644 index 0000000..206ece4 --- /dev/null +++ b/elf/tst-tls21mod.c @@ -0,0 +1 @@ +int __thread x; |