[asterisk-bugs] [JIRA] (ASTERISK-29155) app_queue: Deadlock between queues container and individual queues

Friendly Automation (JIRA) noreply at issues.asterisk.org
Thu Nov 12 16:20:15 CST 2020


    [ https://issues.asterisk.org/jira/browse/ASTERISK-29155?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=252728#comment-252728 ] 

Friendly Automation commented on ASTERISK-29155:
------------------------------------------------

Change 15172 merged by Kevin Harwell:
app_queue: Fix deadlock between update and show queues

[https://gerrit.asterisk.org/c/asterisk/+/15172|https://gerrit.asterisk.org/c/asterisk/+/15172]

> app_queue: Deadlock between queues container and individual queues
> ------------------------------------------------------------------
>
>                 Key: ASTERISK-29155
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-29155
>             Project: Asterisk
>          Issue Type: Bug
>      Security Level: None
>          Components: Applications/app_queue
>    Affects Versions: 13.37.1, 16.14.1, 17.8.1, 18.0.1
>            Reporter: George Joseph
>            Assignee: George Joseph
>
> Operations that update queues when shared_lastcall is set lock the queue in question, then have to lock the queues container to find the other queues with the same member.   On the other hand, __queues_show (which is called by both the CLI and AMI) does the reverse.  It locks the queues container, then iterates over the queues locking each in turn to display them.
> Deadlock.



--
This message was sent by Atlassian JIRA
(v6.2#6252)



More information about the asterisk-bugs mailing list