(gdb) bt #0 0x0000002a96b5d005 in send_packet (f=0x67b5f0) at chan_iax2.c:1629 #1 0x0000002a96b79990 in network_thread (ignore=0x0) at chan_iax2.c:8310 #2 0x000000326380610a in start_thread () from /lib64/tls/libpthread.so.0 #3 0x0000003262dc5ee3 in clone () from /lib64/tls/libc.so.6 #4 0x0000000000000000 in ?? () (gdb) bt full #0 0x0000002a96b5d005 in send_packet (f=0x67b5f0) at chan_iax2.c:1629 res = 0 iabuf = "\200`\200c2\000\000\000 \"A\000\000\000\000" callno = 6 __PRETTY_FUNCTION__ = "send_packet" #1 0x0000002a96b79990 in network_thread (ignore=0x0) at chan_iax2.c:8310 res = -1 count = 0 f = (struct iax_frame *) 0x67b5f0 freeme = (struct iax_frame *) 0x0 __PRETTY_FUNCTION__ = "network_thread" #2 0x000000326380610a in start_thread () from /lib64/tls/libpthread.so.0 No symbol table info available. #3 0x0000003262dc5ee3 in clone () from /lib64/tls/libc.so.6 No symbol table info available. #4 0x0000000000000000 in ?? () No symbol table info available. (gdb) thread apply all bt Thread 28 (process 17962): #0 0x000000326380b0cf in __read_nocancel () from /lib64/tls/libpthread.so.0 #1 0x000000000049f829 in read_char (el=0x6104e0, cp=0x7fbffff587 "") at read.c:301 #2 0x000000000049f8cc in el_getc (el=0x6104e0, cp=0x7fbffff587 "") at read.c:347 #3 0x000000000049f737 in read_getcmd (el=0x6104e0, cmdnum=0x7fbffff586 "", ch=0x7fbffff587 "") at read.c:243 #4 0x000000000049fa2b in el_gets (el=0x6104e0, nread=0x7fbffff72c) at read.c:443 #5 0x0000000000468462 in main (argc=3, argv=0x7fbffff9b8) at asterisk.c:2412 Thread 27 (process 18002): #0 0x0000003262dbd0c2 in poll () from /lib64/tls/libc.so.6 #1 0x0000000000462d2a in listener (unused=0x0) at asterisk.c:574 #2 0x000000326380610a in start_thread () from /lib64/tls/libpthread.so.0 #3 0x0000003262dc5ee3 in clone () from /lib64/tls/libc.so.6 #4 0x0000000000000000 in ?? () Thread 26 (process 18024): #0 0x00000032638089aa in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/tls/libpthread.so.0 #1 0x000000000047a462 in ast_cond_wait (cond=0x606b40, t=0x6004d0) at include/asterisk/lock.h:653 #2 0x000000000047a440 in do_devstate_changes (data=0x0) at devicestate.c:263 #3 0x000000326380610a in start_thread () from /lib64/tls/libpthread.so.0 #4 0x0000003262dc5ee3 in clone () from /lib64/tls/libc.so.6 #5 0x0000000000000000 in ?? () Thread 25 (process 18025): #0 0x000000326380b0cf in __read_nocancel () from /lib64/tls/libpthread.so.0 #1 0x0000002a9558087f in monmp3thread (data=0x61d4b0) at res_musiconhold.c:496 #2 0x000000326380610a in start_thread () from /lib64/tls/libpthread.so.0 #3 0x0000003262dc5ee3 in clone () from /lib64/tls/libc.so.6 #4 0x0000000000000000 in ?? () Thread 24 (process 18028): #0 0x0000003262dbef86 in __select_nocancel () from /lib64/tls/libc.so.6 #1 0x0000002a95fc623a in ast_select (nfds=0, rfds=0x40103040, wfds=0x0, efds=0x40102fc0, tvp=0x0) at ../include/asterisk/channel.h:1231 #2 0x0000002a95fc61fa in do_parking_thread (ignore=0x0) at res_features.c:1633 #3 0x000000326380610a in start_thread () from /lib64/tls/libpthread.so.0 #4 0x0000003262dc5ee3 in clone () from /lib64/tls/libc.so.6 #5 0x0000000000000000 in ?? () Thread 23 (process 18029): #0 0x0000003262d8f0a5 in __nanosleep_nocancel () from /lib64/tls/libc.so.6 #1 0x0000003262d8ef10 in sleep () from /lib64/tls/libc.so.6 #2 0x0000002a961d6abe in scan_thread (unused=0x0) at pbx_spool.c:363 #3 0x000000326380610a in start_thread () from /lib64/tls/libpthread.so.0 #4 0x0000003262dc5ee3 in clone () from /lib64/tls/libc.so.6 #5 0x0000000000000000 in ?? () Thread 22 (process 18030): #0 0x0000003262dbd0c2 in poll () from /lib64/tls/libc.so.6 #1 0x0000000000412220 in ast_io_wait (ioc=0x64f110, howlong=1000) at io.c:266 #2 0x0000002a962e3a2e in network_thread (ignore=0x0) at pbx_dundi.c:2092 #3 0x000000326380610a in start_thread () from /lib64/tls/libpthread.so.0 #4 0x0000003262dc5ee3 in clone () from /lib64/tls/libc.so.6 #5 0x0000000000000000 in ?? () Thread 21 (process 18031): #0 0x0000003262d8f0a5 in __nanosleep_nocancel () from /lib64/tls/libc.so.6 #1 0x0000003262d8ef10 in sleep () from /lib64/tls/libc.so.6 #2 0x0000002a962e3b6c in process_precache (ign=0x0) at pbx_dundi.c:2132 #3 0x000000326380610a in start_thread () from /lib64/tls/libpthread.so.0 #4 0x0000003262dc5ee3 in clone () from /lib64/tls/libc.so.6 #5 0x0000000000000000 in ?? () Thread 20 (process 18032): #0 0x000000326380b3cf in __accept_nocancel () from /lib64/tls/libpthread.so.0 #1 0x0000002a9683f65e in accept_thread (ignore=0x0) at chan_skinny.c:2959 #2 0x000000326380610a in start_thread () from /lib64/tls/libpthread.so.0 #3 0x0000003262dc5ee3 in clone () from /lib64/tls/libc.so.6 #4 0x0000000000000000 in ?? () Thread 19 (process 18033): #0 0x0000003262dbd0c2 in poll () from /lib64/tls/libc.so.6 #1 0x0000000000412220 in ast_io_wait (ioc=0x6599c0, howlong=1000) at io.c:266 #2 0x0000002a9683f858 in do_monitor (data=0x0) at chan_skinny.c:3009 #3 0x000000326380610a in start_thread () from /lib64/tls/libpthread.so.0 #4 0x0000003262dc5ee3 in clone () from /lib64/tls/libc.so.6 #5 0x0000000000000000 in ?? () Thread 18 (process 18034): #0 0x0000003262dbef86 in __select_nocancel () from /lib64/tls/libc.so.6 #1 0x0000002a96949d9b in ast_select (nfds=0, rfds=0x40289140, wfds=0x0, efds=0x402890c0, tvp=0x0) at ../include/asterisk/channel.h:1231 #2 0x0000002a96949b85 in do_monitor (data=0x0) at chan_phone.c:1049 #3 0x000000326380610a in start_thread () from /lib64/tls/libpthread.so.0 #4 0x0000003262dc5ee3 in clone () from /lib64/tls/libc.so.6 #5 0x0000000000000000 in ?? () Thread 17 (process 18035): #0 0x00000032638089aa in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/tls/libpthread.so.0 #1 0x0000002a96b78382 in ast_cond_wait (cond=0x668270, t=0x668248) at ../include/asterisk/lock.h:653 #2 0x0000002a96b77cb0 in iax2_process_thread (data=0x667120) at chan_iax2.c:7909 #3 0x000000326380610a in start_thread () from /lib64/tls/libpthread.so.0 #4 0x0000003262dc5ee3 in clone () from /lib64/tls/libc.so.6 #5 0x0000000000000000 in ?? () Thread 16 (process 18036): #0 0x00000032638089aa in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/tls/libpthread.so.0 #1 0x0000002a96b78382 in ast_cond_wait (cond=0x669520, t=0x6694f8) at ../include/asterisk/lock.h:653 #2 0x0000002a96b77cb0 in iax2_process_thread (data=0x6683d0) at chan_iax2.c:7909 #3 0x000000326380610a in start_thread () from /lib64/tls/libpthread.so.0 #4 0x0000003262dc5ee3 in clone () from /lib64/tls/libc.so.6 #5 0x0000000000000000 in ?? () Thread 15 (process 18037): #0 0x00000032638089aa in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/tls/libpthread.so.0 #1 0x0000002a96b78382 in ast_cond_wait (cond=0x670090, t=0x670068) at ../include/asterisk/lock.h:653 #2 0x0000002a96b77cb0 in iax2_process_thread (data=0x66ef40) at chan_iax2.c:7909 #3 0x000000326380610a in start_thread () from /lib64/tls/libpthread.so.0 #4 0x0000003262dc5ee3 in clone () from /lib64/tls/libc.so.6 #5 0x0000000000000000 in ?? () Thread 14 (process 18038): #0 0x0000003263808d3d in pthread_cond_signal@@GLIBC_2.3.2 () from /lib64/tls/libpthread.so.0 #1 0x0000002a96b5a4c0 in ast_cond_signal (cond=0x2a96c90360) at ../include/asterisk/lock.h:638 #2 0x0000002a96b5a489 in signal_condition (lock=0x2a96c8dcc0, cond=0x2a96c90360) at chan_iax2.c:716 #3 0x0000002a96b5f6ed in iax2_transmit (fr=0x67b5f0) at chan_iax2.c:2649 #4 0x0000002a96b64e88 in iax2_send (pvt=0x6c1590, f=0x4038d060, ts=0, seqno=-1, now=0, transfer=0, final=0) at chan_iax2.c:4197 #5 0x0000002a96b676bf in __send_command (i=0x6c1590, type=6 '\006', command=11, ts=0, data=0x0, datalen=0, seqno=-1, now=0, transfer=0, final=0) at chan_iax2.c:4861 #6 0x0000002a96b67728 in send_command (i=0x6c1590, type=6 '\006', command=11, ts=0, data=0x0, datalen=0, seqno=-1) at chan_iax2.c:4866 #7 0x0000002a96b5aaf3 in __send_lagrq (data=0x6) at chan_iax2.c:906 #8 0x0000002a96b7805f in iax2_process_thread (data=0x6700d0) at chan_iax2.c:7932 #9 0x000000326380610a in start_thread () from /lib64/tls/libpthread.so.0 #10 0x0000003262dc5ee3 in clone () from /lib64/tls/libc.so.6 #11 0x0000000000000000 in ?? () Thread 13 (process 18039): #0 0x00000032638089aa in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/tls/libpthread.so.0 #1 0x0000002a96b78382 in ast_cond_wait (cond=0x6723b0, t=0x672388) at ../include/asterisk/lock.h:653 #2 0x0000002a96b77cb0 in iax2_process_thread (data=0x671260) at chan_iax2.c:7909 #3 0x000000326380610a in start_thread () from /lib64/tls/libpthread.so.0 #4 0x0000003262dc5ee3 in clone () from /lib64/tls/libc.so.6 #5 0x0000000000000000 in ?? () Thread 12 (process 18040): #0 0x00000032638089aa in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/tls/libpthread.so.0 #1 0x0000002a96b78382 in ast_cond_wait (cond=0x673540, t=0x673518) at ../include/asterisk/lock.h:653 #2 0x0000002a96b77cb0 in iax2_process_thread (data=0x6723f0) at chan_iax2.c:7909 #3 0x000000326380610a in start_thread () from /lib64/tls/libpthread.so.0 #4 0x0000003262dc5ee3 in clone () from /lib64/tls/libc.so.6 #5 0x0000000000000000 in ?? () Thread 11 (process 18041): #0 0x00000032638089aa in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/tls/libpthread.so.0 #1 0x0000002a96b78382 in ast_cond_wait (cond=0x6746d0, t=0x6746a8) at ../include/asterisk/lock.h:653 #2 0x0000002a96b77cb0 in iax2_process_thread (data=0x673580) at chan_iax2.c:7909 #3 0x000000326380610a in start_thread () from /lib64/tls/libpthread.so.0 #4 0x0000003262dc5ee3 in clone () from /lib64/tls/libc.so.6 #5 0x0000000000000000 in ?? () Thread 10 (process 18042): #0 0x00000032638089aa in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/tls/libpthread.so.0 #1 0x0000002a96b78382 in ast_cond_wait (cond=0x675860, t=0x675838) at ../include/asterisk/lock.h:653 #2 0x0000002a96b77cb0 in iax2_process_thread (data=0x674710) at chan_iax2.c:7909 #3 0x000000326380610a in start_thread () from /lib64/tls/libpthread.so.0 #4 0x0000003262dc5ee3 in clone () from /lib64/tls/libc.so.6 #5 0x0000000000000000 in ?? () Thread 9 (process 18043): #0 0x00000032638089aa in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/tls/libpthread.so.0 #1 0x0000002a96b78382 in ast_cond_wait (cond=0x6769f0, t=0x6769c8) at ../include/asterisk/lock.h:653 #2 0x0000002a96b77cb0 in iax2_process_thread (data=0x6758a0) at chan_iax2.c:7909 #3 0x000000326380610a in start_thread () from /lib64/tls/libpthread.so.0 #4 0x0000003262dc5ee3 in clone () from /lib64/tls/libc.so.6 #5 0x0000000000000000 in ?? () Thread 8 (process 18044): #0 0x00000032638089aa in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/tls/libpthread.so.0 #1 0x0000002a96b78382 in ast_cond_wait (cond=0x677b80, t=0x677b58) at ../include/asterisk/lock.h:653 #2 0x0000002a96b77cb0 in iax2_process_thread (data=0x676a30) at chan_iax2.c:7909 #3 0x000000326380610a in start_thread () from /lib64/tls/libpthread.so.0 #4 0x0000003262dc5ee3 in clone () from /lib64/tls/libc.so.6 #5 0x0000000000000000 in ?? () Thread 7 (process 18045): #0 0x0000003263808b9f in pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib64/tls/libpthread.so.0 #1 0x0000002a96b798e2 in ast_cond_timedwait (cond=0x2a96c90360, t=0x2a96c8dcc0, abstime=0x405541a0) at ../include/asterisk/lock.h:658 #2 0x0000002a96b79846 in sched_thread (ignore=0x0) at chan_iax2.c:8277 #3 0x000000326380610a in start_thread () from /lib64/tls/libpthread.so.0 #4 0x0000003262dc5ee3 in clone () from /lib64/tls/libc.so.6 #5 0x0000000000000000 in ?? () Thread 6 (process 18047): #0 0x0000003262dbef86 in __select_nocancel () from /lib64/tls/libc.so.6 #1 0x0000002a971d11c4 in ast_select (nfds=16, rfds=0x405d5130, wfds=0x405d50b0, efds=0x0, tvp=0x0) at ../include/asterisk/channel.h:1231 #2 0x0000002a971d0f37 in sound_thread (arg=0x6848e0) at chan_oss.c:578 ---Type to continue, or q to quit--- #3 0x000000326380610a in start_thread () from /lib64/tls/libpthread.so.0 #4 0x0000003262dc5ee3 in clone () from /lib64/tls/libc.so.6 #5 0x0000000000000000 in ?? () Thread 5 (process 18048): #0 0x0000003262dbd0c2 in poll () from /lib64/tls/libc.so.6 #1 0x0000002a972fe473 in do_monitor (data=0x0) at chan_zap.c:6702 #2 0x000000326380610a in start_thread () from /lib64/tls/libpthread.so.0 #3 0x0000003262dc5ee3 in clone () from /lib64/tls/libc.so.6 #4 0x0000000000000000 in ?? () Thread 4 (process 18049): #0 0x0000003262dbd0c2 in poll () from /lib64/tls/libc.so.6 #1 0x0000000000412220 in ast_io_wait (ioc=0x67f0b0, howlong=1000) at io.c:266 #2 0x0000002a976ce802 in do_monitor (data=0x0) at chan_mgcp.c:3519 #3 0x000000326380610a in start_thread () from /lib64/tls/libpthread.so.0 #4 0x0000003262dc5ee3 in clone () from /lib64/tls/libc.so.6 #5 0x0000000000000000 in ?? () Thread 3 (process 18050): #0 0x0000003262dbd0c2 in poll () from /lib64/tls/libc.so.6 #1 0x0000000000412220 in ast_io_wait (ioc=0x67db50, howlong=1000) at io.c:266 #2 0x0000002a9780aaf2 in do_monitor (data=0x0) at chan_sip.c:11743 ---Type to continue, or q to quit--- #3 0x000000326380610a in start_thread () from /lib64/tls/libpthread.so.0 #4 0x0000003262dc5ee3 in clone () from /lib64/tls/libc.so.6 #5 0x0000000000000000 in ?? () Thread 2 (process 18052): #0 0x0000003262dbd0c2 in poll () from /lib64/tls/libc.so.6 #1 0x0000000000462b34 in netconsole (vconsole=0x60dc00) at asterisk.c:523 #2 0x000000326380610a in start_thread () from /lib64/tls/libpthread.so.0 #3 0x0000003262dc5ee3 in clone () from /lib64/tls/libc.so.6 #4 0x0000000000000000 in ?? () Thread 1 (process 18046): #0 0x0000002a96b5d005 in send_packet (f=0x67b5f0) at chan_iax2.c:1629 #1 0x0000002a96b79990 in network_thread (ignore=0x0) at chan_iax2.c:8310 #2 0x000000326380610a in start_thread () from /lib64/tls/libpthread.so.0 #3 0x0000003262dc5ee3 in clone () from /lib64/tls/libc.so.6 #4 0x0000000000000000 in ?? () (gdb) print iaxs[callno]->sockfd Cannot access memory at address 0x0 (gdb) print iaxs[callno]->addr Cannot access memory at address 0x30