Description of problem: nptl thread segv's when killed How reproducible: Sometimes Steps to Reproduce: 1. run test code 2. 3. Actual results: Segmentation fault Expected results: live gracefully
Created attachment 120280 [details] testcase
I haven't been able to reproduce it yet, but the testcase is certainly buggy. See http://www.opengroup.org/onlinepubs/009695399/functions/xsh_chap02_04.html#tag_02_04_03 None of the calls you make in sig_handler are allowed in signal handlers, none of printf, exit, pthread_self and pthread_exit are async-signal safe functions. E.g. when thread_function enters pthread_exit call in it and a signal comes in, a crash is very much expected.