From 9d0e30329c23b5ad736fda3f174208c25970dbce Mon Sep 17 00:00:00 2001 From: Szabolcs Nagy Date: Tue, 13 Dec 2016 12:28:41 +0000 Subject: 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 --- elf/tst-tls21mod.c | 1 + 1 file changed, 1 insertion(+) create mode 100644 elf/tst-tls21mod.c (limited to 'elf/tst-tls21mod.c') diff --git a/elf/tst-tls21mod.c b/elf/tst-tls21mod.c new file mode 100644 index 0000000000..206ece4fb3 --- /dev/null +++ b/elf/tst-tls21mod.c @@ -0,0 +1 @@ +int __thread x; -- cgit 1.4.1