[Home]

Summary:ASTERISK-25355: sched: ast_sched_del may return prematurely due to spurious wakeup
Reporter:Joshua C. Colp (jcolp)Labels:
Date Opened:2015-08-28 19:57:48Date Closed:2015-08-29 07:56:20
Priority:MinorRegression?No
Status:Closed/CompleteComponents:Core/General
Versions:Frequency of
Occurrence
Related
Issues:
causesASTERISK-25023 Deadlock in chan_sip in update_provisional_keepalive
Environment:Attachments:
Description:When deleting a scheduled item if the item in question is currently executing the ast_sched_del function waits until it has completed. This is accomplished using ast_cond_wait. Unfortunately the ast_cond_wait function can suffer from spurious wakeups so the predicate needs to be checked after it returns to make sure it has really woken up as a result of being signaled.
Comments: