(gdb) thread apply all bt Thread 9 (process 6657): #0 0xb7b2eea0 in __find_specmb () from /lib/libc.so.6 #1 0x00000000 in ?? () Thread 8 (process 6659): #0 0xffffe410 in __kernel_vsyscall () #1 0xb7b8f193 in poll () from /lib/libc.so.6 #2 0x0806a7eb in listener (unused=0x0) at asterisk.c:840 #3 0x080f2ac4 in dummy_start (data=0x81825ec) at utils.c:545 #4 0xb7d6b34b in start_thread () from /lib/libpthread.so.0 #5 0xb7b9865e in clone () from /lib/libc.so.6 Thread 7 (process 6660): #0 0xffffe410 in __kernel_vsyscall () #1 0xb7d6e7e6 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0 #2 0x080920aa in ast_cond_wait (cond=0x8157080, t=0x814fae8) at /usr/src/asterisk/include/asterisk/lock.h:564 #3 0x0809208d in do_devstate_changes (data=0x0) at devicestate.c:450 #4 0x080f2ac4 in dummy_start (data=0x8176e84) at utils.c:545 #5 0xb7d6b34b in start_thread () from /lib/libpthread.so.0 #6 0xb7b9865e in clone () from /lib/libc.so.6 Thread 6 (process 6661): #0 0xffffe410 in __kernel_vsyscall () #1 0xb7b91d11 in ___newselect_nocancel () from /lib/libc.so.6 #2 0xb7a4c79c in ast_select (nfds=0, rfds=0xb7a432ac, wfds=0x0, efds=0xb7a4322c, tvp=0x0) at /usr/src/asterisk/include/asterisk/channel.h:1305 #3 0xb7a4c759 in do_parking_thread (ignore=0x0) at res_features.c:1693 #4 0x080f2ac4 in dummy_start (data=0x8197cb4) at utils.c:545 #5 0xb7d6b34b in start_thread () from /lib/libpthread.so.0 #6 0xb7b9865e in clone () from /lib/libc.so.6 Thread 5 (process 6664): #0 0xffffe410 in __kernel_vsyscall () #1 0xb7b65f06 in __nanosleep_nocancel () from /lib/libc.so.6 #2 0xb7b65cfc in sleep () from /lib/libc.so.6 #3 0xb77c4a9a in scan_thread (unused=0x0) at pbx_spool.c:436 #4 0x080f2ac4 in dummy_start (data=0x81bc374) at utils.c:545 #5 0xb7d6b34b in start_thread () from /lib/libpthread.so.0 #6 0xb7b9865e in clone () from /lib/libc.so.6 Thread 4 (process 17578): #0 0xffffe410 in __kernel_vsyscall () #1 0xb7b8f193 in poll () from /lib/libc.so.6 #2 0x0807e008 in ast_waitfor_nandfds (c=0xb729ffe0, n=0, fds=0x0, nfds=0, exception=0x0, outfd=0x0, ms=0xb72a03e0) at channel.c:1817 #3 0x0807e33c in ast_waitfor_n (c=0xb729ffe0, n=0, ms=0xb72a03e0) at channel.c:1879 #4 0x08071af7 in autoservice_run (ign=0x0) at autoservice.c:84 #5 0x080f2ac4 in dummy_start (data=0x81d2eb4) at utils.c:545 #6 0xb7d6b34b in start_thread () from /lib/libpthread.so.0 #7 0xb7b9865e in clone () from /lib/libc.so.6 Thread 3 (process 30995): #0 0xffffe410 in __kernel_vsyscall () #1 0xb7d712db in __read_nocancel () from /lib/libpthread.so.0 #2 0xb78f0408 in vio_read () from /usr/lib/libmysqlclient.so.15 #3 0xb78f047e in vio_read_buff () from /usr/lib/libmysqlclient.so.15 #4 0xb78f0ecc in net_realloc () from /usr/lib/libmysqlclient.so.15 #5 0xb78f12bb in my_net_read () from /usr/lib/libmysqlclient.so.15 #6 0xb78eb9d8 in net_safe_read () from /usr/lib/libmysqlclient.so.15 #7 0xb78ec4d5 in unpack_fields () from /usr/lib/libmysqlclient.so.15 ---Type to continue, or q to quit--- #8 0xb78eae94 in mysql_real_query () from /usr/lib/libmysqlclient.so.15 #9 0xb73fab8c in ci_predial_exec (chan=0x823ad1c, data=0xb71d89a0) at app_cibill.c:545 #10 0x080b46d4 in pbx_exec (c=0x823ad1c, app=0x81cb64c, data=0xb71d89a0) at pbx.c:505 #11 0xb764c746 in realtime_exec (chan=0x823ad1c, context=0x823ae9c "internal", exten=0x823aeec "004916097544877", priority=1, callerid=0x8273af4 "1365", data=0x82578ed "@extensions") at pbx_realtime.c:216 #12 0x080b7686 in pbx_extension_helper (c=0x823ad1c, con=0x0, context=0x823ae9c "internal", exten=0x823aeec "004916097544877", priority=1, label=0x0, callerid=0x8273af4 "1365", action=E_SPAWN) at pbx.c:1725 #13 0x080b86a2 in ast_spawn_extension (c=0x823ad1c, context=0x823ae9c "internal", exten=0x823aeec "004916097544877", priority=1, callerid=0x8273af4 "1365") at pbx.c:2167 #14 0x080b8ba2 in __ast_pbx_run (c=0x823ad1c) at pbx.c:2267 #15 0x080b9913 in pbx_thread (data=0x823ad1c) at pbx.c:2480 #16 0x080f2ac4 in dummy_start (data=0x847b0c4) at utils.c:545 #17 0xb7d6b34b in start_thread () from /lib/libpthread.so.0 #18 0xb7b9865e in clone () from /lib/libc.so.6 Thread 2 (process 1350): #0 0xffffe410 in __kernel_vsyscall () #1 0xb7b8f193 in poll () from /lib/libc.so.6 #2 0x0807e008 in ast_waitfor_nandfds (c=0xb719b79c, n=2, fds=0x0, nfds=0, exception=0x0, outfd=0x0, ms=0xb719b7e0) at channel.c:1817 #3 0x0807e33c in ast_waitfor_n (c=0xb719b79c, n=2, ms=0xb719b7e0) at channel.c:1879 #4 0x080cd16c in bridge_p2p_loop (c0=0x826adbc, c1=0x8287c14, p0=0x8313a3c, p1=0x81e891c, timeoutms=-1, flags=0, fo=0xb719bc08, rc=0xb719bc04, pvt0=0x83703e4, pvt1=0x8324d44) at rtp.c:3057 #5 0x080cdaef in ast_rtp_bridge (c0=0x826adbc, c1=0x8287c14, flags=0, fo=0xb719bc08, rc=0xb719bc04, timeoutms=-1) at rtp.c:3236 #6 0x08085133 in ast_channel_bridge (c0=0x826adbc, c1=0x8287c14, config=0xb719c6c4, fo=0xb719bc08, rc=0xb719bc04) at channel.c:3940 #7 0xb7a4b09f in ast_bridge_call (chan=0x826adbc, peer=0x8287c14, config=0xb719c6c4) at res_features.c:1354 #8 0xb764091c in dial_exec_full (chan=0x826adbc, data=0xb719c9a0, peerflags=0xb719c8e4) at app_dial.c:1646 #9 0xb7640b94 in dial_exec (chan=0x826adbc, data=0xb719c9a0) at app_dial.c:1688 #10 0x080b46d4 in pbx_exec (c=0x826adbc, app=0x81c353c, data=0xb719c9a0) at pbx.c:505 #11 0xb764c746 in realtime_exec (chan=0x826adbc, context=0x826af3c "did", exten=0x826af8c "493572326559", priority=2, callerid=0x83d684c "+49210233180", data=0x81e84cd "@extensions") at pbx_realtime.c:216 #12 0x080b7686 in pbx_extension_helper (c=0x826adbc, con=0x0, context=0x826af3c "did", exten=0x826af8c "493572326559", priority=2, label=0x0, callerid=0x83d684c "+49210233180", action=E_SPAWN) at pbx.c:1725 #13 0x080b86a2 in ast_spawn_extension (c=0x826adbc, context=0x826af3c "did", exten=0x826af8c "493572326559", priority=2, callerid=0x83d684c "+49210233180") at pbx.c:2167 #14 0x080b8ba2 in __ast_pbx_run (c=0x826adbc) at pbx.c:2267 #15 0x080b9913 in pbx_thread (data=0x826adbc) at pbx.c:2480 #16 0x080f2ac4 in dummy_start (data=0x81d1724) at utils.c:545 #17 0xb7d6b34b in start_thread () from /lib/libpthread.so.0 #18 0xb7b9865e in clone () from /lib/libc.so.6 Thread 1 (process 6665): #0 0x080ccaf6 in p2p_rtp_callback (id=0x823241c, fd=21, events=1, cbdata=0x82f0b9c) at rtp.c:2935 #1 0x080a47f8 in ast_io_wait (ioc=0x81ccbdc, howlong=470) at io.c:279 #2 0xb73ce693 in do_monitor (data=0x0) at chan_sip.c:15071 #3 0x080f2ac4 in dummy_start (data=0x81cf0c4) at utils.c:545 #4 0xb7d6b34b in start_thread () from /lib/libpthread.so.0 #5 0xb7b9865e in clone () from /lib/libc.so.6