[asterisk-dev] the latest 1.4 start crashes app_queue

Mark Michelson mmichelson at digium.com
Wed Jul 9 15:46:58 CDT 2008


Martin Vít wrote:
> Hi, i'm seeing crashes with the latest 1.4 asterisk. I think it started 
> after patch fot app_queue -logging attendand TRANSFER
> 
> here is short backtrace and full backtrace
> 
> BT
> 
> #0 0xb58cf492 in queue_transfer_fixup (data=0x8761438, 
> old_chan=0x8780ce8, new_chan=0x8761268) at app_queue.c:2784
> 2784 app_queue.c: No such file or directory.
> in app_queue.c
> (gdb) bt
> #0 0xb58cf492 in queue_transfer_fixup (data=0x8761438, 
> old_chan=0x8780ce8, new_chan=0x8761268) at app_queue.c:2784
> #1 0x08082af0 in ast_do_masquerade (original=0x8761268) at channel.c:3579
> #2 0x0808410c in __ast_read (chan=0x8761268, dropaudio=0) at channel.c:1971
> #3 0xb7b083bf in builtin_atxfer (chan=0x8761268, peer=0x6, 
> config=0xb5378330, code=0xb5378050 "#", sense=2, data=0x0) at 
> res_features.c:928
> #4 0xb7b061f7 in ast_feature_interpret (chan=0x8780ce8, peer=0x876a198, 
> config=0xb5378330, code=0xb5378050 "#", sense=2) at
> 
> res_features.c:1149
> #5 0xb7b0715b in ast_bridge_call (chan=0x8780ce8, peer=0x876a198, 
> config=0xb5378330) at res_features.c:1605
> #6 0xb59720d8 in dial_exec_full (chan=0x8780ce8, data=0x0, 
> peerflags=0xb53790d4, continue_exec=0x0) at app_dial.c:1773
> #7 0xb5975174 in dial_exec (chan=0x8761438, data=0xf) at app_dial.c:1827
> #8 0x080ca690 in pbx_extension_helper (c=0x8780ce8, con=0xb5380690, 
> context=0x8780e68 "macro-dial_ext_1", exten=0x8780eb8 "122", 
> priority=11, label=0x0,
> callerid=0x844c4e8 "487525646", action=142085352) at strings.h:35
> #9 0x080cabda in ast_spawn_extension (c=0x8761438, context=0xf <Address 
> 0xf out of bounds>, exten=0xf <Address 0xf out of bounds>, priority=15,
> callerid=0xf <Address 0xf out of bounds>) at pbx.c:2317
> #10 0xb591f1e6 in _macro_exec (chan=0x8780ce8, data=0x8780e68, 
> exclusive=0) at app_macro.c:308
> #11 0x080ca690 in pbx_extension_helper (c=0x8780ce8, con=0x0, 
> context=0x8780e68 "macro-dial_ext_1", exten=0x8780eb8 "122", priority=1, 
> label=0x0,
> callerid=0x844c4e8 "487525646", action=142085352) at strings.h:35
> #12 0x080cee46 in __ast_pbx_run (c=0x8780ce8) at pbx.c:2317
> #13 0x080d0cfe in pbx_thread (data=0x8761438) at pbx.c:2621
> #14 0x08100f05 in dummy_start (data=0xf) at utils.c:912
> #15 0xb7f51b63 in start_thread () from /lib/tls/libpthread.so.0
> #16 0xb7e7d18a in clone () from /lib/tls/libc.so.6
> 
> 
> BT FULL
> 
> #0 0xb58cf492 in queue_transfer_fixup (data=0x8761438, 
> old_chan=0x8780ce8, new_chan=0x8761268) at app_queue.c:2784
> qe = (struct queue_ent *) 0xb537e3e0
> member = (struct member *) 0x0
> callstart = -1254628384
> datastore = (struct ast_datastore *) 0x8761438
> __PRETTY_FUNCTION__ = "queue_transfer_fixup"
> #1 0x08082af0 in ast_do_masquerade (original=0x8761268) at channel.c:3579
> __zz__ = 0x8780ce8 "�&\023\b"
> x = 15
> i = -1249007115
> res = 0
> origstate = 15
> t = (const struct ast_channel_tech *) 0xf
> t_pvt = (void *) 0xf
> tmpcid = {cid_dnid = 0x206c754a <Address 0x206c754a out of bounds>, 
> cid_num = 0x31203920 <Address 0x31203920 out of bounds>,
> cid_name = 0x32313a35 <Address 0x32313a35 out of bounds>, cid_ani = 
> 0x35333a <Address 0x35333a out of bounds>,
> cid_rdnis = 0x848e8c4 "\177 -- Stopped music on hold on mISDN/7-u362\n", 
> cid_pres = -1210111683, cid_ani2 = 46, cid_ton = -1209977804, cid_tns = 
> 138995908}
> clone = (struct ast_channel *) 0x8780ce8
> cdr = (struct ast_cdr *) 0xf
> rformat = 8
> wformat = 8
> newn = "mISDN/7-u362", '\0' <repeats 52 times>, " 
> \033[0;37;40m\000`\rx\b�y7�`:��{7�`@\b\b`\rx\b"
> orig = 
> "Transfered/mISDN/7-u362\000\b\000\000\000\b\000\000\000��H\bpy7�\000\000\000\000 
> N\000\000\000\000\000\020", '\0' <repeats 47 times>
> masqn = 
> "mISDN/7-u362<MASQ>\000�A\000\000\000�\036�\001\000\000\000\000\200�A\000\000\000�y7�8\213;��\003r\b\000\000\000\000�y7�\234\2177�\005\000\000\000\004\000\000\000@\2229�\000\000\000\000Hy7�8y7���H\b$y7��\017�"
> zombn = 
> "Transfered/mISDN/7-u362<ZOMBIE>\000�Hy\b\001\000\000\000\230x7������Hy\b\000\000\000\000\001\000\000\000�x7�Jul 
> 9 15:12:35\000\230x7�`:��x7�44�\020�v\b"
> __PRETTY_FUNCTION__ = "ast_do_masquerade"
> #2 0x0808410c in __ast_read (chan=0x8761268, dropaudio=0) at channel.c:1971
> res = 141956152
> f = (struct ast_frame *) 0x0
> blah = 7200
> prestate = 0
> count = 0
> __PRETTY_FUNCTION__ = "__ast_read"
> #3 0xb7b083bf in builtin_atxfer (chan=0x8761268, peer=0x6, 
> config=0xb5378330, code=0xb5378050 "#", sense=2, data=0x0) at 
> res_features.c:928
> transferer = (struct ast_channel *) 0x876a198
> transferee = (struct ast_channel *) 0x8780ce8
> xferto = "116 at in_14_t", '\0' <repeats 244 times>
> res = 6
> outstate = 3
> newchan = (struct ast_channel *) 0x875c4d0
> xferchan = (struct ast_channel *) 0x8761268
> bconfig = {features_caller = {flags = 4}, features_callee = {flags = 4}, 
> start_time = {tv_sec = 1215609155, tv_usec = 169247}, feature_timer = 0, 
> timelimit = 0,
> play_warning = 0, warning_freq = 0, warning_sound = 0x0, end_sound = 
> 0x0, start_sound = 0x0, firstpass = 1, flags = 3}
> f = (struct ast_frame *) 0x8761438
> l = 6
> features_datastore = (struct ast_datastore *) 0x8761438
> dialfeatures = (struct ast_dial_features *) 0x833d888
> __PRETTY_FUNCTION__ = "builtin_atxfer"
> #4 0xb7b061f7 in ast_feature_interpret (chan=0x8780ce8, peer=0x876a198, 
> config=0xb5378330, code=0xb5378050 "#", sense=2) at res_features.c:1149
> x = -1213139776
> features = {flags = 2}
> res = 21
> dynamic_features = 0x824d8c9 "automon"
> tmp = 0x8354c80 ""
> __PRETTY_FUNCTION__ = "ast_feature_interpret"
> #5 0xb7b0715b in ast_bridge_call (chan=0x8780ce8, peer=0x876a198, 
> config=0xb5378330) at res_features.c:1605
> featurecode = 0xb5378050 "#"
> sense = 2
> f = (struct ast_frame *) 0x0
> who = (struct ast_channel *) 0x876a198
> chan_featurecode = '\0' <repeats 11 times>
> peer_featurecode = "#\000\000\000\000\000\000\000\000\000\000"
> orig_channame = 
> "mISDN/7-u362\000\000\000\000�\016x\b\036\000\000\000��z\b�\fx\b(\2007�`:�h\2007�x\005\b\b`\rx\b����\000\000\000\000�7��m�\000y����`\rx\b"
> ---Type <return> to continue, or q <return> to quit---
> orig_peername = 
> "SIP/a222-0867b118\0007�`:��\1777�_�\a\b`\rx\b/J\004@�\1777��)\023\b\200\022\023\b\000\000\000\000(\000\000\000\000\000\000\0008\213;��\003r\b(\2007�S
> ~7�"
> hasfeatures = 0
> hadfeatures = 0
> aoh = (struct ast_option_header *) 0xb58da9f5
> backup_config = {features_caller = {flags = 0}, features_callee = {flags 
> = 0}, start_time = {tv_sec = 0, tv_usec = 0}, feature_timer = 0, 
> timelimit = 0,
> play_warning = 0, warning_freq = 0, warning_sound = 0x0, end_sound = 
> 0x0, start_sound = 0x0, firstpass = 0, flags = 0}
> bridge_cdr = (struct ast_cdr *) 0x87059c8
> __PRETTY_FUNCTION__ = "ast_bridge_call"
> #6 0xb59720d8 in dial_exec_full (chan=0x8780ce8, data=0x0, 
> peerflags=0xb53790d4, continue_exec=0x0) at app_dial.c:1773
> config = {features_caller = {flags = 2}, features_callee = {flags = 2}, 
> start_time = {tv_sec = 1215609119, tv_usec = 957328}, feature_timer = 0, 
> timelimit = 0,
> play_warning = 0, warning_freq = 0, warning_sound = 0x0, end_sound = 
> 0x0, start_sound = 0x0, firstpass = 0, flags = 3}
> res = 0
> u = (struct ast_module_user *) 0x8300ba0
> rest = 0x0
> outgoing = (struct dial_localuser *) 0x0
> to = 41017
> numbusy = 0
> numcongestion = 0
> numnochan = 0
> cause = 0
> numsubst = 
> "a222\000\000\000\000\017\000\000\000\t\000\000\000\006\000\000\000l\000\000\000\003\000\000\000�\000\000\000\001\000\000\000 
> \034\000\000\000\000\000\000�
> 7���H\b\000\000\000\000\235\000\000\000R\215\023\b��H\b��H\b�\2207���\n\b\005\000\000\000R\215\023\b\210\003\000\000\216\223\023\b�\023\b��H\bH\2207��1\f\b\177 
> -- Executin
> g [%s@%s:%d] %s(\"%s\", \"%s\") 
> %s\n\000\004)߷\200�7�P\000\000\000\213t\024\bl\2207�\213t\024\b��H\bէ\017\b\200�7�P\000\000\000"...
> cidname = '\0' <repeats 79 times>
> privdb_val = 0
> calldurationlimit = 0
> 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' <repeats 244 times>
> play_to_caller = -1254653136
> play_to_callee = 0
> sentringing = 0
> moh = 0
> outbound_group = 0x0
> result = 0
> start_time = 1215609110
> privintro = '\0' <repeats 12 times>, 
> "����\000\000\000\000\v\000\000\000\a\000\000\000l\2207�\030\2177�\000\000\000\000\213t\024\b\030\000\000\000����\000\000\000\000
> \000\000\000\000����\000\000\000\000\f\2137��\226��}취�\027\b\000\000 
> \000 \000\205�\222��\215\023\b", '\0' <repeats 12 times>, 
> "�\215\023\b.\2147�\000\000\000\000\000\000\000\
> 000�\215\023\b*�g\b", '\0' <repeats 12 times>, "�t\024\b", '\0' <repeats 
> 16 times>, 
> "�*8�\000\000\000\000\000\000\000\000 at o��\2177�@\024�\030\2137�~\2147�\002\000\000\000\220
> \2147��[�*�g\b"...
> privcid = "\030\2177�\000\000\000\000\211�޷\000\000\000\000�t\024\b", 
> '\0' <repeats 24 times>, "\n\000\000\000\000\000\000\000\000\000s 
> \000\000\000\000��������", '\0
> ' <repeats 36 times>, 
> "\n\000\000\000\v\000\000\000����\000\000\000\000\000\000\000\000T\2127�\v\000\000\000\a\000\000\000�\2207�\204\2167�\000\000\000\000#\2207�\235\000\000
> \000����\000\000\000\000\000\000s \000\000\000\000��������", '\0' 
> <repeats 56 times>, "�\2127�\v\000\000\000\002\000\000\000�\2177�?\2207�"
> opermode = 0
> args = {argc = 3, argv = 0xb5378934, peers = 0xb53780e0 "SIP", timeout = 
> 0xb53780e9 "50", options = 0xb53780ec "jtT", url = 0x0}
> opts = {flags = 1573120}
> opt_args = {0xffffffff <Address 0xffffffff out of bounds>, 0x0, 
> 0xb7dec2cb "\213�����\211�)�9�u\024\001\205P���\200?", 0xb5378f24 "", 
> 0x8138dfa "", 0x0,
> 0x1 <Address 0x1 out of bounds>, 0x0, 0x81474a0 "m"}
> datastore = (struct ast_datastore *) 0x871b418
> ds_caller_features = (struct ast_datastore *) 0x0
> ds_callee_features = (struct ast_datastore *) 0x0
> fulldial = 0
> num_dialed = 1
> __PRETTY_FUNCTION__ = "dial_exec_full"
> #7 0xb5975174 in dial_exec (chan=0x8761438, data=0xf) at app_dial.c:1827
> peerflags = {flags = 1572864}
> #8 0x080ca690 in pbx_extension_helper (c=0x8780ce8, con=0xb5380690, 
> context=0x8780e68 "macro-dial_ext_1", exten=0x8780eb8 "122", 
> priority=11, label=0x0,
> ---Type <return> to continue, or q <return> to quit---
> callerid=0x844c4e8 "487525646", action=142085352) at strings.h:35
> e = (struct ast_exten *) 0x828e560
> res = 136852508
> q = {incstack = {0x0 <repeats 128 times>}, stacklen = 0, status = 5, swo 
> = 0x0, data = 0x0, foundcontext = 0x8780e68 "macro-dial_ext_1"}
> passdata = "SIP/a222|50|jtT", '\0' <repeats 8176 times>
> matching_action = 0
> __PRETTY_FUNCTION__ = "pbx_extension_helper"
> #9 0x080cabda in ast_spawn_extension (c=0x8761438, context=0xf <Address 
> 0xf out of bounds>, exten=0xf <Address 0xf out of bounds>, priority=15,
> callerid=0xf <Address 0xf out of bounds>) at pbx.c:2317
> No locals.
> #10 0xb591f1e6 in _macro_exec (chan=0x8780ce8, data=0x8780e68, 
> exclusive=0) at app_macro.c:308
> c = (struct ast_context *) 0x8780ce8
> e = (struct ast_exten *) 0x828e560
> s = 0xf <Address 0xf out of bounds>
> rest = 0x0
> fullmacro = 
> "macro-dial_ext_1\000\000\000\000(\000\000\000�\fx\b\000\000\000\00036;40\000\000\000\017\000\000\000\t\000\000\000\006\000\000\000l\000\000\000\003\000\000\000�\000\000\000\001\000\000\000 
> \034\000\000\000\000\000\000�7�"
> varname = "ARG8\000@%s:%d] %s(\"%s\", \"%s\") 
> %s\n\000\004)߷@\0068�P\000\000\000\213t\024\b,�7�\213t\024\b��H\bէ\017\b@\0068�P\000\000\000\213t\024\b\033\000\000"
> runningapp = 
> "Dial\000\000\000og\000\000\000R\215\023\b��H\b��H\b\230�7���\n\b\005\000\000\000R\215\023\b\210\003\000\000\216\223\023\b�\023\b��H\bGoto 
> (%s\177 -- Executin"
> runningdata = "${IF($[ \"${DB(loggedchan/${ARG5})}\" = \"\" ]? ${ARG7} : 
> ${DB(loggedchan/${ARG5})} )}|${IF($[\"${FROM_DIALLINKS}\" != \"\" & 
> \"${FORCE_TIMEOUT}\" = \"\" 
> ]?${FROM_DIALLINKS}:${IF($[\"${FORCE_TIMEOUT}\" != \"\"]?${F"...
> oldargs = {0x0 <repeats 81 times>}
> argc = 9
> x = 142085352
> res = 0
> oldexten = "122", '\0' <repeats 252 times>
> oldpriority = 1
> gosub_level = 0
> pc = 
> "1\0007�\211�޷\001\000\000\000\002\000\000\000\030�7�=)߷X�7�8\213;���7�\002\000\000\000\211�޷\000\000\000\000�t\024\b�\003", 
> '\0' <repeats 16 times>, "d \000\000\000\000\000\000\000"
> depthc = "1\000\024\b\000\000\000\000��7�"
> oldcontext = "in_3_1", '\0' <repeats 73 times>
> inhangupc = 0xf <Address 0xf out of bounds>
> offset = 0
> depth = 0
> maxdepth = 7
> setmacrocontext = 1
> dead = 0
> inhangup = 0
> u = (struct ast_module_user *) 0x8542b50
> __PRETTY_FUNCTION__ = "_macro_exec"
> #11 0x080ca690 in pbx_extension_helper (c=0x8780ce8, con=0x0, 
> context=0x8780e68 "macro-dial_ext_1", exten=0x8780eb8 "122", priority=1, 
> label=0x0,
> callerid=0x844c4e8 "487525646", action=142085352) at strings.h:35
> e = (struct ast_exten *) 0x829bd20
> res = 0
> q = {incstack = {0x82a261c "in_3_1", 0x8192714 "parkedcalls", 0x828ba54 
> "switch", 0x0 <repeats 125 times>}, stacklen = 3, status = 5, swo = 0x0, 
> data = 0x0,
> foundcontext = 0x82a27f7 "extensions-pbxid-1"}
> passdata = "dial_ext_1|300|jtT|Petra|exten|14|122|SIP/a222|0", '\0' 
> <repeats 8143 times>
> matching_action = 0
> __PRETTY_FUNCTION__ = "pbx_extension_helper"
> #12 0x080cee46 in __ast_pbx_run (c=0x8780ce8) at pbx.c:2317
> dst_exten = '\0' <repeats 32 times>, 
> "\220*8�1\r\r\b\000\000\000\000\000\000\000\000|\233�+�", '\0' <repeats 
> 16 times>, 
> ",*8�\000\000\000\0000*8�4*8�\000\000\000\000@*8�8*8�<*8�D*8�", '\0' 
> <repeats 36 times>, 
> "Dx�\032\200�\000\000\000\000\000\000\000\000\024�8�px8�\020\000\000\000\000y���0\b\003\000\000\000\020\000\000\000\000y�@o�\000y�����h*8�\224s�\000y�\f\000\000\000�7�X\a\002\000\f\000\000\000�\by\bx�H\b��0\bx�H\b\230*8�\215\203"...
> pos = 0
> digit = 0
> found = 1
> res = 0
> error = 0
> __PRETTY_FUNCTION__ = "__ast_pbx_run"
> #13 0x080d0cfe in pbx_thread (data=0x8761438) at pbx.c:2621
> No locals.
> #14 0x08100f05 in dummy_start (data=0xf) at utils.c:912
> 

Please open a bug on the bugtracker (http://bugs.digium.com) and attach the 
backtrace. Thanks!

Mark Michelson



More information about the asterisk-dev mailing list