Bug 111663 - cancellation is enabled in pthread cleanup handlers
cancellation is enabled in pthread cleanup handlers
Status: CLOSED CURRENTRELEASE
Product: Red Hat Linux
Classification: Retired
Component: glibc (Show other bugs)
9
i386 Linux
medium Severity high
: ---
: ---
Assigned To: Jakub Jelinek
Brian Brock
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2003-12-08 05:05 EST by Davide Guerri
Modified: 2016-11-24 10:10 EST (History)
1 user (show)

See Also:
Fixed In Version: FC1
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2004-05-27 16:58:40 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)
Test program for the bug. (1.50 KB, text/plain)
2003-12-08 05:06 EST, Davide Guerri
no flags Details

  None (edit)
Description Davide Guerri 2003-12-08 05:05:53 EST
From Bugzilla Helper: 
User-Agent: Mozilla/5.0 (compatible; Konqueror/3.1) 
 
Description of problem: 
A thread can be canceled in cancellation cleanup handlers. This can 
leads to re-execution of handlers. 
 
 
Version-Release number of selected component (if applicable): 
glibc-2.3.2-27.9.7 
 
How reproducible: 
Always 
 
Steps to Reproduce: 
1. Compile and execute test program below 
     
 
Actual Results:  1) 
cleanup handler (begin) 
cleanup handler (end) 
cleanup handler (begin) 
cleanup handler (end) 
 
2) 
cleanup handler (begin) 
cleanup handler (begin) 
cleanup handler (end) 
cleanup handler (begin) 
cleanup handler (end) 
Bye! 
 
 
Expected Results:  Cancellation should be disabled during the 
execution of cleanup handlers. 
(http://www.opengroup.org/onlinepubs/007904975/functions/xsh_chap02_09.html#tag_02_09_05_03) 
 
Additional info:
Comment 1 Davide Guerri 2003-12-08 05:06:57 EST
Created attachment 96395 [details]
Test program for the bug.
Comment 2 Ulrich Drepper 2003-12-18 02:15:10 EST
Even with the oldest FC1 glibc I have around I get

1)
cleanup handler (begin)
cleanup handler (end)
 
2)
cleanup handler (begin)
cleanup handler (end)
Bye!

I don't have a RHL9 system here.  If your program indeed produces the
output you say it gives, then it's only a matter of patches which are
not backported.

Note You need to log in before you can comment on or make changes to this bug.