Hide Forgot
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.
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