[asterisk-bugs] [Asterisk 0011535]: chan_sip can cause 100% CPU usage

noreply at bugs.digium.com noreply at bugs.digium.com
Thu Dec 13 06:58:45 CST 2007


A NOTE has been added to this issue. 
====================================================================== 
http://bugs.digium.com/view.php?id=11535 
====================================================================== 
Reported By:                one47
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   11535
Category:                   Channels/chan_sip/General
Reproducibility:            always
Severity:                   crash
Priority:                   normal
Status:                     new
Asterisk Version:           1.4.15  
SVN Branch (only for SVN checkouts, not tarball releases): N/A  
SVN Revision (number only!):  
Disclaimer on File?:        N/A 
Request Review:              
====================================================================== 
Date Submitted:             12-13-2007 06:56 CST
Last Modified:              12-13-2007 06:58 CST
====================================================================== 
Summary:                    chan_sip can cause 100% CPU usage
Description: 
When using "-p" realtime priority, this will kill the server!

It is unlikely to happen, but is totally reproducable here on both 1.2 and
1.4 systems. Set in sip.conf a valid IP configuration, eg:
  [general]
  port = 5060
  bindaddr = 10.0.0.16
and restart asterisk. This registers the FD with asterisk core-io OK. Now
change it to an "illegal" IP address that you know will fail, eg:
  [general]
  port = 5060
  bindaddr = 10.0.0.17
SIP notices that it cannot use this anymore, but fail to deregister the
fact with asterisk's core-io list, so the io being carried out on
chan_sip's behalf fails, and logs an error message every few milliseconds.

When running in high priority mode, this wipes out the box. When not in
high priority mode, a major stream of errors is output, which is quite
inconvenient!
====================================================================== 

---------------------------------------------------------------------- 
 one47 - 12-13-07 06:58  
---------------------------------------------------------------------- 
Forgot to mention in the original report - The hang is caused when "sip
reload" is executed. 

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
12-13-07 06:58  one47          Note Added: 0075334                          
======================================================================




More information about the asterisk-bugs mailing list