[asterisk-bugs] [JIRA] (ASTERISK-25362) Deadlock due to presence state callback

Mark Michelson (JIRA) noreply at issues.asterisk.org
Mon Aug 31 16:14:33 CDT 2015


     [ https://issues.asterisk.org/jira/browse/ASTERISK-25362?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Mark Michelson closed ASTERISK-25362.
-------------------------------------

    Resolution: Fixed

> 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
>
> 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