gdb asterisk core.24156 GNU gdb Red Hat Linux (6.3.0.0-1.63rh) Copyright 2004 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "i386-redhat-linux-gnu"...Using host libthread_db library "/lib/tls/libthread_db.so.1". Core was generated by `asterisk -g'. Program terminated with signal 11, Segmentation fault. Reading symbols from /lib/libdl.so.2...done. Loaded symbols for /lib/libdl.so.2 Reading symbols from /lib/tls/libpthread.so.0...done. Loaded symbols for /lib/tls/libpthread.so.0 Reading symbols from /usr/lib/libncurses.so.5...done. ... Reading symbols from /lib/libgcc_s.so.1...done. Loaded symbols for /lib/libgcc_s.so.1 #0 0x00a3fc94 in pthread_mutex_lock () from /lib/tls/libpthread.so.0 (gdb) bt #0 0x00a3fc94 in pthread_mutex_lock () from /lib/tls/libpthread.so.0 #1 0x00295220 in expire_register (data=0xb677b180) at ../include/asterisk/lock.h:592 #2 0x08056688 in ast_sched_runq (con=0x982c808) at sched.c:373 #3 0x002bf777 in do_monitor (data=0x0) at chan_sip.c:11324 #4 0x00a3e341 in start_thread () from /lib/tls/libpthread.so.0 #5 0x008be6fe in clone () from /lib/tls/libc.so.6 (gdb) (gdb) bt full #0 0x00a3fc94 in pthread_mutex_lock () from /lib/tls/libpthread.so.0 No symbol table info available. #1 0x00295220 in expire_register (data=0xb677b180) at ../include/asterisk/lock.h:592 newcount = 24172 peer = Variable "peer" is not available. (gdb) thread apply all bt Thread 16 (process 24156): #0 0x007de7a2 in _dl_sysinfo_int80 () from /lib/ld-linux.so.2 #1 0x008b49e4 in poll () from /lib/tls/libc.so.6 #2 0x080bdfce in main (argc=2, argv=0xbff818c4) at asterisk.c:2449 Thread 15 (process 24158): #0 0x007de7a2 in _dl_sysinfo_int80 () from /lib/ld-linux.so.2 #1 0x008b49e4 in poll () from /lib/tls/libc.so.6 #2 0x080b9646 in listener (unused=0x0) at asterisk.c:592 #3 0x00a3e341 in start_thread () from /lib/tls/libpthread.so.0 #4 0x008be6fe in clone () from /lib/tls/libc.so.6 Thread 14 (process 24159): #0 0x007de7a2 in _dl_sysinfo_int80 () from /lib/ld-linux.so.2 #1 0x00a43608 in accept () from /lib/tls/libpthread.so.0 #2 0x080b7067 in accept_thread (ignore=0x0) at manager.c:1442 #3 0x00a3e341 in start_thread () from /lib/tls/libpthread.so.0 #4 0x008be6fe in clone () from /lib/tls/libc.so.6 Thread 13 (process 24160): #0 0x007de7a2 in _dl_sysinfo_int80 () from /lib/ld-linux.so.2 #1 0x00a433fb in __read_nocancel () from /lib/tls/libpthread.so.0 #2 0x001524db in vio_read () from /usr/lib/mysql/libmysqlclient.so.14 #3 0x00153f42 in net_write_command () from /usr/lib/mysql/libmysqlclient.so.14 #4 0x00154279 in my_net_read () from /usr/lib/mysql/libmysqlclient.so.14 #5 0x0014d934 in net_safe_read () from /usr/lib/mysql/libmysqlclient.so.14 #6 0x001508cc in cli_advanced_command () from /usr/lib/mysql/libmysqlclient.so.14 #7 0x0014e9c0 in mysql_select_db () from /usr/lib/mysql/libmysqlclient.so.14 #8 0x00000002 in ?? () #9 0x00000000 in ?? () Thread 12 (process 24161): #0 0x007de7a2 in _dl_sysinfo_int80 () from /lib/ld-linux.so.2 #1 0x008b7151 in ___newselect_nocancel () from /lib/tls/libc.so.6 #2 0x00113683 in do_monitor (data=0x0) at ../include/asterisk/channel.h:1027 #3 0x00a3e341 in start_thread () from /lib/tls/libpthread.so.0 #4 0x008be6fe in clone () from /lib/tls/libc.so.6 Thread 11 (process 24162): #0 0x007de7a2 in _dl_sysinfo_int80 () from /lib/ld-linux.so.2 #1 0x008b7151 in ___newselect_nocancel () from /lib/tls/libc.so.6 #2 0x0023f41c in do_parking_thread (ignore=0x0) at ../include/asterisk/channel.h:1148 #3 0x00a3e341 in start_thread () from /lib/tls/libpthread.so.0 #4 0x008be6fe in clone () from /lib/tls/libc.so.6 Thread 10 (process 24163): #0 0x007de7a2 in _dl_sysinfo_int80 () from /lib/ld-linux.so.2 #1 0x008815b6 in __nanosleep_nocancel () from /lib/tls/libc.so.6 #2 0x008813bc in sleep () from /lib/tls/libc.so.6 #3 0x006ac7d4 in scan_thread (unused=0x0) at pbx_spool.c:364 #4 0x00a3e341 in start_thread () from /lib/tls/libpthread.so.0 #5 0x008be6fe in clone () from /lib/tls/libc.so.6 Thread 9 (process 24164): #0 0x007de7a2 in _dl_sysinfo_int80 () from /lib/ld-linux.so.2 #1 0x008b49e4 in poll () from /lib/tls/libc.so.6 #2 0x08055a34 in ast_io_wait (ioc=0x9815348, howlong=-4) at io.c:271 #3 0x0068dbbd in network_thread (ignore=0x0) at pbx_dundi.c:2106 #4 0x00a3e341 in start_thread () from /lib/tls/libpthread.so.0 #5 0x008be6fe in clone () from /lib/tls/libc.so.6 Thread 8 (process 24165): #0 0x007de7a2 in _dl_sysinfo_int80 () from /lib/ld-linux.so.2 #1 0x008815b6 in __nanosleep_nocancel () from /lib/tls/libc.so.6 #2 0x008813bc in sleep () from /lib/tls/libc.so.6 #3 0x00697d9c in process_precache (ign=0x0) at pbx_dundi.c:2146 #4 0x00a3e341 in start_thread () from /lib/tls/libpthread.so.0 ---Type to continue, or q to quit--- #5 0x008be6fe in clone () from /lib/tls/libc.so.6 Thread 7 (process 24166): #0 0x007de7a2 in _dl_sysinfo_int80 () from /lib/ld-linux.so.2 #1 0x00a43608 in accept () from /lib/tls/libpthread.so.0 #2 0x00b95167 in accept_thread (ignore=0x0) at chan_skinny.c:2961 #3 0x00a3e341 in start_thread () from /lib/tls/libpthread.so.0 #4 0x008be6fe in clone () from /lib/tls/libc.so.6 Thread 6 (process 24167): #0 0x007de7a2 in _dl_sysinfo_int80 () from /lib/ld-linux.so.2 #1 0x008b49e4 in poll () from /lib/tls/libc.so.6 #2 0x08055a34 in ast_io_wait (ioc=0x9814690, howlong=-4) at io.c:271 #3 0x00b95482 in do_monitor (data=0x0) at chan_skinny.c:3011 #4 0x00a3e341 in start_thread () from /lib/tls/libpthread.so.0 #5 0x008be6fe in clone () from /lib/tls/libc.so.6 Thread 5 (process 24168): #0 0x007de7a2 in _dl_sysinfo_int80 () from /lib/ld-linux.so.2 #1 0x008b49e4 in poll () from /lib/tls/libc.so.6 #2 0x08055a34 in ast_io_wait (ioc=0x9826e78, howlong=-4) at io.c:271 #3 0x00336d2f in network_thread (ignore=0x0) at chan_iax2.c:7983 #4 0x00a3e341 in start_thread () from /lib/tls/libpthread.so.0 #5 0x008be6fe in clone () from /lib/tls/libc.so.6 Thread 4 (process 24169): #0 0x007de7a2 in _dl_sysinfo_int80 () from /lib/ld-linux.so.2 #1 0x008b7151 in ___newselect_nocancel () from /lib/tls/libc.so.6 #2 0x0026234a in do_monitor (data=0x0) at ../include/asterisk/channel.h:1148 #3 0x00a3e341 in start_thread () from /lib/tls/libpthread.so.0 #4 0x008be6fe in clone () from /lib/tls/libc.so.6 Thread 3 (process 24170): #0 0x007de7a2 in _dl_sysinfo_int80 () from /lib/ld-linux.so.2 #1 0x008b49e4 in poll () from /lib/tls/libc.so.6 #2 0x08055a34 in ast_io_wait (ioc=0x982a1b8, howlong=-4) at io.c:271 #3 0x002774f6 in do_monitor (data=0x0) at chan_mgcp.c:3460 #4 0x00a3e341 in start_thread () from /lib/tls/libpthread.so.0 #5 0x008be6fe in clone () from /lib/tls/libc.so.6 Thread 2 (process 24171): #0 0x007de7a2 in _dl_sysinfo_int80 () from /lib/ld-linux.so.2 #1 0x008b7151 in ___newselect_nocancel () from /lib/tls/libc.so.6 #2 0x00aebdbc in sound_thread (arg=0x982c870) at ../include/asterisk/channel.h:1148 #3 0x00a3e341 in start_thread () from /lib/tls/libpthread.so.0 #4 0x008be6fe in clone () from /lib/tls/libc.so.6 Thread 1 (process 24172): #0 0x00a3fc94 in pthread_mutex_lock () from /lib/tls/libpthread.so.0 #1 0x00295220 in expire_register (data=0xb677b180) at ../include/asterisk/lock.h:592 #2 0x08056688 in ast_sched_runq (con=0x982c808) at sched.c:373 #3 0x002bf777 in do_monitor (data=0x0) at chan_sip.c:11324 #4 0x00a3e341 in start_thread () from /lib/tls/libpthread.so.0 #5 0x008be6fe in clone () from /lib/tls/libc.so.6 (gdb)