[asterisk-bugs] [JIRA] (ASTERISK-25362) Deadlock due to presence state callback
Kevin Harwell (JIRA)
noreply at issues.asterisk.org
Tue Sep 29 16:42:37 CDT 2015
[ https://issues.asterisk.org/jira/browse/ASTERISK-25362?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Kevin Harwell updated ASTERISK-25362:
-------------------------------------
Target Release Version/s: 13.6.0
> Deadlock due to presence state callback
> ---------------------------------------
>
> Key: ASTERISK-25362
> URL: https://issues.asterisk.org/jira/browse/ASTERISK-25362
> Project: Asterisk
> Issue Type: Bug
> Security Level: None
> Components: Core/PBX
> Affects Versions: 11.19.0, 13.5.0
> Reporter: Mark Michelson
> Target Release: 13.6.0
>
>
> A deadlock was observed where three threads were competing for different locks:
> * One thread held the hints lock and was attempting to lock a specific hint.
> * One thread was holding the specific hint's lock and was attempting to lock the contexts lock
> * One thread was holding the contexts lock and attempting to lock the hints lock.
> Clearly the second thread was doing the wrong thing here. The fix for this is to make sure that the hint's lock is not held on presence state changes. Something similar is already done (and commented about) for device state changes.
--
This message was sent by Atlassian JIRA
(v6.2#6252)
More information about the asterisk-bugs
mailing list