[asterisk-bugs] [Asterisk 0018989]: Segmentation fault if address can't resolved

Asterisk Bug Tracker noreply at bugs.digium.com
Sun Mar 20 03:02:30 CDT 2011


A NOTE has been added to this issue. 
====================================================================== 
https://issues.asterisk.org/view.php?id=18989 
====================================================================== 
Reported By:                Netview
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   18989
Category:                   Core/Netsock
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     new
Asterisk Version:           1.8.2.4 
JIRA:                        
Regression:                 No 
Reviewboard Link:            
SVN Branch (only for SVN checkouts, not tarball releases): N/A 
SVN Revision (number only!): 311197 
Request Review:              
====================================================================== 
Date Submitted:             2011-03-17 17:33 CDT
Last Modified:              2011-03-20 03:02 CDT
====================================================================== 
Summary:                    Segmentation fault if address can't resolved
Description: 
[2011-03-17 23:17:40] ERROR[1702]: netsock2.c:245 ast_sockaddr_resolve:
getaddrinfo("sip.terralink.de", "(null)", ...): Name or service not known
[2011-03-17 23:17:40] WARNING[1702]: acl.c:579 resolve_first: Unable to
lookup 'sip.terralink.de'
[2011-03-17 23:17:40] WARNING[1702]: acl.c:422 ast_append_ha: Invalid IP
address: (null)
Segmentation fault

a ping to sip.terralink.de gives no answer!
====================================================================== 

---------------------------------------------------------------------- 
 (0133029) alecdavis (manager) - 2011-03-20 03:02
 https://issues.asterisk.org/view.php?id=18989#c133029 
---------------------------------------------------------------------- 
unable to repeat
Tried with the following
 1.8.2.4 tag release
 SVN-trunk-r311142 
 SVN-trunk-r311427M

Assuming your using below in using sip.conf
register => 1234:password at mysipprovider.com

[2011-03-20 20:54:20.095354] ERROR[23838]: netsock2.c:245
ast_sockaddr_resolve: getaddrinfo("mysipprovider.com", "(null)", ...): Name
or service not known
[2011-03-20 20:54:20.095450] WARNING[23838]: acl.c:579 resolve_first:
Unable to lookup 'mysipprovider.com'
[2011-03-20 20:54:20.096621] WARNING[23838]: acl.c:708 ast_ouraddrfor:
Cannot connect
[2011-03-20 20:54:20.097169] WARNING[23838]: chan_sip.c:3165 __sip_xmit:
sip_xmit of 0x87eea50 (len 385) to (null) returned -1: Invalid argument

register => 1234:password at sip.terralink.de
seems to be working

A backtrace would, not forgetting to compile with DONT OPTIMIZE enabled 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2011-03-20 03:02 alecdavis      Note Added: 0133029                          
======================================================================




More information about the asterisk-bugs mailing list