[root@juliet tmp]# gdb asterisk core.31211 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 lib rary "/lib/tls/libthread_db.so.1". Core was generated by `/usr/sbin/asterisk -vvvg -c'. Program terminated with signal 11, Segmentation fault. [snip] #0 0x080797e7 in channel_find_locked (prev=0x9550f90, name=0x1ed7b80 "SIP/5605", namelen=8, context=0x0, exten=0x0) at channel.c:1001 1001 if ((!namelen && strcasecmp(c->name, nam e)) || (gdb) bt full #0 0x080797e7 in channel_find_locked (prev=0x9550f90, name=0x1ed7b80 "SIP/5605", namelen=8, context=0x0, exten=0x0) at channel.c:1001 done = 0 msg = 0x812497c "deadlock" retries = 0 c = (struct ast_channel *) 0x0 __PRETTY_FUNCTION__ = "channel_find_locked" #1 0x08079a4d in ast_walk_channel_by_name_prefix_locked (chan=0x9550f90, name=0x1ed7b80 "SIP/5605", namelen=8) at channel.c:1059 No locals. #2 0x007d7469 in next_channel (last=0x9550f90, spec=0x1ed7b80 "SIP/5605", exten=0x0, context=0x0) at app_chanspy.c:412 this = (struct ast_channel *) 0x7dacb8 #3 0x007d7b44 in common_exec (chan=0xb7a5f898, flags=0x1ed7de8, volfactor=0, fd=0, mygroup=0x0, spec=0x1ed7b80 "SIP/5605", exten=0x0, context=0x0) at app_chanspy.c:468 peer = (struct ast_channel *) 0x9550f90 prev = (struct ast_channel *) 0x9550f90 next = (struct ast_channel *) 0x0 nameprefix = "h \024\bL \000\000Xzí\001ño\n\bh \024\b\000\000\000\000hzí\001\034r\n\bX\232N\t\032\000\000\000¨zí\001.\213\016\bP\232N\tL \000\000»²\023\bs\000\000\000Dz\023\b\207\214\201\000\020|í\001¸¬}\000\000\000\000\000Ðh|\t¨zí\---Type to continue, or q to quit--- 001\214\221\016\bèë\024\b\000\000\000\000øzí\001k\221\016\bèë\024\b\000\000\000\000\000\000\000\000U­\016\bèë\024\b\001\000\000\000 ¸x\000øzí\001\000\000\000\000\207\214\201\000Ðh|\tÐh|\t\200Â\212\003\003\000\000\000øzí\001o{\a\b\020ù¥·\220\236í\0018{í\001°ñ\a\b\020ù¥·\002\000\000\000"... peer_name = "spy-sip\0005605-097cd1f0\000\000\000\fzí\001Ãal\000\230yí\001V\206l\000 ¸x\000\220\202W\t¤\000\000\000 ¸x\000p¸x\000\000\000\000\0008\001\000\000\000\000\000\000\210!\000\000X¸x\000 ¸x\000` \000\000 ¸x\000ðyí\001ãðw\000\005\000\000\000\000Pû·X¸x\000P\233B\t \233x\000Ìyí\001Ë\al\000P\233B\t\000Pû·\216\000\000\000\220~í\001ô\237x\000P\233B\t\000\000\000\000ðyí\001r\024l\000P\233B\t\000Pû·\216\000\000\000 \000\000\000ô\237x\000k\000\000\000P \000\000\bzí\001¢hk\000"... zero_volume = 0 '\0' waitms = 5000 res = 0 ptr = 0x1ed7938 "5605-097cd1f0" num = 0 #4 0x007d7fba in chanspy_exec (chan=0xb7a5f898, data=0x1ed7b80) at app_chanspy.c:626 u = (struct ast_module_user *) 0x95db978 options = 0x1ed7b89 "qw" spec = 0x1ed7b80 "SIP/5605" argv = {0x1ed7b80 "SIP/5605", 0x1ed7b89 "qw"} mygroup = 0x0 ---Type to continue, or q to quit--- recbase = 0x0 fd = 0 flags = {flags = 33} oldwf = 4 argc = 2 volfactor = 0 res = 0 __PRETTY_FUNCTION__ = "chanspy_exec" #5 0x080b3534 in pbx_exec (c=0xb7a5f898, app=0x9465698, data=0x1edc000) at pbx.c:506 res = 32341648 saved_c_appl = 0x0 saved_c_data = 0x0 #6 0x080b6639 in pbx_extension_helper (c=0xb7a5f898, con=0x0, context=0xb7a5fa18 "AgentMonitor", exten=0xb7a5fa68 "chanspy", priority=2, label=0x0, callerid=0xb7a3c288 "5738", action=E_SPAWN) at pbx.c:1793 e = (struct ast_exten *) 0x955a440 app = (struct ast_app *) 0x9465698 res = 8 q = {incstack = {0x0 }, stacklen = 0, status = 5, swo = 0x0, data = 0x0, foundcontext = 0xb7a5fa18 "AgentMonitor"} passdata = "SIP/5605|qw", '\0' matching_action = 0 ---Type to continue, or q to quit--- __PRETTY_FUNCTION__ = "pbx_extension_helper" #7 0x080b76fb in ast_spawn_extension (c=0xb7a5f898, context=0xb7a5fa18 "AgentMonitor", exten=0xb7a5fa68 "chanspy", priority=2, callerid=0xb7a3c288 "5738") at pbx.c:2248 No locals. #8 0x080b7be9 in __ast_pbx_run (c=0xb7a5f898) at pbx.c:2348 dst_exten = "Q\000n\000Aãl\000hµX\tÀÁë\000\000\000\000\000°ëí\001øãí\001X¸x\000 ¸x\000 \000\000\000 ¸x\000Pãí\001ãðw\000Aãl\000\000\000\000LX¸x\000\000\000\000\000°ëí\001øãí\001ÄUl\000Local/5741@AgentQ\000n\000Aãl\000\000\000\000L ¸x\000\000\000\000\000°ëí\001\b\000\000\000\000\000\000\000P\000\000\000(¸x\000\002\000\000\000\020\000\000\000Q\000n\0000Ll\000hãí\000\f\000\000\000ô\237x\000\f\000\000\000 ¸x\000\230ãí\001ö|l\000 ¸x\000\f\000\000\000\030\000\000\000\200\r\002\000\f\000\000\000"... pos = 0 digit = 0 found = 1 res = 0 autoloopflag = 0 error = 0 __PRETTY_FUNCTION__ = "__ast_pbx_run" #9 0x080b88e6 in pbx_thread (data=0xb7a5f898) at pbx.c:2561 c = (struct ast_channel *) 0xb7a5f898 #10 0x080ef919 in dummy_start (data=0xb7a51690) at utils.c:545 ---Type to continue, or q to quit--- _buffer = {__routine = 0x80681cd , __arg = 0x1edebb0, __canceltype = 32367704, __prev = 0x0} ret = (void *) 0x788664 a = {start_routine = 0x80b88cf , data = 0xb7a5f898, name = 0xb7a0d390 "pbx_thread", ' ' , "started at [ 2585] pbx.c ast_pbx_start()"} #11 0x00817341 in start_thread () from /lib/tls/libpthread.so.0 No symbol table info available. #12 0x0072b6fe in clone () from /lib/tls/libc.so.6 No symbol table info available. (gdb)