[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:57:57 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:57 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:57
----------------------------------------------------------------------
Adding a patch, which I believe correctly unregisters the IO if the
bindaddr changes, and becomes illegal.
I have only tested this on 1.2.25, but it seems to work there.
The uploaded patch is for 1.4.15.
Issue History
Date Modified Username Field Change
======================================================================
12-13-07 06:57 one47 Note Added: 0075333
======================================================================
More information about the asterisk-bugs
mailing list