Email List: Xaustin-review-lX
[All Lists]

Defect in XSH pthread_exit -- thread termination

To: yyyyyyyyyyyyyyy@xxxxxxxxxxxxx
Subject: Defect in XSH pthread_exit -- thread termination
From: yyyyyyyy@xxxxxxxxxx
Date: Fri, 4 Apr 2003 15:54:57 +0100 (BST)
        Defect report from : Alexander Terekhov , IBM

(Please direct followup comments direct to yyyyyyyyyyyyyy@xxxxxxxxxxxxx)

@ page 1052 line 33028,33036 section pthread_exit -- thread termination comment 
{alt-pthread_exit-2003-04-04}

Problem:

Defect code :  2. Omission

Two problems. The first one is "the same thing" as with the
pthread_cancel(). It's reported in "alt-pthread_cancel-2003-04-04" 
DR of mine. Please see that DR for details. The second one is that 
<quote> there really should be no restrictions on pthread_exit that 
don't apply to cancellation -- they're effectively the same 
</quote yyyyyyyyyyyyyyyyyyyyy@xxxxxx>: 

http://google.com/groups?threadm=3e8c8a0f%40usenet01.boi.hp.com
(Subject: Re: cancellation during cleanup handler execution)

sorry for a google reference, I just can't resist.

Action:

1. Insert the following wording (or something like that) at 33028
(after "...unspecified order."):

<insert>

Before cancellation cleanup handlers followed by thread-specific 
data destructor functions are executed, the thread's cancelability 
state shall be set to PTHREAD_CANCEL_DISABLE and thread's 
cancelability type shall be set to PTHREAD_CANCEL_DEFERRED.

</insert>

2. Insert the following wording (or something like that) at 33036
(after "...pthread_exit()"):

<insert> or cancellation processing </insert>

<Prev in Thread] Current Thread [Next in Thread>
  • Defect in XSH pthread_exit -- thread termination, terekhov <=