[asterisk-bugs] [Asterisk 0014211]: Asterisk Crashes with signal 11 (segmentation fault) at random intervals (but at least 2 times a day)

Asterisk Bug Tracker noreply at bugs.digium.com
Fri Jan 16 16:46:10 CST 2009


A NOTE has been added to this issue. 
====================================================================== 
http://bugs.digium.com/view.php?id=14211 
====================================================================== 
Reported By:                aborghi
Assigned To:                putnopvut
====================================================================== 
Project:                    Asterisk
Issue ID:                   14211
Category:                   Channels/chan_sip/Registration
Reproducibility:            random
Severity:                   crash
Priority:                   normal
Status:                     closed
Asterisk Version:           1.4.22 
Regression:                 No 
SVN Branch (only for SVN checkouts, not tarball releases): N/A 
SVN Revision (number only!):  
Request Review:              
Resolution:                 fixed
Fixed in Version:           
====================================================================== 
Date Submitted:             2009-01-11 16:34 CST
Last Modified:              2009-01-16 16:46 CST
====================================================================== 
Summary:                    Asterisk Crashes with signal 11 (segmentation fault)
at random intervals (but at least 2 times a day)
Description: 
Asterisk Crashes with signal 11 (segmentation fault) at random intervals
(but at least 2 times a day)

Asterisk began crashing after a configuration change to the sip channel to
handle two additional Corda numbers (before we had only one number and the
server keep running months).
Beside the obvious error in sip configuration i was going to solve,
asterisk began crashing more or less regularly after adding the
registrations for the new corda numbers, totalling 3 SIP registrations to
the cordia servers.

while debugging, I noted that che cordia servers does not seem to reply in
a timely manner to the sip requests, delaying registrations for long time
before accepting it.

from various backtraces i done while preparing the files for the report,
form various different crashes, i see that the signal 11 occours every time
in handle_response_register

A thing i noted is that while i have registerattempts=10 when the
registrations to cordia are timing out in the messages in the console i see
ALWAYS the attempt count a 0. It seems that asterisk is not counting
attempts to register to the cordia servers so it is not reaching the limit
i imposed of 10 attempts.


====================================================================== 

---------------------------------------------------------------------- 
 (0098062) svnbot (reporter) - 2009-01-16 16:46
 http://bugs.digium.com/view.php?id=14211#c98062 
---------------------------------------------------------------------- 
Repository: asterisk
Revision: 168978

_U  branches/1.6.0/
U   branches/1.6.0/channels/chan_sip.c

------------------------------------------------------------------------
r168978 | mmichelson | 2009-01-16 16:46:10 -0600 (Fri, 16 Jan 2009) | 34
lines

Merged revisions 168976 via svnmerge from 
https://origsvn.digium.com/svn/asterisk/trunk

................
r168976 | mmichelson | 2009-01-16 16:43:09 -0600 (Fri, 16 Jan 2009) | 26
lines

Merged revisions 168975 via svnmerge from 
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r168975 | mmichelson | 2009-01-16 16:42:13 -0600 (Fri, 16 Jan 2009) | 18
lines

Account for possible NULL pointer when we receive a 408 in response to a
REGISTER

It may be that by the time we receive a reply to a REGISTER request, the
attempt has
timed out and thus the registry structure pointed to by the corresponding
sip_pvt has
gone away. This situation was handled properly for a 200 OK response, but
the 408
case assumed that the sip_registry struct was non-NULL, thus potentially
causing a crash

This commit fixes this assumption and prints out a message to the console
if we should
receive a late 408 response to a REGISTER


(closes issue http://bugs.digium.com/view.php?id=14211)
Reported by: aborghi
Patches:
      14211.diff uploaded by putnopvut (license 60)
Tested by: aborghi


........

................

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

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

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2009-01-16 16:46 svnbot         Checkin                                      
2009-01-16 16:46 svnbot         Note Added: 0098062                          
======================================================================




More information about the asterisk-bugs mailing list