Bug 111660 - pthread canceltype changed after a pthread_cond_timedwait()
pthread canceltype changed after a pthread_cond_timedwait()
Product: Red Hat Linux
Classification: Retired
Component: glibc (Show other bugs)
i386 Linux
medium Severity high
: ---
: ---
Assigned To: Jakub Jelinek
Brian Brock
Depends On:
  Show dependency treegraph
Reported: 2003-12-08 04:44 EST by Davide Guerri
Modified: 2007-04-18 13:00 EDT (History)
0 users

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

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

  None (edit)
Description Davide Guerri 2003-12-08 04:44:06 EST
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (compatible; Konqueror/3.1)

Description of problem:
Canceltype of a thread is changed to PTHREAD_CANCEL_ASYNCHRONOUS if it is interrupted by a pthread_cond_signal() while blocked in pthread_cond_timedwait().

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

How reproducible:

Steps to Reproduce:
1.Compile and execute the test program below 

Actual Results:  [tato@Gohan a]$ ./bug_signal
cancel type = deferred
cancel type = asynchronous

Expected Results:  The cancel type should remain deferred.

Additional info:
Comment 1 Davide Guerri 2003-12-08 04:45:44 EST
Created attachment 96392 [details]
Test program for the bug.
Comment 2 Ulrich Drepper 2003-12-18 02:17:03 EST
Even with the oldest FC1 glibc I get

cancel type = deferred
cancel type = deferred

Again, if anything this is only a problem with missing backported patches.

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