[PATCH v2] Test case for BZ 19329
Szabolcs Nagy
szabolcs.nagy@arm.com
Fri Nov 25 11:15:00 GMT 2016
Test concurrent dlopen and pthread_create when the loaded
modules have TLS. This triggers dl-tls assertion failures
more reliably than the tst-stack4 test.
The dlopened module has 100 DT_NEEDED dependencies and
the number of concurrent threads created during dlopen
can wildly depend on filesystem speed and hardware.
v2:
- undef NDEBUG.
- join nop threads so at most 3 threads exist at a time.
- remove stack size setting (resource usage is no longer a concern).
- stop creating threads after dlopen observably finished.
- print the number of threads created for debugging.
Doing the test in a fork loop can make it more reliable,
but not any faster.
2016-11-25 Szabolcs Nagy <szabolcs.nagy@arm.com>
* nptl/Makefile (tests): Add tst-tls7.
(modules-names): Add tst-tls7mod, tst-tls7mod-dep.
* nptl/tst-tls7.c: New file.
* nptl/tst-tls7mod-dep.c: New file.
* nptl/tst-tls7mod.c: New file.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: tls7_3.diff
Type: text/x-patch
Size: 4095 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/libc-alpha/attachments/20161125/9ba076eb/attachment.bin>
More information about the Libc-alpha
mailing list