<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2800.1458" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Here is what I've got when exit from an custom
application the does some monitoring on a channel (using pbx_findapp and
pbx_exec).</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2> == Spawn extension (default, 16173, 1)
exited non-zero on 'Zap/31-1'<BR>Jan 7 15:04:08 DEBUG[23888]:
chan_zap.c:2498 zt_setoption: Set option AUDIO MODE, value: ON(1) on
Zap/31-1<BR>Jan 7 15:04:08 DEBUG[23888]: chan_zap.c:2003 zt_hangup:
Hangup: channel: 31 index = 0, normal = 43, callwait = -1, thirdcall =
-1<BR>Jan 7 15:04:08 DEBUG[23888]: chan_zap.c:2140 zt_hangup: Not yet
hungup... Calling hangup once with icause, and clearing call<BR>Jan
7 15:04:08 DEBUG[23888]: chan_zap.c:1290 zt_disable_ec: disabled echo
cancellation on channel 31<BR>Jan 7 15:04:08 DEBUG[23888]: chan_zap.c:2410
zt_setoption: Set option TDD MODE, value: OFF(0) on Zap/31-1<BR>Jan 7
15:04:08 DEBUG[23888]: chan_zap.c:1227 update_conf: Updated conferencing on 31,
with 0 conference users<BR>Jan 7 15:04:08 DEBUG[23888]: chan_zap.c:2492
zt_setoption: Set option AUDIO MODE, value: OFF(0) on Zap/31-1<BR>Jan 7
15:04:08 DEBUG[23888]: chan_zap.c:1290 zt_disable_ec: disabled echo cancellation
on channel 31<BR> -- Hungup 'Zap/31-1'<BR>Segmentation fault
(core dumped)</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Here is the gdb output:</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Reading symbols from
/usr/lib/asterisk/modules/app_while.so...done.<BR>Loaded symbols for
/usr/lib/asterisk/modules/app_while.so<BR>Reading symbols from
/usr/lib/asterisk/modules/cdr_pgsql.so...done.<BR>Loaded symbols for
/usr/lib/asterisk/modules/cdr_pgsql.so<BR>#0 0xb7e6edce in mallopt () from
/lib/tls/libc.so.6<BR>(gdb) bt<BR>#0 0xb7e6edce in mallopt () from
/lib/tls/libc.so.6<BR>#1 0xb7e6ec62 in mallopt () from
/lib/tls/libc.so.6<BR>#2 0xb7e6cdda in free () from
/lib/tls/libc.so.6<BR>#3 0xb5af2ccc in ast_monitor_stop (chan=0x8118818,
need_lock=0) at res_monitor.c:258<BR>#4 0x0805c92d in ast_channel_free
(chan=0x8136288) at channel.c:642<BR>#5 0x0805cd20 in ast_hangup
(chan=0x8136288) at channel.c:790<BR>#6 0x0807f766 in ast_pbx_run
(c=0x8136288) at pbx.c:2060<BR>#7 0x08088fc1 in pbx_thread
(data=0x80ee041) at pbx.c:2072<BR>#8 0xb7fd6b3c in start_thread () from
/lib/tls/libpthread.so.0<BR>#9 0xb7ec993a in clone () from
/lib/tls/libc.so.6<BR>(gdb) bt full<BR>#0 0xb7e6edce in mallopt () from
/lib/tls/libc.so.6<BR>No symbol table info available.<BR>#1 0xb7e6ec62 in
mallopt () from /lib/tls/libc.so.6<BR>No symbol table info
available.<BR>#2 0xb7e6cdda in free () from /lib/tls/libc.so.6<BR>No
symbol table info available.<BR>#3 0xb5af2ccc in ast_monitor_stop
(chan=0x8118818, need_lock=0) at
res_monitor.c:258<BR> tmp = '\0'
<repeats 1023 times><BR> dir =
0x0<BR> tmp2 = '\0' <repeats 1023
times><BR> format =
0x0<BR> name =
0x0<BR> filename = '\0' <repeats 64
times>,
"G~ý·\000\000\000\000\000\000\000\000\210b\023\bù\033\016\b\002\000\000\000èX¨¬\234\036\n\b\214\022\020\b",
'\0' <repeats 52 times>,
"d\214æ·¤®å·\000\000\000\000¡1ä·\000\000\000\000\030bò·Ê\020¯¬\000\000\000\000üN¨¬ÉDä·
O¨¬Ê\020¯¬", '\0' <repeats 40 times>,
"èN¨¬¸J¨¬\000\000\000\000\000\000\000\000XVä·", '\0' <repeats 174 times>,
"d ", '\0' <repeats 48 times>, "\n", '\0' <repeats 15 times>,
"s\000\000\000\001\000\000\000<P¨¬èN¨¬\000\000\000\000È\020¯¬\001\000\000\000ÿÿÿÿ",
'\0' <repeats 92 times>...<BR>
execute = Variable "execute" is not available.<BR></FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Sistem info:</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Glibc: glibc-2.3.3-23.1.101mdk
</FONT></DIV>
<DIV><FONT face=Arial size=2>Asterisk CVS-HEAD-01/07/05-14:19:20 built by <A
href="mailto:root@voce1">root@voce1</A> on a i686 running Linux</FONT></DIV>
<DIV><FONT face=Arial size=2>Linux voce1 2.6.9 #5 SMP Wed Dec 22 13:28:40 EET
2004 i686 unknown unknown GNU/Linux</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Any clues ?</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Thanks</FONT></DIV>
<DIV><FONT face=Arial size=2> Alex</DIV></FONT></BODY></HTML>