Hello,<br><br>I compiled chan_dgv separately with -g, and now I compiled with -O0 option and my gdb is the same.<br><br>Looking gdb debug, I know that the problem is when I try to call ast_matchmore_extension, but I need a debug more specific.<br>
<br>Thanks<br><br><div class="gmail_quote">On Mon, Jun 8, 2009 at 10:10 AM, Moises Silva <span dir="ltr"><<a href="mailto:moises.silva@gmail.com">moises.silva@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div><div></div><div class="h5">On Mon, Jun 8, 2009 at 7:44 AM, luciano<br>
digivoice<<a href="mailto:lucianodigivoice@gmail.com">lucianodigivoice@gmail.com</a>> wrote:<br>
> Hello everyone,<br>
><br>
> I'm trying to debug my channel driver. I already enabled DEBUG_THREADS and<br>
> DONT_OPTIMIZE Asterisk parameters, I have a thread and this one is<br>
> 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,<br>
> context=0x240 <Address 0x240 out of bounds>,<br>
> exten=0xad5522d8 "", priority=1, label=0x0, callerid=0x8297568 "",<br>
> action=E_MATCHMORE) at pbx.c:979<br>
> #2 0x080d5209 in pbx_extension_helper (c=0x0, con=0x0, context=0x240<br>
> <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<br>
> 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"<br>
> don't help me to see the problem.<br>
><br>
> What I need to enable or do to debug my threads.<br>
><br>
<br>
</div></div>Did you compile chan_dgv as part of Asterisk or separately? May be you<br>
are not compiling with -g -O0 ?<br>
<br>
It seems somewhere in chan_dgv ast_matchmore_extension is being called<br>
with an invalid address as context.<br>
<br>
--<br>
Moises Silva<br>
Software Developer<br>
Sangoma Technologies Inc. | 50 McIntosh Drive, Suite 120, Markham ON<br>
L3R 9T3 Canada<br>
t. 1 905 474 1990 x 128 | e. <a href="mailto:moy@sangoma.com">moy@sangoma.com</a><br>
<br>
_______________________________________________<br>
--Bandwidth and Colocation Provided by <a href="http://www.api-digital.com--" target="_blank">http://www.api-digital.com--</a><br>
<br>
asterisk-dev mailing list<br>
To UNSUBSCRIBE or update options visit:<br>
<a href="http://lists.digium.com/mailman/listinfo/asterisk-dev" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-dev</a></blockquote></div><br><br clear="all"><br>-- <br>Luciano Alves Barroso<br>Equipe de Desenvolvimento DigiVoice Channel Driver & DigiVoice Meucci<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>