Red Hat Bugzilla – Bug 73765
not all theads of a terminated process terminate.
Last modified: 2016-11-24 09:59:30 EST
Description of Problem:I have a process (see attached files) that when it aborts (segv), all of the threads terminate except one (either the thread
waiting on sigwait or the main thread blocked ona mutex lock in exi). Sometimes all threads terminate, but it is a rare case. I am attaching a source file and an
i\I am on kernel 2.4.9-31 with dual pentiums 933mhz.
Version-Release number of selected component (if applicable):
How Reproducible: almost every time
Steps to Reproduce:
1. compile attached source file (gcc -g -otestcore testcore.c -D_REENTRANT -lpthread
2. or run attached binary
Created attachment 75684 [details]
source for sample to show not all threads terminate when process terminates.
Created attachment 75685 [details]
binary for testcore.c
This definitely doesn't happen with the current release anymore if NPTL is used.
LinuxThreads will always have problems.