[Home]

Summary:ASTERISK-03122: Asterisk crashes when SIP client tries to register
Reporter:mactijn (mactijn)Labels:
Date Opened:2004-12-29 06:55:36.000-0600Date Closed:2008-01-15 15:18:38.000-0600
Priority:CriticalRegression?No
Status:Closed/CompleteComponents:Channels/chan_sip/Subscriptions
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:
Description:Asterisk crashes when trying to register with X-PRO with invalid credentials.

****** ADDITIONAL INFORMATION ******

(gdb) backtrace
#0  0xb7fd25ed in pthread_mutex_lock () from /lib/tls/i686/cmov/libpthread.so.0
#1  0xb4f0ca1c in register_verify (p=0x83205b8, sin=0xb4eea780, req=0xb4eea790, uri=0xb4eea9ad "sip:213.204.230.37", ignore=0) at chan_sip.c:5017
#2  0xb4f08b84 in handle_request (p=0x83205b8, req=0xb4eea790, sin=0xb4eea780, recount=0x0, nounlock=0xb4eea718) at chan_sip.c:7843
#3  0xb4f03fef in sipsock_read (id=0x810d448, fd=10, events=1, ignore=0x0) at chan_sip.c:7941
#4  0x08052cc0 in ast_io_wait (ioc=0x8146870, howlong=0) at io.c:267
ASTERISK-1  0xb4efe58b in do_monitor (data=0x0) at chan_sip.c:8088
ASTERISK-2  0xb7fd0ae0 in start_thread () from /lib/tls/i686/cmov/libpthread.so.0
ASTERISK-3  0xb7ed289a in clone () from /lib/tls/i686/cmov/libc.so.6

SIP debug output:

Sip read:
REGISTER sip:213.204.230.37 SIP/2.0
Via: SIP/2.0/UDP 192.168.1.4:47304;rport;branch=z9hG4bK886AB6BBE14642C4A8252A5B932F3967
From: Martijn <sip:martijn-gs@213.204.230.37>
To: Martijn <sip:martijn-gs@213.204.230.37>
Contact: "Martijn" <sip:martijn-gs@192.168.1.4:47304>
Call-ID: 489145A2A0DA4439A0D436297B53AF3F@213.204.230.37
CSeq: 39120 REGISTER
Expires: 1800
Max-Forwards: 70
User-Agent: X-PRO build 1101
Content-Length: 0

11 headers, 0 lines
Using latest request as basis request
Sending to 192.168.1.4 : 47304 (non-NAT)
Segmentation fault (core dumped)

machine environment:
br0 (bridge) with eth0 in it (and sometimes bluetooth eth)
br0 has 3 ip's: 213.x.x.37 213.x.x.38 192.168.1.5 (yes, I know that's ugly).
chan_sip listening on 0.0.0.0:5060
Comments:By: Mark Spencer (markster) 2004-12-29 07:20:47.000-0600

Fixed in CVS head.

By: Digium Subversion (svnbot) 2008-01-15 15:18:38.000-0600

Repository: asterisk
Revision: 4584

U   trunk/channels/chan_sip.c

------------------------------------------------------------------------
r4584 | markster | 2008-01-15 15:18:38 -0600 (Tue, 15 Jan 2008) | 2 lines

Fix registration bug with new astobj (bug ASTERISK-3122)

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

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