Hello everyone,<br><br>I'm trying to debug my channel driver. I already enabled DEBUG_THREADS
and DONT_OPTIMIZE Asterisk parameters, I have a thread and this one is genarating a core dump (I think), using gdb application I only can see this:<br><br>Core was generated by `asterisk -cvvvg'.<br>Program terminated with signal 11, Segmentation fault.<br>
#0 0xb7ec818a in strcmp () from /lib/libc.so.6<br>(gdb) bt<br>#0 0xb7ec818a in strcmp () from /lib/libc.so.6<br>#1 0x080d288a in pbx_find_extension (chan=0x0, bypass=0x0, q=0xad551fa8, context=0x240 <Address 0x240 out of bounds>,<br>
exten=0xad5522d8 "", priority=1, label=0x0, callerid=0x8297568 "", action=E_MATCHMORE) at pbx.c:979<br>#2 0x080d5209 in pbx_extension_helper (c=0x0, con=0x0, context=0x240 <Address 0x240 out of bounds>, exten=0xad5522d8 "", priority=1,<br>
label=0x0, callerid=0x8297568 "", action=E_MATCHMORE) at pbx.c:1820<br>#3 0x080d6803 in ast_matchmore_extension (c=0x0, context=0x240 <Address 0x240 out of bounds>, exten=0xad5522d8 "", priority=1,<br>
callerid=0x8297568 "") at pbx.c:2315<br>#4 0xb5706344 in ?? () from /usr/lib/asterisk/modules/chan_dgv.so<br>#5 0x0811c655 in dummy_start (data=0x819ef40) at utils.c:856<br>#6 0xb80341b5 in start_thread () from /lib/libpthread.so.0<br>
#7 0xb7f2638e in clone () from /lib/libc.so.6<br>(gdb)<br><br>But "#4 0xb5706344 in ?? () from /usr/lib/asterisk/modules/chan_dgv.so" don't help me to see the problem.<br><br>What I need to enable or do to debug my threads.<br>
<br>Thanks a lot.<br clear="all"><br>-- <br>Luciano Alves Barroso<br><a href="http://www.digivoice.com.br">www.digivoice.com.br</a><br><a href="http://www.meucci.org">www.meucci.org</a><br>