[asterisk-bugs] [Asterisk 0017931]: Random Deadlocks maybe in find_call() of chan_sip. or ast_call() of channel.c

Asterisk Bug Tracker noreply at bugs.digium.com
Thu Sep 9 04:58:19 CDT 2010


A NOTE has been added to this issue. 
====================================================================== 
https://issues.asterisk.org/view.php?id=17931 
====================================================================== 
Reported By:                thsgmbh
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   17931
Category:                   Channels/chan_sip/General
Reproducibility:            random
Severity:                   major
Priority:                   normal
Status:                     acknowledged
Asterisk Version:           SVN 
JIRA:                        
Regression:                 No 
Reviewboard Link:            
SVN Branch (only for SVN checkouts, not tarball releases): 1.6.2 
SVN Revision (number only!):  
Request Review:              
====================================================================== 
Date Submitted:             2010-08-31 02:38 CDT
Last Modified:              2010-09-09 04:58 CDT
====================================================================== 
Summary:                    Random Deadlocks maybe in find_call() of chan_sip.
or ast_call() of channel.c
Description: 
I get randomly deadlocks and i'm not sure, what's the reason for that!?!

It is reproducible with the attached test call file, which calls a ring
group with 5-10 extensions. The issue does not occur directly after
restarting asterisk but when there were at least some calls.

Maybe there are two different issues!?!
(backtrace1.txt after random daily deadlock, backtrace2-4.txt after
executing call file)

I have a feeling that the "notifycid=ignore-context" setting is
responsible for that!? All the extensions in the ring group have
subscriptions and generate dialoginfos for snom phones...

Backtrace debug files and test call file attached...
====================================================================== 

---------------------------------------------------------------------- 
 (0126771) schmidts (reporter) - 2010-09-09 04:58
 https://issues.asterisk.org/view.php?id=17931#c126771 
---------------------------------------------------------------------- 
thats normal asterisk locking behavior. you would see this on a high debug
level if you set the debug_locks option in make menuselect but thats not
your problem.

it looks like the problem which i has discovered of slow sip handling but
i never get a deadlock out of this.

maybe you should try this two patches from reviewboard:
https://reviewboard.asterisk.org/r/901/ (speed up subscribe handling)
https://reviewboard.asterisk.org/r/825/ (speed up registration)

this would speed up sip handling maybe enough so these lockings will not
occur any more. 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2010-09-09 04:58 schmidts       Note Added: 0126771                          
======================================================================




More information about the asterisk-bugs mailing list