(gdb) thread apply all bt Thread 32 (process 30160): #0 0xb7e1a529 in poll () from /lib/libc.so.6 #1 0x080702b4 in monitor_sig_flags (unused=0x0) at asterisk.c:2524 #2 0x08071dc7 in main (argc=2, argv=0xbf845f34) at asterisk.c:3007 #3 0xb7d69df8 in __libc_start_main () from /lib/libc.so.6 #4 0x08057c61 in ?? () Thread 31 (process 30162): #0 0xb7e1a529 in poll () from /lib/libc.so.6 #1 0x0806b98b in listener (unused=0x0) at asterisk.c:980 #2 0x08112229 in dummy_start (data=0x8199db0) at utils.c:852 #3 0xb7eda1b3 in start_thread () from /lib/libpthread.so.0 #4 0xb7e2403e in clone () from /lib/libc.so.6 Thread 30 (process 30163): #0 0xb7e1a529 in poll () from /lib/libc.so.6 #1 0x08112454 in ast_wait_for_input (fd=6, ms=-1) at utils.c:912 #2 0x080b1a0c in http_root (data=0x0) at http.c:530 #3 0x08112229 in dummy_start (data=0x819a230) at utils.c:852 #4 0xb7eda1b3 in start_thread () from /lib/libpthread.so.0 #5 0xb7e2403e in clone () from /lib/libc.so.6 Thread 29 (process 30164): #0 0xb7e1a529 in poll () from /lib/libc.so.6 #1 0x080c540f in accept_thread (ignore=0x0) at manager.c:2352 #2 0x08112229 in dummy_start (data=0x819adf0) at utils.c:852 #3 0xb7eda1b3 in start_thread () from /lib/libpthread.so.0 #4 0xb7e2403e in clone () from /lib/libc.so.6 Thread 28 (process 30165): #0 0xb7ede3b1 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0 #1 0x0809d591 in __ast_cond_wait (filename=0x814ee13 "devicestate.c", lineno=375, func=0x814f24c "do_devstate_changes", cond_name=0x814f23c "&change_pending", mutex_name=0x814f260 "&state_changes.lock", cond=0x817c740, t=0x8173a48) at /usr/src/branches-080108/asterisk-1.4.17/include/asterisk/lock.h:556 #2 0x0809d28c in do_devstate_changes (data=0x0) at devicestate.c:375 #3 0x08112229 in dummy_start (data=0x819a258) at utils.c:852 #4 0xb7eda1b3 in start_thread () from /lib/libpthread.so.0 #5 0xb7e2403e in clone () from /lib/libc.so.6 Thread 27 (process 30166): #0 0xb7e1cef7 in ?? () from /lib/libc.so.6 #1 0xb7b7e7cf in agent_check_and_process () from /usr/lib/libnetsnmpagent.so.15 ---Type to continue, or q to quit--- #2 0xb7c5b1e8 in agent_thread (arg=0x0) at snmp/agent.c:162 #3 0x08112229 in dummy_start (data=0x81a1a68) at utils.c:852 #4 0xb7eda1b3 in start_thread () from /lib/libpthread.so.0 #5 0xb7e2403e in clone () from /lib/libc.so.6 Thread 26 (process 30167): #0 0xb7e1cef7 in ?? () from /lib/libc.so.6 #1 0xb77f8830 in ?? () from /usr/lib/asterisk/modules/res_features.so #2 0xb77f87ed in ?? () from /usr/lib/asterisk/modules/res_features.so #3 0x08112229 in dummy_start (data=0xb7801028) at utils.c:852 #4 0xb7eda1b3 in start_thread () from /lib/libpthread.so.0 #5 0xb7e2403e in clone () from /lib/libc.so.6 Thread 25 (process 30168): #0 0xb7ee0cd1 in ?? () from /lib/libpthread.so.0 #1 0xb7723228 in monmp3thread (data=0xb780bb10) at res_musiconhold.c:530 #2 0x08112229 in dummy_start (data=0xb780af90) at utils.c:852 #3 0xb7eda1b3 in start_thread () from /lib/libpthread.so.0 #4 0xb7e2403e in clone () from /lib/libc.so.6 Thread 24 (process 30169): #0 0xb7ee0cd1 in ?? () from /lib/libpthread.so.0 #1 0xb7723228 in monmp3thread (data=0xb780bdf0) at res_musiconhold.c:530 #2 0x08112229 in dummy_start (data=0xb780ac90) at utils.c:852 #3 0xb7eda1b3 in start_thread () from /lib/libpthread.so.0 #4 0xb7e2403e in clone () from /lib/libc.so.6 Thread 23 (process 30172): #0 0xb7e1a529 in poll () from /lib/libc.so.6 #1 0xb764eeb8 in pri_dchannel (vpri=0xb76695a0) at chan_zap.c:8465 #2 0x08112229 in dummy_start (data=0x81c7980) at utils.c:852 #3 0xb7eda1b3 in start_thread () from /lib/libpthread.so.0 #4 0xb7e2403e in clone () from /lib/libc.so.6 Thread 22 (process 30173): #0 0xb7e1a529 in poll () from /lib/libc.so.6 #1 0xb7648467 in do_monitor (data=0x0) at chan_zap.c:6842 #2 0x08112229 in dummy_start (data=0x81c6850) at utils.c:852 #3 0xb7eda1b3 in start_thread () from /lib/libpthread.so.0 #4 0xb7e2403e in clone () from /lib/libc.so.6 Thread 21 (process 30174): #0 0xb7ede3b1 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0 ---Type to continue, or q to quit--- #1 0xb6c34d8d in __ast_cond_wait (filename=0xb6c46d93 "chan_iax2.c", lineno=8346, func=0xb6c4aab8 "iax2_process_thread", cond_name=0xb6c47045 "&thread->cond", mutex_name=0xb6c47037 "&thread->lock", cond=0x822b19c, t=0x822b0c4) at /usr/src/branches-080108/asterisk-1.4.17/include/asterisk/lock.h:556 #2 0xb6c340b6 in iax2_process_thread (data=0x822a030) at chan_iax2.c:8346 #3 0x08112229 in dummy_start (data=0x8229e40) at utils.c:852 #4 0xb7eda1b3 in start_thread () from /lib/libpthread.so.0 #5 0xb7e2403e in clone () from /lib/libc.so.6 Thread 20 (process 30175): #0 0xb7ede3b1 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0 #1 0xb6c34d8d in __ast_cond_wait (filename=0xb6c46d93 "chan_iax2.c", lineno=8346, func=0xb6c4aab8 "iax2_process_thread", cond_name=0xb6c47045 "&thread->cond", mutex_name=0xb6c47037 "&thread->lock", cond=0x8230374, t=0x823029c) at /usr/src/branches-080108/asterisk-1.4.17/include/asterisk/lock.h:556 #2 0xb6c340b6 in iax2_process_thread (data=0x822f208) at chan_iax2.c:8346 #3 0x08112229 in dummy_start (data=0x8289ad0) at utils.c:852 #4 0xb7eda1b3 in start_thread () from /lib/libpthread.so.0 #5 0xb7e2403e in clone () from /lib/libc.so.6 Thread 19 (process 30176): #0 0xb7ede3b1 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0 #1 0xb6c34d8d in __ast_cond_wait (filename=0xb6c46d93 "chan_iax2.c", lineno=8346, func=0xb6c4aab8 "iax2_process_thread", cond_name=0xb6c47045 "&thread->cond", mutex_name=0xb6c47037 "&thread->lock", cond=0x82890ec, t=0x8289014) at /usr/src/branches-080108/asterisk-1.4.17/include/asterisk/lock.h:556 #2 0xb6c340b6 in iax2_process_thread (data=0x8287f80) at chan_iax2.c:8346 #3 0x08112229 in dummy_start (data=0x8289ae0) at utils.c:852 #4 0xb7eda1b3 in start_thread () from /lib/libpthread.so.0 #5 0xb7e2403e in clone () from /lib/libc.so.6 Thread 18 (process 30177): #0 0xb7ede3b1 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0 #1 0xb6c34d8d in __ast_cond_wait (filename=0xb6c46d93 "chan_iax2.c", lineno=8346, func=0xb6c4aab8 "iax2_process_thread", cond_name=0xb6c47045 "&thread->cond", mutex_name=0xb6c47037 "&thread->lock", cond=0x822457c, t=0x82244a4) at /usr/src/branches-080108/asterisk-1.4.17/include/asterisk/lock.h:556 #2 0xb6c340b6 in iax2_process_thread (data=0x8223410) at chan_iax2.c:8346 #3 0x08112229 in dummy_start (data=0x8229e40) at utils.c:852 #4 0xb7eda1b3 in start_thread () from /lib/libpthread.so.0 #5 0xb7e2403e in clone () from /lib/libc.so.6 Thread 17 (process 30179): #0 0xb7ede3b1 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0 #1 0xb6c34d8d in __ast_cond_wait (filename=0xb6c46d93 "chan_iax2.c", lineno=8346, func=0xb6c4aab8 "iax2_process_thread", cond_name=0xb6c47045 "&thread->cond", mutex_name=0xb6c47037 "&thread->lock", cond=0x823b684, t=0x823b5ac) at /usr/src/branches-080108/asterisk-1.4.17/include/asterisk/lock.h:556 ---Type to continue, or q to quit--- #2 0xb6c340b6 in iax2_process_thread (data=0x823a518) at chan_iax2.c:8346 #3 0x08112229 in dummy_start (data=0x8230480) at utils.c:852 #4 0xb7eda1b3 in start_thread () from /lib/libpthread.so.0 #5 0xb7e2403e in clone () from /lib/libc.so.6 Thread 16 (process 30180): #0 0xb7ede3b1 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0 #1 0xb6c34d8d in __ast_cond_wait (filename=0xb6c46d93 "chan_iax2.c", lineno=8346, func=0xb6c4aab8 "iax2_process_thread", cond_name=0xb6c47045 "&thread->cond", mutex_name=0xb6c47037 "&thread->lock", cond=0x823c84c, t=0x823c774) at /usr/src/branches-080108/asterisk-1.4.17/include/asterisk/lock.h:556 #2 0xb6c340b6 in iax2_process_thread (data=0x823b6e0) at chan_iax2.c:8346 #3 0x08112229 in dummy_start (data=0x8224a58) at utils.c:852 #4 0xb7eda1b3 in start_thread () from /lib/libpthread.so.0 #5 0xb7e2403e in clone () from /lib/libc.so.6 Thread 15 (process 30181): #0 0xb7ede3b1 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0 #1 0xb6c34d8d in __ast_cond_wait (filename=0xb6c46d93 "chan_iax2.c", lineno=8346, func=0xb6c4aab8 "iax2_process_thread", cond_name=0xb6c47045 "&thread->cond", mutex_name=0xb6c47037 "&thread->lock", cond=0x823da14, t=0x823d93c) at /usr/src/branches-080108/asterisk-1.4.17/include/asterisk/lock.h:556 #2 0xb6c340b6 in iax2_process_thread (data=0x823c8a8) at chan_iax2.c:8346 #3 0x08112229 in dummy_start (data=0x820dde0) at utils.c:852 #4 0xb7eda1b3 in start_thread () from /lib/libpthread.so.0 #5 0xb7e2403e in clone () from /lib/libc.so.6 Thread 14 (process 30182): #0 0xb7ede3b1 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0 #1 0xb6c34d8d in __ast_cond_wait (filename=0xb6c46d93 "chan_iax2.c", lineno=8346, func=0xb6c4aab8 "iax2_process_thread", cond_name=0xb6c47045 "&thread->cond", mutex_name=0xb6c47037 "&thread->lock", cond=0x823ebdc, t=0x823eb04) at /usr/src/branches-080108/asterisk-1.4.17/include/asterisk/lock.h:556 #2 0xb6c340b6 in iax2_process_thread (data=0x823da70) at chan_iax2.c:8346 #3 0x08112229 in dummy_start (data=0x8289228) at utils.c:852 #4 0xb7eda1b3 in start_thread () from /lib/libpthread.so.0 #5 0xb7e2403e in clone () from /lib/libc.so.6 Thread 13 (process 30183): #0 0xb7ede3b1 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0 #1 0xb6c34d8d in __ast_cond_wait (filename=0xb6c46d93 "chan_iax2.c", lineno=8346, func=0xb6c4aab8 "iax2_process_thread", cond_name=0xb6c47045 "&thread->cond", mutex_name=0xb6c47037 "&thread->lock", cond=0x823fda4, t=0x823fccc) at /usr/src/branches-080108/asterisk-1.4.17/include/asterisk/lock.h:556 #2 0xb6c340b6 in iax2_process_thread (data=0x823ec38) at chan_iax2.c:8346 #3 0x08112229 in dummy_start (data=0x8289320) at utils.c:852 #4 0xb7eda1b3 in start_thread () from /lib/libpthread.so.0 ---Type to continue, or q to quit--- #5 0xb7e2403e in clone () from /lib/libc.so.6 Thread 12 (process 30184): #0 0xb7ede622 in pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib/libpthread.so.0 #1 0xb6c3486c in __ast_cond_timedwait (filename=0xb6c46d93 "chan_iax2.c", lineno=8797, func=0xb6c4b019 "sched_thread", cond_name=0xb6c4b032 "&sched_cond", mutex_name=0xb6c4b026 "&sched_lock", cond=0xb6c51ce0, t=0xb6c4fa00, abstime=0xb69b0310) at /usr/src/branches-080108/asterisk-1.4.17/include/asterisk/lock.h:627 #2 0xb6c36acd in sched_thread (ignore=0x0) at chan_iax2.c:8797 #3 0x08112229 in dummy_start (data=0x82894c0) at utils.c:852 #4 0xb7eda1b3 in start_thread () from /lib/libpthread.so.0 #5 0xb7e2403e in clone () from /lib/libc.so.6 Thread 11 (process 30185): #0 0xb7e1a529 in poll () from /lib/libc.so.6 #1 0x080b5930 in ast_io_wait (ioc=0x821a028, howlong=-1) at io.c:266 #2 0xb6c36ec3 in network_thread (ignore=0x0) at chan_iax2.c:8866 #3 0x08112229 in dummy_start (data=0x8231950) at utils.c:852 #4 0xb7eda1b3 in start_thread () from /lib/libpthread.so.0 #5 0xb7e2403e in clone () from /lib/libc.so.6 Thread 10 (process 30186): #0 0xb7de483c in ?? () from /lib/libc.so.6 #1 0xb7de466e in sleep () from /lib/libc.so.6 #2 0xb6923a44 in scan_thread (unused=0x0) at pbx_spool.c:437 #3 0x08112229 in dummy_start (data=0x82187b8) at utils.c:852 #4 0xb7eda1b3 in start_thread () from /lib/libpthread.so.0 #5 0xb7e2403e in clone () from /lib/libc.so.6 Thread 9 (process 30194): #0 0xb7ede3b1 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0 #1 0xb66f3322 in __ast_cond_wait (filename=0xb6703e33 "app_queue.c", lineno=666, func=0xb670576f "device_state_thread", cond_name=0xb6705796 "&device_state.cond", mutex_name=0xb6705783 "&device_state.lock", cond=0xb6709660, t=0xb6709588) at /usr/src/branches-080108/asterisk-1.4.17/include/asterisk/lock.h:556 #2 0xb66f2ed7 in device_state_thread (data=0x0) at app_queue.c:666 #3 0x08112229 in dummy_start (data=0x8263690) at utils.c:852 #4 0xb7eda1b3 in start_thread () from /lib/libpthread.so.0 #5 0xb7e2403e in clone () from /lib/libc.so.6 Thread 8 (process 30195): #0 0xb7e1a529 in poll () from /lib/libc.so.6 #1 0x080b5930 in ast_io_wait (ioc=0x826f2d0, howlong=1000) at io.c:266 #2 0xb6669598 in do_monitor (data=0x0) at chan_sip.c:15640 #3 0x08112229 in dummy_start (data=0x8260e60) at utils.c:852 ---Type to continue, or q to quit--- #4 0xb7eda1b3 in start_thread () from /lib/libpthread.so.0 #5 0xb7e2403e in clone () from /lib/libc.so.6 Thread 7 (process 30293): #0 0xb7e1a529 in poll () from /lib/libc.so.6 #1 0x08084a4f in ast_waitfor_nandfds (c=0xb64a1ee0, n=0, fds=0x0, nfds=0, exception=0x0, outfd=0x0, ms=0xb64a2320) at channel.c:2007 #2 0x08084d7f in ast_waitfor_n (c=0xb64a1ee0, n=0, ms=0xb64a2320) at channel.c:2069 #3 0x08073d4e in autoservice_run (ign=0x0) at autoservice.c:104 #4 0x08112229 in dummy_start (data=0x8278050) at utils.c:852 #5 0xb7eda1b3 in start_thread () from /lib/libpthread.so.0 #6 0xb7e2403e in clone () from /lib/libc.so.6 Thread 6 (process 30783): #0 0xb7e1a529 in poll () from /lib/libc.so.6 #1 0x080c4c59 in get_input (s=0x82762a8, output=0xb6591cd4 "") at manager.c:2208 #2 0x080c4eb3 in do_message (s=0x82762a8) at manager.c:2245 #3 0x080c5073 in session_do (data=0x82762a8) at manager.c:2270 #4 0x08112229 in dummy_start (data=0x82780b8) at utils.c:852 #5 0xb7eda1b3 in start_thread () from /lib/libpthread.so.0 #6 0xb7e2403e in clone () from /lib/libc.so.6 Thread 5 (process 30785): #0 0xb7e1a529 in poll () from /lib/libc.so.6 #1 0x080c4c59 in get_input (s=0x82b67c0, output=0xb6555cd4 "") at manager.c:2208 #2 0x080c4eb3 in do_message (s=0x82b67c0) at manager.c:2245 #3 0x080c5073 in session_do (data=0x82b67c0) at manager.c:2270 #4 0x08112229 in dummy_start (data=0x8232000) at utils.c:852 #5 0xb7eda1b3 in start_thread () from /lib/libpthread.so.0 #6 0xb7e2403e in clone () from /lib/libc.so.6 Thread 4 (process 24261): #0 0xb7e1c544 in ioctl () from /lib/libc.so.6 #1 0xb7647354 in zt_wait_event (fd=51) at chan_zap.c:270 #2 0xb76440c7 in ss_thread (data=0x8473178) at chan_zap.c:5850 #3 0x08112229 in dummy_start (data=0x84458f8) at utils.c:852 #4 0xb7eda1b3 in start_thread () from /lib/libpthread.so.0 #5 0xb7e2403e in clone () from /lib/libc.so.6 Thread 3 (process 27262): #0 0x0807ad4b in ast_cdr_merge (to=0xb63b7ff8, from=0xb63b7c08) at /usr/src/branches-080108/asterisk-1.4.17/include/asterisk/strings.h:36 #1 0xb77f7970 in ast_bridge_call (chan=0xb63b62b0, peer=0xb63b6b58, config=0xb62050f0) at res_features.c:1587 #2 0xb6763cae in dial_exec_full (chan=0xb63b62b0, data=0xb6207e28, peerflags=0xb6205cf4, continue_exec=0x0) at app_dial.c:1701 #3 0xb6764722 in dial_exec (chan=0xb63b62b0, data=0xb6207e28) at app_dial.c:1755 ---Type to continue, or q to quit--- #4 0x080ca31a in pbx_exec (c=0xb63b62b0, app=0x825cb30, data=0xb6207e28) at pbx.c:532 #5 0x080cdfa4 in pbx_extension_helper (c=0xb63b62b0, con=0x0, context=0xb63b64f0 "macro-efetua-externo-celular", exten=0xb63b6540 "s", priority=11, label=0x0, callerid=0xb637a8a8 "5697", action=E_SPAWN) at pbx.c:1851 #6 0x080cf2e8 in ast_spawn_extension (c=0xb63b62b0, context=0xb63b64f0 "macro-efetua-externo-celular", exten=0xb63b6540 "s", priority=11, callerid=0xb637a8a8 "5697") at pbx.c:2306 #7 0xb68d40cc in _macro_exec (chan=0xb63b62b0, data=0xb620cf28, exclusive=0) at app_macro.c:308 #8 0xb68d4de5 in macro_exec (chan=0xb63b62b0, data=0xb620cf28) at app_macro.c:486 #9 0x080ca31a in pbx_exec (c=0xb63b62b0, app=0x8240dc0, data=0xb620cf28) at pbx.c:532 #10 0x080cdfa4 in pbx_extension_helper (c=0xb63b62b0, con=0x0, context=0xb63b64f0 "macro-efetua-externo-celular", exten=0xb63b6540 "s", priority=4, label=0x0, callerid=0xb637a8a8 "5697", action=E_SPAWN) at pbx.c:1851 #11 0x080cf2e8 in ast_spawn_extension (c=0xb63b62b0, context=0xb63b64f0 "macro-efetua-externo-celular", exten=0xb63b6540 "s", priority=4, callerid=0xb637a8a8 "5697") at pbx.c:2306 #12 0x080cf814 in __ast_pbx_run (c=0xb63b62b0) at pbx.c:2408 #13 0x080d0631 in pbx_thread (data=0xb63b62b0) at pbx.c:2623 #14 0x08112229 in dummy_start (data=0xb633b6f8) at utils.c:852 #15 0xb7eda1b3 in start_thread () from /lib/libpthread.so.0 #16 0xb7e2403e in clone () from /lib/libc.so.6 Thread 2 (process 27267): #0 0xb7e24028 in clone () from /lib/libc.so.6 #1 0x003d0f00 in ?? () #2 0x00000000 in ?? () Thread 1 (process 30178): #0 0xb6c2e928 in socket_process (thread=0x8230690) at chan_iax2.c:7583 #1 0xb6c341d4 in iax2_process_thread (data=0x8230690) at chan_iax2.c:8367 #2 0x08112229 in dummy_start (data=0x8230470) at utils.c:852 #3 0xb7eda1b3 in start_thread () from /lib/libpthread.so.0 #4 0xb7e2403e in clone () from /lib/libc.so.6