Red Hat Bugzilla – Bug 150911
exiting pthreads from an xterm process kills the xterm
Last modified: 2015-01-04 17:17:39 EST
Description of problem:
I have a simple application that creates pthreads. The behavior is the same
whether the thread is detached or whether I try to join to it. When I run the
application from a normal terminal, it works as expected. If I try to run it
in its own xterm (ie. xterm -e appName), the xterm dies as soon as the first
Version-Release number of selected component (if applicable):
Very. I was also able to reproduce it by running the application using a
Steps to Reproduce:
1.gcc threadTest.c -lpthread
2.xterm -e ./a.out
xterm exits after first thread exits.
xterm exits when all five threads of the parent process exit
LD_ASSUME_KERNEL <= 2.4.19 works
LD_ASSUME_KERNEL >= 2.4.20 does not work
I'm providing a very simple test case that demonstrates the problem.
Created attachment 111904 [details]
Sample code to generate the problem
is this repeatable with the errata kernel ?
2.6.9-1.667 is ancient now.
Updating to 2.6.10-1.770 fixed the problem. Thanks for your help.