(gdb) thread apply all bt full Thread 8 (process 15332): #0 0x00000020 in ?? () No symbol table info available. #1 0x2af95e34 in poll () from /lib/libc.so.6 No symbol table info available. #2 0x004296cc in monitor_sig_flags (unused=0x7fa2b8b0) at asterisk.c:2507 p = {fd = 13, events = 1, revents = 0} a = 0 #3 0x0042c018 in main (argc=5731336, argv=0x7fa2b940) at asterisk.c:2989 c = 0 filename = "/dev/null/.asterisk_history", '\0' hostname = "testcentral", '\0' tmp = "\000Ye\000\000\000\000\000*??\004\000\000\000\000*¡ãR\000+\004£¤?*?;¨¨\000\000\000\n*¡ä\"T\000\000\000\000\000\000\000\000*¨®y\210*1\221\220\177¡é\000\002*¡¥¨¹\234\006\021H{\000\000\000\000*a\200\000\000\000\000\000*?;¨¨" xarg = 0x0 x = 1 f = (FILE *) 0x570000 sigs = {__val = {544771, 0 }} num = 0 is_child_of_nonroot = 0 buf = 0x570000
runuser = 0x7fa2bddd "asterisk" rungroup = 0x0 __PRETTY_FUNCTION__ = "main" __FUNCTION__ = "main" #4 0x2aee6530 in __libc_start_main () from /lib/libc.so.6 No symbol table info available. #5 0x0040e85c in ?? () No symbol table info available. warning: GDB can't find the start of the function at 0x40e85b. GDB is unable to find the start of the function at 0x40e85b and thus can't determine the size of that function's stack frame. This means that GDB may be unable to access that stack frame, or the frames below it. This problem is most likely caused by an invalid program counter or stack pointer. However, if you think GDB should simply search farther back from 0x40e85b for code which looks like the beginning of a function, you can increase the range of the search using the `set heuristic-fence-post' command. Backtrace stopped: previous frame inner to this frame (corrupt stack?) Thread 7 (process 15333): #0 0x00000020 in ?? () No symbol table info available. #1 0x2af95e34 in poll () from /lib/libc.so.6 ---Type to continue, or q to quit---~~ No symbol table info available. #2 0x2ab464f0 in __pthread_manager () from /lib/libpthread.so.0 No symbol table info available. #3 0x2afa104c in ?? () from /lib/libc.so.6 No symbol table info available. warning: GDB can't find the start of the function at 0x2afa104b. Backtrace stopped: previous frame inner to this frame (corrupt stack?) Thread 6 (process 15335): #0 0x00000020 in ?? () No symbol table info available. #1 0x2af95e34 in poll () from /lib/libc.so.6 No symbol table info available. #2 0x00424f6c in listener (unused=0x7f3ff9d0) at asterisk.c:971 sunaddr = {sun_family = 0, sun_path = "\000\f+\004?\f\000Z6(????*1\221\220\177??¨¤\000Wy¨¬\177??¨¤\000Z5¨¨+\004\236p*1\221\220*¡ärD*¡äw?+\004£¤p\177??¨¤\177?¨²¨¨*1\221\220+\004\236p*1\221\220\000Z\025\220\000Wy¨¬\000B(P+\004£¤p\177??¨¤+\004\236p*1\006P\000\000\020\000??"} s = 716768848 len = 0 x = 721722992 fds = {{fd = 5, events = 1, revents = 0}} attr = {__detachstate = 1, __schedpolicy = 0, __schedparam = {__sched_priority = 0}, __inheritsched = 1, __scope = 0, __guardsize = 4096, __stackaddr_set = 0, __stackaddr = 0x0, __stacksize = 2093056} __PRETTY_FUNCTION__ = "listener" __FUNCTION__ = "listener" #3 0x004d2034 in dummy_start (data=0x4) at utils.c:775 _buffer = {__routine = 0x4228d4 , __arg = 0x8002, __canceltype = 721750016, __prev = 0x0} ret = (void *) 0x7f3ffbe0 a = {start_routine = 0x424ec0 , data = 0x0, name = 0x5a35c8 "listener", ' ' , "started at [ 1055] asterisk.c ast_makesocket()"} #4 0x2ab45de4 in pthread_start_thread () from /lib/libpthread.so.0 No symbol table info available. #5 0x2afa104c in ?? () from /lib/libc.so.6 No symbol table info available. warning: GDB can't find the start of the function at 0x2afa104b. Backtrace stopped: previous frame inner to this frame (corrupt stack?) Thread 5 (process 15336): #0 0x00000020 in ?? () No symbol table info available. #1 0x2ab48bdc in __pthread_wait_for_restart_signal () from /lib/libpthread.so.0 No symbol table info available. #2 0x2ab44d0c in pthread_cond_wait@GLIBC_2.0 () from /lib/libpthread.so.0 No symbol table info available. #3 0x0045b030 in do_devstate_changes (data=0x7f1ffbe0) at /home/sgraham/jails/joffre/trunk/stage4/var/tmp/portage/asterisk-1.4.10.1/work/1.4.10.1/include/asterisk/lock.h:628 No locals. #4 0x004d2034 in dummy_start (data=0x202) at utils.c:775 _buffer = {__routine = 0x4228d4 , __arg = 0xc003, __canceltype = 721750016, __prev = 0x0} ---Type to continue, or q to quit--- ret = (void *) 0x7f1ffbe0 a = {start_routine = 0x45af10 , data = 0x0, name = 0x5a85d8 "do_devstate_changes started at [ 378] devicestate.c ast_device_state_engine_init()"} #5 0x2ab45de4 in pthread_start_thread () from /lib/libpthread.so.0 No symbol table info available. #6 0x2afa104c in ?? () from /lib/libc.so.6 No symbol table info available. warning: GDB can't find the start of the function at 0x2afa104b. Backtrace stopped: previous frame inner to this frame (corrupt stack?) Thread 4 (process 15337): #0 0x00000020 in ?? () No symbol table info available. #1 0x2af68544 in nanosleep () from /lib/libc.so.6 No symbol table info available. #2 0x2af9947c in usleep () from /lib/libc.so.6 No symbol table info available. #3 0x2b219994 in monmp3thread (data=0x5abd18) at res_musiconhold.c:528 moh = (struct mohdata *) 0x0 buf = '\0' sbuf = {-457, -289, -499, -975, -1022, -779, -951, -761, -728, -543, -469, -449, -351, -756, -759, -92, -298, -378, -293, -628, -953, -925, -872, -1152, -1117, -524, -618, -486, -3, -98, -375, -203, 311, 585, 538, 820, 985, 796, 646, 1107, 536, 490, 821, 486, 331, 681, 559, 487, 379, 702, 468, 501, 1135, 1413, 1269, 1438, 1155, 974, 787, 950, 771, 391, 528, 812, 488, 554, 659, 517, 602, 710, 1033, 1258, 878, 1081, 862, 792, 953, 505, 477, 920, 1167, 1123, 1097, 1194, 875, 312, 411, 538, 282, 306, 308, -114, -226, -496, -653, -488, -695, -910, -1001, -905, -552, -836, -794, -677, -799, -785, -658, -334, -61, -452, -404, -685, -879, -671, -1157, -1115, -849, -860, -778, -920, -866, -724, -908, -1013, -725, -835, -854, -719, -1214, -1001, -1118, -1483, -1424, -1541, -1218, -993, -1079, -802, -784, -1083, -616, -556, -252, -187, 92, 314, 111, -124, 210, -151, 78, 43, -16, 183, 153, 248, 441, -84, 224, 375, 243, 645, 1080, 975, 999, 543, 711, 672, 530, 590, 312, 550, 655, 477, 158, 596, 928, 922, 804, 1190, 1507, 1450, 1455, 1607, 1347, 1402, 1032, 1057, 1440, 1303, 1659, 1390, 1214, 1587, 884, 696, 944, 554, 786, 518...} res = 4 res2 = 1600 len = 4 tv = {tv_sec = 1209066030, tv_usec = 775988} tv_tmp = {tv_sec = 1209066030, tv_usec = 680683} __PRETTY_FUNCTION__ = "monmp3thread" #4 0x004d2034 in dummy_start (data=0x204) at utils.c:775 _buffer = {__routine = 0x4228d4 , __arg = 0x10004, __canceltype = 721750016, __prev = 0x0} ret = (void *) 0x7efffbe0 a = {start_routine = 0x2b219294 , data = 0x5abd18, name = 0x5aba28 "monmp3thread started at [ 895] res_musiconhold.c moh_register()"} #5 0x2ab45de4 in pthread_start_thread () from /lib/libpthread.so.0 No symbol table info available. #6 0x2afa104c in ?? () from /lib/libc.so.6 No symbol table info available. warning: GDB can't find the start of the function at 0x2afa104b. Backtrace stopped: previous frame inner to this frame (corrupt stack?) Thread 3 (process 15339): ---Type to continue, or q to quit--- #0 0x00000020 in ?? () No symbol table info available. #1 0x2af95e34 in poll () from /lib/libc.so.6 No symbol table info available. #2 0x004758e8 in ast_io_wait (ioc=0x5ae4c8, howlong=1) at io.c:266 res = 6009116 x = 1 origcnt = 6009024 #3 0x2b3ca4e8 in do_monitor (data=0x5ae4e8) at chan_sip.c:15628 currentTime = {tv_sec = 1209066030, tv_usec = 758890} expectedTime = 1209066030 res = 1 sip = (struct sip_pvt *) 0x1 peer = (struct sip_peer *) 0x5bb0c0 t = 1209066030 fastrestart = 1 lastpeernum = 0 curpeernum = 1 reloading = 1209066030 __PRETTY_FUNCTION__ = "do_monitor" #4 0x004d2034 in dummy_start (data=0x4) at utils.c:775 _buffer = {__routine = 0x4228d4 , __arg = 0x14005, __canceltype = 721750016, __prev = 0x0} ret = (void *) 0x7edffbe0 a = {start_routine = 0x2b3ca004 , data = 0x0, name = 0x5b23e0 "do_monitor", ' ' , "started at [15693] chan_sip.c restart_monitor()"} #5 0x2ab45de4 in pthread_start_thread () from /lib/libpthread.so.0 No symbol table info available. #6 0x2afa104c in ?? () from /lib/libc.so.6 No symbol table info available. warning: GDB can't find the start of the function at 0x2afa104b. Backtrace stopped: previous frame inner to this frame (corrupt stack?) Thread 2 (process 15340): #0 0x00000020 in ?? () No symbol table info available. #1 0x2af68544 in nanosleep () from /lib/libc.so.6 No symbol table info available. #2 0x2af682d4 in sleep () from /lib/libc.so.6 No symbol table info available. #3 0x2b4b4a04 in scan_thread (unused=0x7ebff5a8) at pbx_spool.c:437 st = {st_dev = 64770, st_pad1 = {0, 0, 0}, st_ino = 14762276, st_mode = 16832, st_nlink = 2, st_uid = 102, st_gid = 408, st_rdev = 0, st_pad2 = {0, 0, 0}, st_size = 4096, st_atime = 1208196932, __reserved0 = 0, st_mtime = 1208196932, __reserved1 = 0, st_ctime = 1208196932, __reserved2 = 0, st_blksize = 4096, st_pad4 = 0, st_blocks = 8, st_pad5 = {0 }} dir = (DIR *) 0x5dfd28 de = (struct dirent *) 0x204 fn = "/var/spool/asterisk//outgoing/..", '\0' last = 1208196932 ---Type to continue, or q to quit---~~ next = 0 now = 1208196932 __PRETTY_FUNCTION__ = "scan_thread" #4 0x004d2034 in dummy_start (data=0x204) at utils.c:775 _buffer = {__routine = 0x4228d4 , __arg = 0x18006, __canceltype = 721750016, __prev = 0x0} ret = (void *) 0x7ebffbe0 a = {start_routine = 0x2b4b499c , data = 0x0, name = 0x5bcdb8 "scan_thread started at [ 499] pbx_spool.c load_module()"} #5 0x2ab45de4 in pthread_start_thread () from /lib/libpthread.so.0 No symbol table info available. #6 0x2afa104c in ?? () from /lib/libc.so.6 No symbol table info available. warning: GDB can't find the start of the function at 0x2afa104b. Backtrace stopped: previous frame inner to this frame (corrupt stack?) Thread 1 (process 16084): #0 0x00000008 in ?? () No symbol table info available. #1 0x0049a018 in pbx_builtin_setvar_helper (chan=0x623624, name=0x2b503968 "ANSWEREDTIME", value=0x7e7f0758 "6") at pbx.c:5822 newvariable = (struct ast_var_t *) 0x38360020 headp = (struct varshead *) 0x623624 nametail = 0x2b503968 "ANSWEREDTIME" #2 0x2b4fc0fc in dial_exec_full (chan=0x6232e0, data=0x2b508000, peerflags=0x7e7f07f8, continue_exec=0x0) at app_dial.c:1684 config = {features_caller = {flags = 0}, features_callee = {flags = 0}, start_time = {tv_sec = 1209066024, tv_usec = 358999}, feature_timer = 0, timelimit = 0, play_warning = 0, warning_freq = 0, warning_sound = 0x0, end_sound = 0x0, start_sound = 0x0, firstpass = 0, flags = 0} number = 0x5f
end_time = 0 answer_time = 1209066024 res = -1 u = (struct ast_module_user *) 0x623958 rest = 0x0 outgoing = (struct dial_localuser *) 0x0 to = 0 numbusy = 0 numcongestion = 0 numnochan = 0 cause = 0 numsubst = "10003\000\000\000\000\000\000\000\000P¨¦\221", '\0' , "????\000\000\000!\000P¨¦\211\000\000\000\000????\000\000\000!\000P¨¦\211\000\000\000\000~\177\003¨¤~\177\006¡è\000\000\000\002\000\000\000\035", '\0' , "*1\221\220\000\000\000\000+\005\b", '\0' , "???¨¹????\000\000\000\000\000\000\000 \000\000\000\000~\177¨²¨¨", '\0' , "+\005\b\000\000\000\000\000\000^\033\200~\177\005h+\005\b\000\000^\033\200\000^\033\200~\177\005x" cidname = '\0' privdb_val = 0 calldurationlimit = 0 ---Type to continue, or q to quit--- timelimit = 0 play_warning = 0 warning_freq = 0 warning_sound = 0x0 end_sound = 0x0 start_sound = 0x0 dtmfcalled = 0x0 dtmfcalling = 0x0 status = "ANSWER\000R\000GS", '\0' play_to_caller = 0 play_to_callee = 0 sentringing = 0 moh = 0 outbound_group = 0x0 result = 0 start_time = 0 privintro = '\0' , "+\005\b\000\000\000\000\000\000b7\230\000\000\000\030+\005\b\000*¨®¨¢¨¤\000b7\230\000\000\000\030\000\000\000\030*¨®¨¢¨¤+\005\b\000\000\000\000\000*1\221\220\000P¨¦\221+\005\b\000~\177\006\224\000P¨¦\220\000P¨¦\221\000\000\000\000~\177\006¡è\000P¨¦\210~\177\005x*??¡§", '\0' , "+\005\b", '\0' , "+\005\b", '\0' , "+\005\b", '\0' , "+\005\b\000\000\000\000\n\000\000\000\000~\177\000¡§~\177\005\\\000\000\000\n\000\000\000\000~\177\000?\000\000\000\000????\000R5~????~"... privcid = '\0' opermode = 0 args = {argc = 3, argv = 0x7e7ef94c, peers = 0x7e7ef880 "SIP", timeout = 0x7e7ef88a "15", options = 0x7e7ef88d "r", url = 0x0} opts = {flags = 6437208} opt_args = {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0} __PRETTY_FUNCTION__ = "dial_exec_full" #3 0x2b4ffbc0 in dial_exec (chan=0x38360020, data=0x0) at app_dial.c:1734 peerflags = {flags = 0} #4 0x0048b3b8 in pbx_exec (c=0x6232e0, app=0x7e7f8c5b, data=0x7e7f0a90) at pbx.c:532 saved_c_appl = 0x5c13dc "Macro" saved_c_data = 0x7e7f8c5b "dialExten|SIP/10003|15|2012" #5 0x0049a6c0 in pbx_extension_helper (c=0x6232e0, con=0x0, context=0x623460 "macro-dialExten", exten=0x6234b0 "s", priority=6, label=0x6234b0 "s", callerid=0x5ac7f0 "+O?\200+P3$+P\021<", action=5949444) at pbx.c:1833 e = (struct ast_exten *) 0x50 app = (struct ast_app *) 0x5ac7f0 res = 80 q = {incstack = {0x0 }, stacklen = 0, status = 5, swo = 0x0, data = 0x0, foundcontext = 0x623460 "macro-dialExten"} passdata = "SIP/10003|15|r", '\0' matching_action = 0 __PRETTY_FUNCTION__ = "pbx_extension_helper" #6 0x0049acec in ast_spawn_extension (c=0x38360020, context=0x0, exten=0x5f
, priority=726677865, callerid=0x5f
) at pbx.c:2288 No locals. #7 0x2ba62fec in _macro_exec (chan=0x6232e0, data=0x5b16a0, exclusive=0) at app_macro.c:308 ---Type to continue, or q to quit--- c = (struct ast_context *) 0x5c23f0 e = (struct ast_exten *) 0x5b16a0 s = 0x5f
rest = 0x1
fullmacro = "macro-dialExten", '\0' varname = "ARG3\000\000\000\000\000\000\020", '\0' , "Bob Gates", '\0' runningapp = "Dial\000f", '\0' , "\020\000\000\000\000\000\000X\224\020\000\000\000\000\000X\224\020\000\000\000\000?H?a~\177\204h\000\\?8~\177\204h\000\000\000\000\000\\?8\000IW¨¹\000IW\f\000\000\000\000\000\000\000" runningdata = "${ARG1}|${ARG2}|r\0006\000attendant|s|1:5\000{ARG3}|1:4", '\0' , "+\005\b\000\000\000\000\000\000b7\230\000\000\000\030\000\000\000\030*¨®¨¢¨¤\000\000\000\000\000\000\000\000*1\221\220\000\000\000\000+\005\b\000\000\000\000\000\000P¨¦\220\000P¨¦\221\000\000\000\000~\177x¡ä\000P¨¦\210~\177w\210*??¡§", '\0' , "+\005\b", '\0' , "*1\221\220\000\000\000\000+\005\b\000\000\000\000\000+*¨¦ +*¨¦\"\000\000\000\000~\177yX~\177\200(~\177xp*??¡§\000"... oldargs = {0x0 } argc = 4 x = 2122281968 res = 0 oldexten = "2012", '\0' oldpriority = 200 gosub_level = 0 pc = "200", '\0' depthc = "1\000\000\000\000\000\000\000\000\000\000" oldcontext = "inside-caller", '\0' inhangupc = 0x38360020
offset = 0 depth = 0 maxdepth = 4 setmacrocontext = 1 autoloopflag = 512 dead = 0 inhangup = 200 u = (struct ast_module_user *) 0x5e2258 __PRETTY_FUNCTION__ = "_macro_exec" #8 0x2ba640fc in macro_exec (chan=0x38360020, data=0x0) at app_macro.c:486 No locals. #9 0x0048b3b8 in pbx_exec (c=0x6232e0, app=0x7e7f9740, data=0x7e7f8c5b) at pbx.c:532 saved_c_appl = 0x5af7fc "AGI" saved_c_data = 0x7e7f9740 "ScheduleHandler.py" #10 0x2b2a98dc in handle_exec (chan=0x6232e0, agi=0x7e7f8028, argc=721722992, argv=0x7e7f8150) at res_agi.c:1108 res = -2 app = (struct ast_app *) 0x5f __PRETTY_FUNCTION__ = "handle_exec" #11 0x2b2abde0 in agi_exec_full (chan=0x6232e0, data=0x2b2f2744, enhanced=0, dead=34) at res_agi.c:1805 status = 0 res = 724510532 u = (struct ast_module_user *) 0x602320 argv = {0x7e7f8350 "ScheduleHandler.py", 0x0 } ---Type to continue, or q to quit--- buf = "ScheduleHandler.py", '\0' tmp = 0x602320 "" argc = 2122285404 fds = {33, 36} efd = 2122285904 pid = 16124 agi = {fd = 36, audio = -1, ctrl = 33} __PRETTY_FUNCTION__ = "agi_exec_full" #12 0x2b2aca70 in agi_exec (chan=0x6232e0, data=0x7e7f9740) at res_agi.c:2062 __PRETTY_FUNCTION__ = "agi_exec" #13 0x0048b3b8 in pbx_exec (c=0x6232e0, app=0x0, data=0x7e7f9740) at pbx.c:532 saved_c_appl = 0x0 saved_c_data = 0x0 #14 0x0049a6c0 in pbx_extension_helper (c=0x6232e0, con=0x0, context=0x623460 "macro-dialExten", exten=0x6234b0 "s", priority=200, label=0x6234b0 "s", callerid=0x5af7e8 "+*¨¦?+*?\\+*??", action=5961724) at pbx.c:1833 e = (struct ast_exten *) 0x50 app = (struct ast_app *) 0x5af7e8 res = 80 q = {incstack = {0x5c2ba4 "inside-caller", 0x5c3794 "main-menu", 0x0 }, stacklen = 2, status = 5, swo = 0x0, data = 0x0, foundcontext = 0x5c2cf0 "internal-extensions"} passdata = "ScheduleHandler.py", '\0' matching_action = 0 __PRETTY_FUNCTION__ = "pbx_extension_helper" #15 0x0049acec in ast_spawn_extension (c=0x38360020, context=0x0, exten=0x5f
, priority=726677865, callerid=0x5f
) at pbx.c:2288 No locals. #16 0x0049bc7c in __ast_pbx_run (c=0x6232e0) at pbx.c:2388 dst_exten = '\0' , "*1\221\220\000\000\000\000+\004£¤p+\004£¤p\000\000\000\f+\004?\f\000bZ¨¨????\000\001¦Ì8~\177?¨¤?\000\000\000*¡äw?\000\000\000\f+\004?\f\000bZ¨¨????*1\221\220~\177?¨¤\000Wy¨¬~\177?¨¤\000b7P+\004\236p*1\221\220*¡ärD*¡äw?+\004£¤p~\177?¨¤~\177¨²¨¨*1\221\220+\004\236p" pos = 0 digit = 0 found = 1 res = 0 autoloopflag = 0 error = 0 __PRETTY_FUNCTION__ = "__ast_pbx_run" #17 0x0049d744 in pbx_thread (data=0x38360020) at pbx.c:2603 No locals. #18 0x004d2034 in dummy_start (data=0x5f) at utils.c:775 _buffer = {__routine = 0x4228d4 , __arg = 0x50008, __canceltype = 721750016, __prev = 0x0} ret = (void *) 0x7e7ffbe0 a = {start_routine = 0x49d710 , data = 0x6232e0, name = 0x623750 "pbx_thread", ' ' , "started at [ 2627] pbx.c ast_pbx_start()"} #19 0x2ab45de4 in pthread_start_thread () from /lib/libpthread.so.0 No symbol table info available. #20 0x2afa104c in ?? () from /lib/libc.so.6 ---Type to continue, or q to quit--- No symbol table info available. warning: GDB can't find the start of the function at 0x2afa104b. Backtrace stopped: previous frame inner to this frame (corrupt stack?) (gdb)