Bug 684808 - PTHREAD_CANCEL_DISABLE does not disable cancellation
Summary: PTHREAD_CANCEL_DISABLE does not disable cancellation
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: glibc
Version: 5.5
Hardware: All
OS: Linux
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Andreas Schwab
QA Contact: qe-baseos-tools-bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-03-14 14:58 UTC by Per Mildner
Modified: 2016-11-24 16:01 UTC (History)
4 users (show)

Fixed In Version: glibc-2.5-64
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-07-21 08:31:48 UTC
Target Upstream Version:


Attachments (Terms of Use)
Transcript and source code for reproducer. (8.58 KB, text/plain)
2011-03-14 14:58 UTC, Per Mildner
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2011:1034 0 normal SHIPPED_LIVE glibc bug fix update 2011-07-20 15:44:02 UTC

Description Per Mildner 2011-03-14 14:58:16 UTC
Created attachment 484208 [details]
Transcript and source code for reproducer.

Description of problem:
pthread_cancel can cancel I/O (e.g. write()) while PTHREAD_CANCEL_DISABLE is in effect

Version-Release number of selected component (if applicable):


How reproducible:
See attached transcript

Steps to Reproduce:
1. compile and run the program as shown in transcript. It should exit successfully, eventually.
  
Actual results:
write() is cancelled despite PTHREAD_CANCEL_DISABLE being in effect. The test program then aborts (intentionally).

Expected results:


Additional info:

See the transcript for cancel_leak.c where I have described my (somewhat old) analysis of what I think happens.

I have reproduced this on RH 5.4 on PowerPC as well and on several versions of both x86 and x86_64 versions of Linux.

Comment 3 errata-xmlrpc 2011-07-21 08:31:48 UTC
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

http://rhn.redhat.com/errata/RHBA-2011-1034.html


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