Opened on 07/26/11 at 17:28:06
Closed on 07/31/11 at 21:47:10
#1855 closed defect (fixed)
Processing of signal during pthread_join()
Reported by: | Joel Sherrill | Owned by: | Joel Sherrill |
---|---|---|---|
Priority: | normal | Milestone: | 4.11 |
Component: | score | Version: | 4.11 |
Severity: | normal | Keywords: | |
Cc: | lj8175@… | Blocked By: | |
Blocking: |
Description
It appears that Linux unblocks a thread waiting on a pthread_join(), dispatches the signal handler, and then has the thread reblock. This was detected in the GCJ porting effort.
This appears to be the expected behaviour of pthread_mutex_lock(). From http://pubs.opengroup.org/onlinepubs/007908799/xsh/pthread_mutex_lock.html
"If a signal is delivered to a thread waiting for a mutex, upon return from the signal handler the thread resumes waiting for the mutex as if it was not interrupted. "
It is unclear how many POSIX calls we consider "non-interruptible" actually have this behaviour.
Attachments (4)
Change History (8)
Changed on 07/26/11 at 17:31:58 by Joel Sherrill
Attachment: | pr1855.diff added |
---|
comment:1 Changed on 07/31/11 at 21:36:05 by Joel Sherrill
Cc: | Jie Liu added |
---|
comment:2 Changed on 07/31/11 at 21:45:57 by Joel Sherrill
attachments.isobsolete: | 0 → 1 |
---|
comment:3 Changed on 07/31/11 at 21:47:10 by Joel Sherrill
Resolution: | → fixed |
---|---|
Status: | new → closed |
Patch merged. Closing.
comment:4 Changed on 11/24/14 at 18:58:28 by Gedare Bloom
Version: | HEAD → 4.11 |
---|
Replace Version=HEAD with Version=4.11 for the tickets with Milestone >= 4.11
Attempt to address issue