[asterisk-bugs] [Asterisk 0015345]: [patch] SIP deadlock in 1.4 revision 199472

Asterisk Bug Tracker noreply at bugs.digium.com
Mon Jun 22 09:34:14 CDT 2009


A NOTE has been added to this issue. 
====================================================================== 
https://issues.asterisk.org/view.php?id=15345 
====================================================================== 
Reported By:                aragon
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   15345
Category:                   Channels/chan_sip/General
Reproducibility:            random
Severity:                   major
Priority:                   normal
Status:                     ready for testing
Asterisk Version:           1.4.26-rc1 
Regression:                 No 
SVN Branch (only for SVN checkouts, not tarball releases):  1.4  
SVN Revision (number only!): 199472 
Request Review:              
====================================================================== 
Date Submitted:             2009-06-17 13:11 CDT
Last Modified:              2009-06-22 09:34 CDT
====================================================================== 
Summary:                    [patch] SIP deadlock in 1.4 revision 199472
Description: 
After some brief time SIP will lock and no calls will process.
======================================================================
Relationships       ID      Summary
----------------------------------------------------------------------
related to          0015213 [patch] asterisk lock in sipsock_read f...
related to          0014464 [patch] lock during simple call processing
====================================================================== 

---------------------------------------------------------------------- 
 (0106792) svnbot (reporter) - 2009-06-22 09:34
 https://issues.asterisk.org/view.php?id=15345#c106792 
---------------------------------------------------------------------- 
Repository: asterisk
Revision: 202336

U   branches/1.4/channels/chan_sip.c

------------------------------------------------------------------------
r202336 | mmichelson | 2009-06-22 09:34:05 -0500 (Mon, 22 Jun 2009) | 25
lines

Fix a possible infinite loop in SDP parsing during glare situation.

There was a while loop in get_ip_and_port_from_sdp which was controlled
by a call to get_sdp_iterate. The loop would exit either if what we were
searching for was found or if the return was NULL. The problem is that
get_sdp_iterate never returns NULL. This means that if what we were
searching
for was not present, the loop would run infinitely. This modification of
the
loop fixes the problem.

(closes issue https://issues.asterisk.org/view.php?id=15213)
Reported by: schmidts

(closes issue https://issues.asterisk.org/view.php?id=15349)
Reported by: samy

(closes issue https://issues.asterisk.org/view.php?id=14464)
Reported by: pj

(closes issue https://issues.asterisk.org/view.php?id=15345)
Reported by: aragon
Patches:
      sip_inf_loop.patch uploaded by mmichelson (license 60)
Tested by: aragon


------------------------------------------------------------------------

http://svn.digium.com/view/asterisk?view=rev&revision=202336 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2009-06-22 09:34 svnbot         Checkin                                      
2009-06-22 09:34 svnbot         Note Added: 0106792                          
======================================================================




More information about the asterisk-bugs mailing list