[asterisk-dev] Asterisk core dump SVN-branch-1.2-r38167M
Martin Vít
vit at lam.cz
Fri Aug 25 13:23:06 MST 2006
I've upgraded to the latest svn revision SVN-branch-1.2-r41069M
I've captured next segfault and found the source of it.
On channel OH323 were many spawned MixMonitor (due to some bad extension
logic) with the same filename. But i thing, that this should be
protected and not to cause segfault?
Latest lines in log with debug and verbose level 3
Aug 25 20:33:07 VERBOSE[21102] logger.c: == End MixMonitor Recording
OH323/VoiceGW2 at XX.XX.XX.XX-680429cd
Aug 25 20:33:07 VERBOSE[21144] logger.c: == End MixMonitor Recording
OH323/VoiceGW2 at XX.XX.XX.XX-680429cd
Aug 25 20:33:07 VERBOSE[21191] logger.c: == End MixMonitor Recording
OH323/VoiceGW2 at XX.XX.XX.XX-680429cd
Aug 25 20:33:07 VERBOSE[21254] logger.c: == End MixMonitor Recording
OH323/VoiceGW2 at XX.XX.XX.XX-680429cd
Aug 25 20:33:07 VERBOSE[21301] logger.c: == End MixMonitor Recording
OH323/VoiceGW2 at XX.XX.XX.XX-680429cd
Aug 25 20:33:07 DEBUG[21024] channel.c: Spy MixMonitor removed from
channel OH323/VoiceGW2 at XX.XX.XX.XX-680429cd
Aug 25 20:33:07 DEBUG[21024] channel.c: Spy MixMonitor removed from
channel OH323/VoiceGW2 at XX.XX.XX.XX-680429cd
Aug 25 20:33:07 VERBOSE[21034] logger.c: == End MixMonitor Recording
OH323/VoiceGW2 at XX.XX.XX.XX-680429cd
Full backtrace
Program terminated with signal 11, Segmentation fault.
(gdb) bt full
#0 0xb7e4f37d in free () from /lib/tls/libc.so.6
No symbol table info available.
#1 0xb7e50901 in calloc () from /lib/tls/libc.so.6
No symbol table info available.
#2 0xb646fdb7 in sip_alloc (callid=0xb67b9f1b
"0263987dbe872bcae658de5b85e4a5ff at 172.24.45.73", sin=0xb67b9c00,
useglobal_nat=1, intended_method=2) at chan_sip.c:3076
p = (struct sip_pvt *) 0xb64b4460
__PRETTY_FUNCTION__ = "sip_alloc"
#3 0xb649ffec in sipsock_read (id=0x81e4358, fd=37, events=1,
ignore=0x0) at chan_sip.c:3233
found = -1236588848
req = {rlPart1 = 0xb67b9e28 "REGISTER", rlPart2 = 0xb67b9e31
"sip:172.24.45.1:5060", len = 669, headers = 18, method = 2, header =
{0xb67b9e28 "REGISTER",
0xb67b9e4f "Via: SIP/2.0/UDP
172.24.45.73:5060;branch=z9hG4bK8b4c1a1d2", 0xb67b9e8b "Max-Forwards:
70", 0xb67b9e9d "Content-Length: 0",
0xb67b9eb0 "To: tech <sip:tech at 172.24.45.1:5060>", 0xb67b9ed6 "From:
tech <sip:tech at 172.24.45.1:5060>;tag=1d010005d5ee320",
0xb67b9f12 "Call-ID: 0263987dbe872bcae658de5b85e4a5ff at 172.24.45.73",
0xb67b9f4a "CSeq: 1298363890 REGISTER", 0xb67b9f65 "Contact: tech
<sip:tech at 172.24.45.73:5060>",
0xb67b9f91 "Allow: NOTIFY", 0xb67b9fa0 "Allow: REFER", 0xb67b9fae
"Allow: OPTIONS", 0xb67b9fbe "Allow: INVITE", 0xb67b9fcd "Allow: ACK",
0xb67b9fd9 "Allow: CANCEL",
0xb67b9fe8 "Allow: BYE",
0xb67b9ff4 "Authorization:Digest
response=\"5fcc38a8fbd7a088915951507f53ab84\",username=\"tech\",realm=\"asterisk\",nonce=\"27627b02\",algorithm=MD5,uri=\"sip:172.24.45.1:5060\"",
0xb67ba091 "User-Agent: Brcm Callctrl/1.5.1.1 MxSF/v3.2.6.26",
0xb67ba0c3 "", 0x0 <repeats 45 times>}, lines = 0, line = {0xb67ba0c5 "",
0x0 <repeats 63 times>},
data = "REGISTER\000sip:172.24.45.1:5060\000SIP/2.0\000\000Via:
SIP/2.0/UDP
172.24.45.73:5060;branch=z9hG4bK8b4c1a1d2\000\000Max-Forwards:
70\000\000Content-Length: 0\000\000To: tech
<sip:tech at 172.24.45.1:5060>\000\000From: tech <sip:tech at 172.2"..., debug
= 0, flags = 0, sdp_start = 0, sdp_end = 0}
sin = {sin_family = 2, sin_port = 50195, sin_addr = {s_addr =
1227692204}, sin_zero = "\000\000\000\000\000\000\000"}
res = -1236588848
len = 16
nounlock = 0
recount = 0
iabuf = '\0' <repeats 15 times>
lockretry = 100
__PRETTY_FUNCTION__ = "sipsock_read"
#4 0x08055c6f in ast_io_wait (ioc=0x81b9690, howlong=193) at io.c:284
res = 1
x = 0
origcnt = 1
#5 0xb64a6834 in do_monitor (data=0x0) at chan_sip.c:11518
res = 193
sip = (struct sip_pvt *) 0x81b9690
peer = (struct sip_peer *) 0x0
t = 1156530791
fastrestart = 0
lastpeernum = -1
curpeernum = 30
reloading = 136025744
__PRETTY_FUNCTION__ = "do_monitor"
#6 0xb7fd0ccd in start_thread () from /lib/tls/libpthread.so.0
No symbol table info available.
#7 0xb7eb9b0e in clone () from /lib/tls/libc.so.6
No symbol table info available.
More information about the asterisk-dev
mailing list