(gdb) bt #0 agent_devicestate_cb (dev=0xa0d0c14 "SIP/XXX", state=1, data=0x0) at chan_agent.c:304 #1 0x08095354 in do_state_change (device=0xa0d0c14 "SIP/XXX") at devicestate.c:291 #2 0x08095409 in do_devstate_changes (data=0x0) at devicestate.c:369 #3 0x080fc18b in dummy_start (data=0xa08ce90) at utils.c:895 #4 0x0034545b in start_thread () from /lib/libpthread.so.0 #5 0x0042524e in clone () from /lib/libc.so.6 (gdb) bt full #0 agent_devicestate_cb (dev=0xa0d0c14 "SIP/XXX", state=1, data=0x0) at chan_agent.c:304 res = p = (struct agent_pvt *) 0xa0d0c28 basename = "YYY\000ger", '\0' , "-\000\000\000\024\000\000\000\006\000\000\000\030\000\000\000\221s4\000l\000\000\000\002\000\000\000¯\000\000\000\001\000\000\000\020\016\000\000Ü]\000\000$\203÷·-\204`H;PJ" #1 0x08095354 in do_state_change (device=0xa0d0c14 "SIP/XXX") at devicestate.c:291 state = 1 devcb = (struct devstate_cb *) 0xa0d08c8 __PRETTY_FUNCTION__ = "do_state_change" #2 0x08095409 in do_devstate_changes (data=0x0) at devicestate.c:369 cur = (struct state_change *) 0xa0d0c10 #3 0x080fc18b in dummy_start (data=0xa08ce90) at utils.c:895 __cancel_buf = {__cancel_jmp_buf = {{__cancel_jmp_buf = {168349008, 0, -1208513648, -1208515640, -218568285, 1291889575}, __mask_was_saved = 0}}, __pad = {0xb7f78480, 0x0, 0x0, 0x0}} __cancel_arg = (void *) 0xb7f78b90 not_first_call = ret = #4 0x0034545b in start_thread () from /lib/libpthread.so.0 No symbol table info available. ---Type to continue, or q to quit--- #5 0x0042524e in clone () from /lib/libc.so.6 No symbol table info available. (gdb) thread apply all bt Thread 8 (process 24024): #0 0x0029b2ce in init_layer3_const () from /usr/lib/asterisk/modules/format_mp3.so #1 0x0029d4a7 in InitMP3Constants () from /usr/lib/asterisk/modules/format_mp3.so #2 0x00295f07 in __i686.get_pc_thunk.bx () from /usr/lib/asterisk/modules/format_mp3.so #3 0xbff54324 in ?? () #4 0xbff5433c in ?? () #5 0x00000032 in ?? () #6 0xbff54324 in ?? () #7 0x00295ef9 in __i686.get_pc_thunk.bx () from /usr/lib/asterisk/modules/format_mp3.so #8 0xbff54324 in ?? () #9 0xbff54398 in ?? () #10 0x080ad204 in load_resource (resource_name=0x0, global_symbols_only=) at loader.c:680 #11 0x080ad204 in load_resource (resource_name=0xa090db8 "format_mp3.so", global_symbols_only=) at loader.c:680 #12 0x080ad9e1 in load_modules (preload_only=0) at loader.c:874 #13 0x0806e8d2 in main (argc=2, argv=0xbff54a04) at asterisk.c:3058 #14 0x0036cdec in __libc_start_main () from /lib/libc.so.6 ---Type to continue, or q to quit--- #15 0x08057e11 in free () Thread 7 (process 24026): #0 0x0023c402 in __kernel_vsyscall () #1 0x0041b653 in poll () from /lib/libc.so.6 #2 0x0806a93b in listener (unused=0x0) at asterisk.c:992 #3 0x080fc18b in dummy_start (data=0xa0881b8) at utils.c:895 #4 0x0034545b in start_thread () from /lib/libpthread.so.0 #5 0x0042524e in clone () from /lib/libc.so.6 Thread 6 (process 24027): #0 0x0023c402 in __kernel_vsyscall () #1 0x0041b653 in poll () from /lib/libc.so.6 #2 0x080b25cc in accept_thread (ignore=0x0) at manager.c:2399 #3 0x080fc18b in dummy_start (data=0xa088840) at utils.c:895 #4 0x0034545b in start_thread () from /lib/libpthread.so.0 #5 0x0042524e in clone () from /lib/libc.so.6 Thread 5 (process 24029): #0 0x0023c402 in __kernel_vsyscall () #1 0x0041e051 in select () from /lib/libc.so.6 #2 0x005f9138 in do_parking_thread (ignore=0x0) at /usr/src/asterisk-1.4.21/include/asterisk/channel.h:1320 ---Type to continue, or q to quit--- #3 0x080fc18b in dummy_start (data=0xa088300) at utils.c:895 #4 0x0034545b in start_thread () from /lib/libpthread.so.0 #5 0x0042524e in clone () from /lib/libc.so.6 Thread 4 (process 24030): #0 0x0023c402 in __kernel_vsyscall () #1 0x003e5986 in nanosleep () from /lib/libc.so.6 #2 0x003e57af in sleep () from /lib/libc.so.6 #3 0x00fa0b77 in scan_thread (unused=0x0) at pbx_spool.c:437 #4 0x080fc18b in dummy_start (data=0xa09cc58) at utils.c:895 #5 0x0034545b in start_thread () from /lib/libpthread.so.0 #6 0x0042524e in clone () from /lib/libc.so.6 Thread 3 (process 24031): #0 0x0023c402 in __kernel_vsyscall () #1 0x0034bb51 in __lll_mutex_unlock_wake () from /lib/libpthread.so.0 #2 0x00348889 in _L_mutex_unlock_101 () from /lib/libpthread.so.0 #3 0x003484f0 in __pthread_mutex_unlock_usercnt () from /lib/libpthread.so.0 #4 0x00348880 in pthread_mutex_unlock () from /lib/libpthread.so.0 #5 0x080954ff in __ast_device_state_changed_literal ( buf=0xb7ec0230 "SIP/XXX", norecurse=135599208) at /usr/src/asterisk-1.4.21/include/asterisk/lock.h:745 #6 0x08095624 in ast_device_state_changed (fmt=0x8b0cf4 "SIP/%s") ---Type to continue, or q to quit--- at devicestate.c:354 #7 0x008a0e05 in handle_response (p=0xa0d7c98, resp=200, rest=0xb7ec3144 "OK", req=0xb7ec2f1c, ignore=0, seqno=102) at chan_sip.c:12671 #8 0x008a3fc6 in handle_request (p=0xa0d7c98, req=0xb7ec2f1c, sin=0xb7ec4240, recount=0xb7ec4250, nounlock=0xb7ec4254) at chan_sip.c:15329 #9 0x008a624a in sipsock_read (id=0xa0aec90, fd=10, events=1, ignore=0x0) at chan_sip.c:15562 #10 0x080ab160 in ast_io_wait (ioc=0xa0a53b8, howlong=85) at io.c:279 #11 0x0088d8f8 in do_monitor (data=0x0) at chan_sip.c:15775 #12 0x080fc18b in dummy_start (data=0xa0aff58) at utils.c:895 #13 0x0034545b in start_thread () from /lib/libpthread.so.0 #14 0x0042524e in clone () from /lib/libc.so.6 Thread 2 (process 24032): #0 0x0023c402 in __kernel_vsyscall () #1 0x0041b653 in poll () from /lib/libc.so.6 #2 0x080ab0f4 in ast_io_wait (ioc=0xa0c8ab0, howlong=1000) at io.c:266 #3 0x001a32fb in do_monitor (data=0x0) at chan_mgcp.c:3514 #4 0x080fc18b in dummy_start (data=0xa090690) at utils.c:895 #5 0x0034545b in start_thread () from /lib/libpthread.so.0 #6 0x0042524e in clone () from /lib/libc.so.6 ---Type to continue, or q to quit--- Thread 1 (process 24028): #0 agent_devicestate_cb (dev=0xa0d0c14 "SIP/XXX", state=1, data=0x0) at chan_agent.c:304 #1 0x08095354 in do_state_change (device=0xa0d0c14 "SIP/XXX") at devicestate.c:291 #2 0x08095409 in do_devstate_changes (data=0x0) at devicestate.c:369 #3 0x080fc18b in dummy_start (data=0xa08ce90) at utils.c:895 #4 0x0034545b in start_thread () from /lib/libpthread.so.0 #5 0x0042524e in clone () from /lib/libc.so.6 (gdb) (gdb)