Bug#498399: asterisk: random segfaults

Lionel Elie Mamane lionel at mamane.lu
Wed Sep 10 12:01:52 UTC 2008


On Wed, Sep 10, 2008 at 03:51:22AM +0300, Faidon Liambotis wrote:
> Lionel Elie Mamane wrote:
>> On Tue, Sep 09, 2008 at 09:04:43PM +0200, Lionel Elie Mamane wrote:

>>> Asterisk seemingly randomly dies (...)

> (...) provide a backtrace with gdb

#0  handle_response_register (p=0x748910, resp=408, rest=0x401a1e84 "Request Timeout", req=0x401a1a50, ignore=0, seqno=298) at chan_sip.c:12552
	expires = <value optimized out>
	expires_ms = <value optimized out>
	r = (struct sip_registry *) 0x0
	__PRETTY_FUNCTION__ = "handle_response_register"
#1  0x00002aaab5d46aaa in handle_response (p=0x748910, resp=408, rest=0x401a1e84 "Request Timeout", req=0x401a1a50, ignore=0, seqno=298) at chan_sip.c:12867
	owner = (struct ast_channel *) 0x0
	sipmethod = 2
	c = <value optimized out>
	msg = 0x401a1fbb "REGISTER"
	__PRETTY_FUNCTION__ = "handle_response"
#2  0x00002aaab5d485aa in handle_request (p=0x748910, req=0x401a1a50, sin=0x401a2f80, recount=0x401a2f94, nounlock=0x401a2f98) at chan_sip.c:15329
	cmd = 0x401a1e78 "SIP/2.0"
	cseq = <value optimized out>
	useragent = <value optimized out>
	seqno = 298
	len = <value optimized out>
	ignore = <value optimized out>
	respid = 408
	res = 0
	debug = 0
	e = 0x401a1e80 "408 Request Timeout"
	__PRETTY_FUNCTION__ = "handle_request"
#3  0x00002aaab5d49fd7 in sipsock_read (id=<value optimized out>, fd=<value optimized out>, events=<value optimized out>, ignore=<value optimized out>)
    at chan_sip.c:15562
	req = {rlPart1 = 0x401a1e78 "SIP/2.0", rlPart2 = 0x401a1e80 "408 Request Timeout", len = 649, headers = 10, method = 1, lines = 0, flags = 0, header = {
    0x401a1e78 "SIP/2.0", 0x401a1e95 "Via: SIP/2.0/UDP 193.202.115.224:5060;branch=z9hG4bK3c8bc4db;rport=5060", 
    0x401a1ede "From: <sip:33811956392 at sip.phonesystems.net>;tag=as152f9fdc", 
    0x401a1f1b "To: <sip:33811956392 at sip.phonesystems.net>;tag=c16928e0b64c75110ac550bd62be7243-8035", 
    0x401a1f71 "Call-ID: 187eee873d9148191932d38d7573d2c0 at sip.phonesystems.net", 0x401a1fb1 "CSeq: 298 REGISTER", 
    0x401a1fc5 "Contact: <sip:33811956392 at 193.202.115.224:5060>;expires=600", 0x401a2002 "Server: PSN Sip Proxy (1.1.3 (PRX3-EXTERNAL))", 
    0x401a2031 "Content-Length: 0", 
    0x401a2044 "Warning: 392 213.11.62.39:5060 \"Noisy feedback tells:  pid=2468 req_src_ip=193.202.115.224 req_src_port=5060 in_uri=sip:sip.phonesystems.net out_uri=sip:sip.phonesystems.net via_cnt==0\"", 0x401a20ff "", 0x0 <repeats 53 times>}, line = {0x401a2101 "", 0x0 <repeats 63 times>}, 
  data = "SIP/2.0\000408 Request Timeout\000\000Via: SIP/2.0/UDP 193.202.115.224:5060;branch=z9hG4bK3c8bc4db;rport=5060\000\000From: <sip:33811956392 at sip.phonesystems.net>;tag=as152f9fdc\000\000To: <sip:33811956392 at sip.phonesystems"..., sdp_start = 0, sdp_end = 0}
	sin = {sin_family = 2, sin_port = 50195, sin_addr = {s_addr = 658377685}, sin_zero = "\000\000\000\000\000\000\000"}
	p = (struct sip_pvt *) 0x748910
	res = <value optimized out>
	len = 16
	nounlock = 0
	recount = 0
	lockretry = 100
	__PRETTY_FUNCTION__ = "sipsock_read"
#4  0x000000000045ace2 in ast_io_wait (ioc=0x2aaaac041460, howlong=<value optimized out>) at io.c:279
	res = <value optimized out>
#5  0x00002aaab5d4e369 in do_monitor (data=<value optimized out>) at chan_sip.c:15775
	res = <value optimized out>
	sip = (struct sip_pvt *) 0x0
	t = 1221047345
	fastrestart = 0
	lastpeernum = -1
	curpeernum = <value optimized out>
	reloading = 0
	__PRETTY_FUNCTION__ = "do_monitor"
