[asterisk-bugs] [Asterisk 0011862]: Possible deadlock on realtime queues.

noreply at bugs.digium.com noreply at bugs.digium.com
Tue Jan 29 16:41:58 CST 2008


email_notification_title_for_status_bug_ready_for_testing 
====================================================================== 
http://bugs.digium.com/view.php?id=11862 
====================================================================== 
Reported By:                flujan
Assigned To:                putnopvut
====================================================================== 
Project:                    Asterisk
Issue ID:                   11862
Category:                   Applications/app_queue
Reproducibility:            always
Severity:                   block
Priority:                   normal
Status:                     ready for testing
Asterisk Version:           1.4.17 
SVN Branch (only for SVN checkouts, not tarball releases): N/A 
SVN Revision (number only!):  
Disclaimer on File?:        N/A 
Request Review:              
====================================================================== 
Date Submitted:             01-29-2008 07:07 CST
Last Modified:              01-29-2008 16:41 CST
====================================================================== 
Summary:                    Possible deadlock on realtime queues.
Description: 
After some time working queues stop working. I try to place calls and it
works, i can even place members on a queue but the callers are not
delivered to the agents.


Recompiled asterisk with DONT_OPTIMIZE and DEBUG_THREADS and the core show
locks of the problems follows.
====================================================================== 

---------------------------------------------------------------------- 
 putnopvut - 01-29-08 16:41  
---------------------------------------------------------------------- 
After looking at the code more carefully, I actually found that
add_to_interfaces was actually very consistent in the order used for
locking (always queue list, then individual queue, then interface list).
What I found was inconsistent, however, was the mess of locking done in
remove_from_interfaces. I moved a statement in remove_from_interfaces so
that the locking would be less messy, hopefully. I would appreciate your
testing 11862.patch to see if the deadlock happens with it. Thanks! 

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
01-29-08 16:41  putnopvut      Note Added: 0081370                          
01-29-08 16:41  putnopvut      Status                   assigned => ready for
testing
======================================================================




More information about the asterisk-bugs mailing list