[c++-pthreads] Re: pthread_cancel and EH: let's try this again

George Shimanovich gshiman at commvault.com
Fri Jul 15 21:50:06 UTC 2005


Mark Mitchell
>George Shimanovich wrote:
>
>> According to my colleges and mine experience using pthread in 
>> GNU/Linux entire program crashes when thread is cancelled due to 
>> abort() or cancelled thread hangs in system space. That is 
>> collaborated by this quote from Jason:
>> 	>And the current status quo in GCC: 
>> 	>(3) #1, except that the destructor for the exception calls
>> abort())
>
>I believe that happens only if the catch handler does not rethrow the 
>exception.
Thanks for answering. 
Unfortunately no. I definitely tried rethrowing exception. 
And, after thread cancellation, depending on the Linux system used, 
the program either crashed or cancelled thread hung in system part of
the stack. 
Because of that Linux remains the only OS where we do not use pthreads.
Attached is my 1 year old post to this list with more details.

George Shimanovich
CommVault Systems, Inc.

-------------- next part --------------
An embedded message was scrubbed...
From: "George Shimanovich" <gshiman at commvault.com>
Subject: [c++-pthreads] Complete fix to cancellation/stack unwinding problem of deferred Posix threads
Date: Fri, 25 Jun 2004 17:49:12 -0400
Size: 3768
URL: <http://sourcerytools.com/pipermail/c++-pthreads/attachments/20050715/e25f6193/attachment.mht>


More information about the c++-pthreads mailing list