#6  0x000000000049b76c in dummy_start (data=<value optimized out>) at utils.c:895
	__cancel_buf = {__cancel_jmp_buf = {{__cancel_jmp_buf = {46912518791008, -5074825979469889938, 140735903873008, 47755899604736, 0, 4096, 
        -5074966769022140818, -5074826448064086418}, __mask_was_saved = 0}}, __pad = {0x401a31e0, 0x0, 0x0, 0x0}}
	not_first_call = <value optimized out>
	ret = <value optimized out>
#7  0x00002b6f096e8fc7 in start_thread () from /lib/libpthread.so.0
No symbol table info available.
#8  0x00002b6f0a0a47cd in clone () from /lib/libc.so.6
No symbol table info available.
#9  0x0000000000000000 in ?? ()
No symbol table info available.


The end of the log:

[Sep 10 13:48:48] DEBUG[585] chan_sip.c: ** SIP timers: Rescheduling retransmission 2 to 1000 ms (t1 500 ms (Retrans id #2249)) 
[Sep 10 13:48:48] DEBUG[589] chan_iax2.c: Allocate call number
[Sep 10 13:48:48] DEBUG[589] chan_iax2.c: Registration created on call 1769
[Sep 10 13:48:49] DEBUG[585] chan_sip.c: ** SIP timers: Rescheduling retransmission 3 to 2000 ms (t1 500 ms (Retrans id #2249)) 
[Sep 10 13:48:51] DEBUG[585] chan_sip.c: ** SIP timers: Rescheduling retransmission 4 to 4000 ms (t1 500 ms (Retrans id #2249)) 
[Sep 10 13:48:51] DEBUG[585] chan_sip.c: = Found Their Call ID: 187eee873d9148191932d38d7573d2c0 at sip.phonesystems.net Their Tag  Our tag: as7128f565
[Sep 10 13:48:51] DEBUG[585] chan_sip.c: Stopping retransmission on '187eee873d9148191932d38d7573d2c0 at sip.phonesystems.net' of Request 297: Match Found
[Sep 10 13:48:51] DEBUG[585] chan_sip.c: Initializing already initialized SIP dialog 187eee873d9148191932d38d7573d2c0 at sip.phonesystems.net (presumably reinvite)
[Sep 10 13:48:51] VERBOSE[585] logger.c: REGISTER attempt 181 to 33811956392 at phonesystems_net
[Sep 10 13:48:51] DEBUG[585] chan_sip.c: = Found Their Call ID: 187eee873d9148191932d38d7573d2c0 at sip.phonesystems.net Their Tag  Our tag: as152f9fdc
[Sep 10 13:48:51] DEBUG[585] chan_sip.c: Stopping retransmission on '187eee873d9148191932d38d7573d2c0 at sip.phonesystems.net' of Request 298: Match Found
[Sep 10 13:48:51] DEBUG[585] chan_sip.c: Registration successful
[Sep 10 13:48:51] DEBUG[585] chan_sip.c: Cancelling timeout 2248
[Sep 10 13:48:57] DEBUG[599] pbx_dundi.c: Got canonical message 13 (0), 160 bytes data
[Sep 10 13:48:57] DEBUG[599] pbx_dundi.c: Expected '49a886b5' got '49a886b5'
[Sep 10 13:48:57] DEBUG[599] pbx_dundi.c: Got canonical message 5 (0), 117 bytes data
[Sep 10 13:48:57] DEBUG[599] pbx_dundi.c: Forwarding precache for '1012 at lemfat'!
[Sep 10 13:48:57] DEBUG[3462] pbx_dundi.c: Whee, precaching '1012 at lemfat' for '00:e0:81:75:db:ab'
[Sep 10 13:48:57] DEBUG[3462] pbx_dundi.c: Precache internal (1012 at lemfat)!
[Sep 10 13:49:03] DEBUG[599] pbx_dundi.c: Got canonical message 13 (0), 160 bytes data
[Sep 10 13:49:03] DEBUG[599] pbx_dundi.c: Expected '49a886b5' got '49a886b5'
[Sep 10 13:49:03] DEBUG[599] pbx_dundi.c: Got canonical message 5 (0), 117 bytes data
[Sep 10 13:49:03] DEBUG[599] pbx_dundi.c: Forwarding precache for '1013 at lemfat'!
[Sep 10 13:49:03] DEBUG[3463] pbx_dundi.c: Whee, precaching '1013 at lemfat' for '00:e0:81:75:db:ab'
[Sep 10 13:49:03] DEBUG[3463] pbx_dundi.c: Precache internal (1013 at lemfat)!
[Sep 10 13:49:06] DEBUG[585] chan_sip.c: = Found Their Call ID: 187eee873d9148191932d38d7573d2c0 at sip.phonesystems.net Their Tag 0dbe88d13eedc4a44f7dcba27a566b16.8035 Our tag: as152f9fdc
[Sep 10 13:49:06] DEBUG[585] chan_sip.c: Stopping retransmission on '187eee873d9148191932d38d7573d2c0 at sip.phonesystems.net' of Request 298: Match Not Found


-- 
Lionel





More information about the Pkg-voip-maintainers mailing list