Bug 73765

Summary: not all theads of a terminated process terminate.
Product: [Retired] Red Hat Linux Reporter: george.miller
Component: glibcAssignee: Jakub Jelinek <jakub>
Status: CLOSED CURRENTRELEASE QA Contact: Brian Brock <bbrock>
Severity: medium Docs Contact:
Priority: medium    
Version: 7.2CC: fweimer
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2003-04-22 05:17:49 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
source for sample to show not all threads terminate when process terminates.
none
binary for testcore.c none

Description george.miller 2002-09-10 14:35:34 UTC
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 
executable. 
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
3. 

Actual Results:


Expected Results:


Additional Information:

Comment 1 george.miller 2002-09-10 14:37:10 UTC
Created attachment 75684 [details]
source for sample to show not all threads terminate when process terminates.

Comment 2 george.miller 2002-09-10 14:37:56 UTC
Created attachment 75685 [details]
binary for testcore.c

Comment 3 Ulrich Drepper 2003-04-22 05:17:49 UTC
This definitely doesn't happen with the current release anymore if NPTL is used.
 LinuxThreads will always have problems.