Tzafrir Cohen schrieb: > Is the crash reproducable? > Yes, it really is. > If so, please: > > apt-get install asterisk-dbg > > and add the following to /etc/default/asterisk : > > AST_DUMPCORE=yes > CORE_PATTERN='/tmp/core.%e.%t' > > Note that it is recommended to remove those settings from your asterisk > defaults file once you're done debugging, as the the second one affect > core dumping of every process: not just Asterisk. > > If asterisk segfaults it will now dump a core file under > /tmp/core.asterisk.TIME_OF_CRASH (TIME_OF_CRASH: seconds since > 1.1.1970). > > If Asterisk crashes again, you'll get a core file. Please install gdb: > > apt-get install gdb > > and then run: > > gdb -c /tmp/core.asterisk.TIME_OF_CRASH /usr/sbin/asterisk > > In the prompt of gdb, write: > > bt > bt full > > and include the output. > > Here the gdb output:
Core was generated by `/usr/sbin/asterisk -f -vvvg -c'.
Program terminated with signal 11, Segmentation fault.
#0 0xb7d3807a in local_ast_moh_start (chan=0x0, mclass=0x0,
interpclass=0x81b8abc "default") at res_musiconhold.c:952
952 res_musiconhold.c: No such file or directory.
in res_musiconhold.c
(gdb) bt
#0 0xb7d3807a in local_ast_moh_start (chan=0x0, mclass=0x0,
interpclass=0x81b8abc "default") at res_musiconhold.c:952
#1 0xb6d26bda in pri_dchannel (vpri=0xb6d40100) at chan_zap.c:10660
#2 0x080d78c7 in dummy_start (data=0x81ae500) at utils.c:806
#3 0xb7fa746b in start_thread () from /lib/i686/cmov/libpthread.so.0
#4 0xb7ec44de in clone () from /lib/i686/cmov/libc.so.6
(gdb) bt full
#0 0xb7d3807a in local_ast_moh_start (chan=0x0, mclass=0x0,
interpclass=0x81b8abc "default") at res_musiconhold.c:952
mohclass = <value optimized out>
#1 0xb6d26bda in pri_dchannel (vpri=0xb6d40100) at chan_zap.c:10660
onhold = <value optimized out>
pri = <value optimized out>
e = (pri_event *) 0x81ccf18
fds = {{fd = 37, events = 3, revents = 1}, {fd = 0, events = 0, revents
= 0}, {fd = -1209693232, events = -27327,
revents = -18438}, {fd = 0, events = 20468, revents = -18445}}
res = <value optimized out>
chanpos = 1
x = 12
haveidles = <value optimized out>
activeidles = 0
nextidle = <value optimized out>
c = (struct ast_channel *) 0x0
tv = <value optimized out>
next = <value optimized out>
lastidle = {tv_sec = 1193414164, tv_usec = 379557}
doidling = 0
cc = <value optimized out>
idlen = '\0' <repeats 79 times>
idle = <value optimized out>
p = 3085022465
t = <value optimized out>
i = 1
which = 0
cause = 0
crv = (struct zt_pvt *) 0x0
threadid = 3052436368
attr = {
__size =
"\000\000\000\000\000\000\000\000\001\000\000\000\000\020\000\000\000\000\000\000\000À\003",
'\0' <repeats 12 times>, __align = 0}
ani2str = "00\000å\032\b"
plancallingnum = "195", '\0' <repeats 252 times>
plancallingani = '\0' <repeats 255 times>
calledtonstr = "1\000\222Ìå· q\000"
__PRETTY_FUNCTION__ = "pri_dchannel"
__FUNCTION__ = "pri_dchannel"
#2 0x080d78c7 in dummy_start (data=0x81ae500) at utils.c:806
__cancel_buf = {__cancel_jmp_buf = {{__cancel_jmp_buf = {135976608, 0,
-1228207216, -1228209192, -2113470317,
250698222}, __mask_was_saved = 0}}, __pad = {0xb6cb0490, 0x0, 0x0, 0x0}}
__cancel_arg = (void *) 0xb6cb0b90
not_first_call = <value optimized out>
ret = <value optimized out>
#3 0xb7fa746b in start_thread () from /lib/i686/cmov/libpthread.so.0
No symbol table info available.
#4 0xb7ec44de in clone () from /lib/i686/cmov/libc.so.6
No symbol table info available.
signature.asc
Description: OpenPGP digital signature

