I have a problem that I am trying to track down and I need some input on how to troubleshoot this issue. I wrote a module that calls ast_app_getdata(). If there is a hangup during this call Asterisk throws a seg fault. The backtrace is below. Any ideas on how to narrow down what the issue might be?<br>
<br>Thank you for your help<br><br>Jonathan<br><br><br>(gdb) bt<br>#0 0xb7f0a540 in pthread_mutex_lock () from /lib/tls/i686/cmov/libpthread.so.0<br>#1 0x080f5b22 in ast_sched_runq (con=0x0)<br> at /home/jonathan/asterisk/asterisk-1.4.22/include/asterisk/lock.h:755<br>
#2 0x080a1488 in waitstream_core (c=0x81f8e50, breakon=0x81261d1 "0123456789#*ABCD", <br> forward=0x81281b0 "", rewind=0x81281b0 "", skip_ms=0, audiofd=-1, cmdfd=-1, <br> context=0x0) at file.c:1217<br>
#3 0x080a18e8 in ast_waitstream_full (c=0x81f8e50, <br> breakon=0x81261d1 "0123456789#*ABCD", audiofd=-1, cmdfd=-1) at file.c:1238<br>#4 0x0808a9c3 in ast_readstring_full (c=0x81f8e50, s=0xb6a12068 "", len=1, <br>
timeout=5000, ftimeout=10000, enders=0x8138971 "#", audiofd=-1, ctrlfd=-1)<br> at channel.c:3120<br>#5 0x0808ab14 in ast_readstring (c=0x81f8e50, s=0xb6a12068 "", len=1, timeout=5000, <br> ftimeout=10000, enders=0x8138971 "#") at channel.c:3104<br>
#6 0x08060a9d in ast_app_getdata (c=0x81f8e50, <br> prompt=0xb6a125c0 "/var/lib/asterisk/sounds/en/shared_audio/ad_spots/pcm8/Spot72691", s=0xb6a12068 "", maxlen=1, timeout=0) at app.c:125<br>#7 0xb7c45870 in play_voodoo_ad (chan=0x81f8e50, audio=0xb6a121a0) at res_voodoo.c:462<br>
#8 0xb7c464e8 in play_voodoo_local (parm=0x81f8e50) at res_voodoo.c:659<br>#9 0x0810256b in dummy_start (data=0x81f9328) at utils.c:912<br>#10 0xb7f084fb in start_thread () from /lib/tls/i686/cmov/libpthread.so.0<br>#11 0xb7e21e5e in clone () from /lib/tls/i686/cmov/libc.so.6<br>
(<br>