<!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>&nbsp;</DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>&nbsp; == Spawn extension (default, 16173, 1) 
exited non-zero on 'Zap/31-1'<BR>Jan&nbsp; 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&nbsp; 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&nbsp; 7 15:04:08 DEBUG[23888]: chan_zap.c:2140 zt_hangup: Not yet 
hungup...&nbsp; Calling hangup once with icause, and clearing call<BR>Jan&nbsp; 
7 15:04:08 DEBUG[23888]: chan_zap.c:1290 zt_disable_ec: disabled echo 
cancellation on channel 31<BR>Jan&nbsp; 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&nbsp; 7 
15:04:08 DEBUG[23888]: chan_zap.c:1227 update_conf: Updated conferencing on 31, 
with 0 conference users<BR>Jan&nbsp; 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&nbsp; 7 
15:04:08 DEBUG[23888]: chan_zap.c:1290 zt_disable_ec: disabled echo cancellation 
on channel 31<BR>&nbsp;&nbsp;&nbsp; -- Hungup 'Zap/31-1'<BR>Segmentation fault 
(core dumped)</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Here is the gdb output:</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</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&nbsp; 0xb7e6edce in mallopt () from 
/lib/tls/libc.so.6<BR>(gdb) bt<BR>#0&nbsp; 0xb7e6edce in mallopt () from 
/lib/tls/libc.so.6<BR>#1&nbsp; 0xb7e6ec62 in mallopt () from 
/lib/tls/libc.so.6<BR>#2&nbsp; 0xb7e6cdda in free () from 
/lib/tls/libc.so.6<BR>#3&nbsp; 0xb5af2ccc in ast_monitor_stop (chan=0x8118818, 
need_lock=0) at res_monitor.c:258<BR>#4&nbsp; 0x0805c92d in ast_channel_free 
(chan=0x8136288) at channel.c:642<BR>#5&nbsp; 0x0805cd20 in ast_hangup 
(chan=0x8136288) at channel.c:790<BR>#6&nbsp; 0x0807f766 in ast_pbx_run 
(c=0x8136288) at pbx.c:2060<BR>#7&nbsp; 0x08088fc1 in pbx_thread 
(data=0x80ee041) at pbx.c:2072<BR>#8&nbsp; 0xb7fd6b3c in start_thread () from 
/lib/tls/libpthread.so.0<BR>#9&nbsp; 0xb7ec993a in clone () from 
/lib/tls/libc.so.6<BR>(gdb) bt full<BR>#0&nbsp; 0xb7e6edce in mallopt () from 
/lib/tls/libc.so.6<BR>No symbol table info available.<BR>#1&nbsp; 0xb7e6ec62 in 
mallopt () from /lib/tls/libc.so.6<BR>No symbol table info 
available.<BR>#2&nbsp; 0xb7e6cdda in free () from /lib/tls/libc.so.6<BR>No 
symbol table info available.<BR>#3&nbsp; 0xb5af2ccc in ast_monitor_stop 
(chan=0x8118818, need_lock=0) at 
res_monitor.c:258<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; tmp = '\0' 
&lt;repeats 1023 times&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; dir = 
0x0<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; tmp2 = '\0' &lt;repeats 1023 
times&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; format = 
0x0<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; name = 
0x0<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; filename = '\0' &lt;repeats 64 
times&gt;, 
"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' &lt;repeats 52 times&gt;, 
"d\214æ·¤®å·\000\000\000\000¡1ä·\000\000\000\000\030bò·Ê\020¯¬\000\000\000\000üN¨¬ÉDä· 
O¨¬Ê\020¯¬", '\0' &lt;repeats 40 times&gt;, 
"èN¨¬¸J¨¬\000\000\000\000\000\000\000\000XVä·", '\0' &lt;repeats 174 times&gt;, 
"d ", '\0' &lt;repeats 48 times&gt;, "\n", '\0' &lt;repeats 15 times&gt;, 
"s\000\000\000\001\000\000\000&lt;P¨¬èN¨¬\000\000\000\000È\020¯¬\001\000\000\000ÿÿÿÿ", 
'\0' &lt;repeats 92 times&gt;...<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
execute = Variable "execute" is not available.<BR></FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Sistem info:</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Glibc: glibc-2.3.3-23.1.101mdk&nbsp;&nbsp;&nbsp; 
</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>&nbsp;</DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Any clues ?</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Thanks</FONT></DIV>
<DIV><FONT face=Arial size=2>&nbsp;&nbsp;&nbsp; Alex</DIV></FONT></BODY></HTML>