[asterisk-dev] Crash with latest 1.2 svn r43186
Martin Vít
vit at lam.cz
Thu Sep 28 06:27:02 MST 2006
after little discussion with bweske, #8025 reopened.
Martin Vít wrote:
> It is caused by this change
>
> Use proper type to represent the group variable (issue #8025 reported
> by makoto)
>
> I've checkout fresh copy: svn checkout -r43699 and svn checkout
> -r43705 and 43705 is causing this crash, 43699 is ok. But i'm not
> skilled enough to find connection between this change ant this backtrace.
>
> Festr
>
>
>
> Martin VĂt wrote:
>> Hello developers, pls look at this, craches every time Dial was executed
>>
>> i'm not making bug on mantis, because this was production pbx and i
>> cannot test it there anymore so i dont know yet if i can reproduce
>> this on my test box.
>>
>> (gdb) bt full
>> #0 ast_translator_free_path (p=0x8) at translate.c:99
>> pl = (struct ast_trans_pvt *) 0x8
>> pn = (struct ast_trans_pvt *) 0x8
>> #1 0x080630ec in set_format (chan=0x813f1d0, fmt=8,
>> rawformat=0x813f5d0, format=0x813f2f8, trans=0x813f5c4, direction=1)
>> at channel.c:2399
>> native = 8
>> res = 8
>> __PRETTY_FUNCTION__ = "set_format"
>> #2 0x080636c9 in ast_channel_make_compatible (chan=0x81ed418,
>> peer=0x813f1d0) at channel.c:2422
>> src = 8
>> dst = 8
>> __PRETTY_FUNCTION__ = "ast_channel_make_compatible"
>> #3 0xb64d373b in dial_exec_full (chan=0x813f1d0, data=0x0,
>> peerflags=0xb6163c88) at app_dial.c:399
>> ch = 0x8 <Address 0x8 out of bounds>
>> res = 0
>> u = (struct localuser *) 0x81ccc20
>> number = 0x8 <Address 0x8 out of bounds>
>> rest = 0x0
>> cur = 0x0
>> privcid = '\0' <repeats 192 times>,
>> "\001\000\000\000@<\026��H\006\034\b\033\000\000\000%\000\000\000(\000\000\000���\023\bonne36;40\000\000\200\000\000\000\000\000\000\000\000BC\026\b0,\026��\000\000\000\000
>> \034\026��"
>> privintro = '\0' <repeats 1023 times>
>> outgoing = (struct localuser *) 0x81df5e8
>> tmp = (struct localuser *) 0x81df5e8
>> to = 300000
>> numbusy = 0
>> numcongestion = 0
>> numnochan = 0
>> cause = 0
>> numsubst = "410", '\0' <repeats 76 times>
>> restofit = '\0' <repeats 79 times>
>> cidname = '\0' <repeats 79 times>
>> toast = '\0' <repeats 79 times>
>> l = 0x0
>> privdb_val = 0
>> calldurationlimit = 0
>> 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}
>> timelimit = 0
>> play_warning = 0
>> warning_freq = 0
>> warning_sound = 0x8 <Address 0x8 out of bounds>
>> end_sound = 0x0
>> start_sound = 0x0
>> dtmfcalled = 0x0
>> dtmfcalling = 0x0
>> var = 0x8 <Address 0x8 out of bounds>
>> status = "NOANSWER", '\0' <repeats 247 times>
>> play_to_caller = 0
>> play_to_callee = 0
>> sentringing = 0
>> moh = 0
>> outbound_group = 0x0
>> macro_result = 0x0
>> macro_transfer_dest = 0x0
>> digit = 0
>> result = 0
>> start_time = 1159424961
>> answer_time = 0
>> end_time = 0
>> app = (struct ast_app *) 0x813f1d0
>> parse = 0xb6162c60 "SIP"
>> args = {argc = 3, argv = 0xb61634c4, peers = 0xb6162c60 "SIP",
>> timeout = 0xb6162c68 "300", options = 0xb6162c6c "jtT", url = 0x0}
>> ---Type <return> to continue, or q <return> to quit---bt full[1~
>> opts = {flags = 1573120}
>> opt_args = {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}
>> __PRETTY_FUNCTION__ = "dial_exec_full"
>> #4 0xb64d496d in dial_exec (chan=0x8, data=0x8) at app_dial.c:1649
>> peerflags = {flags = 0}
>> #5 0x0809204d in pbx_extension_helper (c=0x813f1d0, con=0xb616e730,
>> context=0x813f320 "macro-dial_ext", exten=0x813f414 "ss",
>> priority=11, label=0x0,
>> callerid=0xb6167e50 "SIP/410|300|jtT", action=135943472) at pbx.c:553
>> e = (struct ast_exten *) 0x81843a0
>> sw = (struct ast_switch *) 0x0
>> data = 0x0
>> foundcontext = 0x813f320 "macro-dial_ext"
>> newstack = 1
>> res = 135943472
>> status = 5
>> incstack = {0x0 <repeats 16 times>, 0x31 <Address 0x31 out of
>> bounds>, 0xb6169fec "", 0xb7d612a5
>> "1��\211�Ğ(������\017��\215��Ě�����\215QĚ°\203��S\017\207
>> d",
>> 0xb616a008 "\026", 0x30 <Address 0x30 out of bounds>, 0xb616a008
>> "\026", 0x0, 0x0, 0xffffffd8 <Address 0xffffffd8 out of bounds>,
>> 0xb6170bb0 "�°\v\027��\\\002\032\b�°\v\027��\001", 0x0,
>> 0xffffffe0 <Address 0xffffffe0 out of bounds>, 0x0 <repeats 13
>> times>, 0xffffffe4 <Address 0xffffffe4 out of bounds>,
>> 0x0, 0xb6169f88
>> "�°�¤\026���°�¤\026���°�¤\026���´�¤\026�����¤\026���°�¤\026�����¤\026��",
>> 0x1 <Address 0x1 out of bounds>, 0x1 <Address 0x1 out of bounds>,
>> 0x100 <Address 0x100 out of bounds>, 0xb6169aa0 "", 0x0, 0x0, 0x0,
>> 0x0, 0xb7d7d434 "\201��\f;\f", 0x0, 0x0, 0xb7e40f40 "H\036\023",
>> 0xb6169f80
>> "\001\200Ă�ÂÄšÄ�Ă�°Ă�¤\026Ă�Ĺ�Ă�°Ă�¤\026Ă�Ĺ�Ă�°Ă�¤\026Ă�Ĺ�Ă�°Ă�¤\026Ă�Ĺ�Ă�´Ă�¤\026Ă�Ĺ�Ă�ďż˝Ă�¤\026Ă�Ĺ�Ă�°Ă�¤\026Ă�Ĺ�Ă�ďż˝Ă�¤\026Ă�Ĺ�",
>> 0xb6169f5c "l \026��\020\200����\200\237\026��lgG��
>> \026���°�¤\026��",
>> 0xb7d7e980
>> "\211~\020\213E\024\211~\f\211~\004\205�t$\213U\024\213}��\211V\024\211~\030\211V\b1��\211\216\230",
>>
>> 0xb6169f80
>> "\001\200Ă�ÂÄšÄ�Ă�°Ă�¤\026Ă�Ĺ�Ă�°Ă�¤\026Ă�Ĺ�Ă�°Ă�¤\026Ă�Ĺ�Ă�°Ă�¤\026Ă�Ĺ�Ă�´Ă�¤\026Ă�Ĺ�Ă�ďż˝Ă�¤\026Ă�Ĺ�Ă�°Ă�¤\026Ă�Ĺ�Ă�ďż˝Ă�¤\026Ă�Ĺ�",
>> 0xb616a4b0 "ARG8", 0x3816a4ff <Address 0x3816a4ff out of bounds>,
>> 0x0, 0xb616a4ff "",
>> 0xb7e40f40 "H\036\023", 0xb647676c "ARG%d", 0xb616a09c "\v",
>> 0xb616a06c "�ź%\t\b ��\023\b\024�´\023\b\v", 0xb7d78010
>> "\213\215\f������\211��9\2150������t\t\213�Ğ(��������\006",
>>
>> 0xb6169f80
>> "\001\200Ă�ÂÄšÄ�Ă�°Ă�¤\026Ă�Ĺ�Ă�°Ă�¤\026Ă�Ĺ�Ă�°Ă�¤\026Ă�Ĺ�Ă�°Ă�¤\026Ă�Ĺ�Ă�´Ă�¤\026Ă�Ĺ�Ă�ďż˝Ă�¤\026Ă�Ĺ�Ă�°Ă�¤\026Ă�Ĺ�Ă�ďż˝Ă�¤\026Ă�Ĺ�",
>> 0xb647676c "ARG%d", 0xb616a0a0 " E\032\b", 0xb616a4b0 "ARG8", 0x0,
>> 0xb616a020 "\003gG��\001", 0xb6169f80
>> "\001\200Ă�ÂÄšÄ�Ă�°Ă�¤\026Ă�Ĺ�Ă�°Ă�¤\026Ă�Ĺ�Ă�°Ă�¤\026Ă�Ĺ�Ă�°Ă�¤\026Ă�Ĺ�Ă�´Ă�¤\026Ă�Ĺ�Ă�ďż˝Ă�¤\026Ă�Ĺ�Ă�°Ă�¤\026Ă�Ĺ�Ă�ďż˝Ă�¤\026Ă�Ĺ�",
>> 0xfbad8001 <Address 0xfbad8001 out of bounds>,
>> 0xb616a4b0 "ARG8", 0xb616a4b0 "ARG8", 0xb616a4b0 "ARG8", 0xb616a4b0
>> "ARG8", 0xb616a4b4 "", 0xb616a4ff "", 0xb616a4b0 "ARG8", 0xb616a4ff
>> "", 0x0, 0x0, 0x0, 0x0, 0x0,
>> 0xb616a060 "��Ě�\023\bĚ���\023\bh��\026���ź%\t\b
>> ��\023\b\024�´\023\b\v", 0x0, 0xb7d81844 "\201���ź��\v",
>> 0xb6000000 <Address 0xb6000000 out of bounds>, 0x0, 0x81c54c0 "",
>> 0xb7e41900 "", 0xb7e41948 "", 0xb7e41900 "", 0xffffffff <Address
>> 0xffffffff out of bounds>, 0x81659d8 "", 0x3 <Address 0x3 out of
>> bounds>,
>> 0x20 <Address 0x20 out of bounds>, 0xb7e41900 "", 0xb7e40f40
>> "H\036\023", 0xb7e41900 "", 0x1 <Address 0x1 out of bounds>,
>> 0xb616a028 "\230Ě�\023\bĚŝB\f\b",
>> 0xb7d81394 "\211��e\203=\f", 0xb7e41900 "", 0x16 <Address 0x16 out
>> of bounds>, 0x81659f5 "", 0x207e8 <Address 0x207e8 out of bounds>,
>> 0x16 <Address 0x16 out of bounds>,
>> 0x81f2818 "", 0xb <Address 0xb out of bounds>, 0xb6476703
>> "MACRO_DEPTH", 0x1 <Address 0x1 out of bounds>, 0x813f598
>> "Äšďż˝Y\026\bÄšďż˝Ä�Â\034\b",
>> 0x80c42f9
>> "\017��\036\211��\204Ě°\017\225��A\017\225Ě�\017��Ě��Ť\027\215t&",
>> 0xb616a200 "1", 0x1 <Address 0x1 out of bounds>, 0x81659e0
>> "�°\020\026\b�´Y\026\bMACRO_DEPTH",
>> 0xb616a058
>> "\230Ě�\023\b\224\202G����Ě�\023\bĚ���\023\bh��\026���ź%\t\b
>> ��\023\b\024�´\023\b\v", 0xb7d80dcb "e\203=\f", 0xb7e41900 "",
>> 0x81659e0 "�°\020\026\b�´Y\026\bMACRO_DEPTH",
>> 0x81659e0 "�°\020\026\b�´Y\026\bMACRO_DEPTH"}
>> passdata = "SIP/410|300|jtT", '\0' <repeats 8176 times>
>> stacklen = 0
>> tmp =
>> "\033[1;36;40mDial\033[0;37;40m\000\000\00040m\000��@\017�¤�����Ş\020\bl\177\026��<\177\026��\020\200����P~\026�����Ş\020\bp\177\026��\000\205\026��\000\000\000\000��~\026��P~\026��"
>>
>> tmp2 =
>> "\033[1;35;40mmISDN/1-1\033[0;37;40m\000\000\000\033[1;35;40mmISDN/1-1\033[0;37;40m\000\000\0004������\000\000\000\000\000\000\000\000@\017�¤��"
>>
>> tmp3 = "\033[1;35;40mSIP/410|300|jtT\033[0;37;40m\000 IDvoicemail
>> uncond_extension\033[0;37;40m\000om extensions where
>> ID=13\033[0;37;40m\000v\033[0;37;40m\000\212_\026��\002\000\000\000$\036Ě���@\017�¤��P\204\026��Ěŝ\000\000\000Ě°\035����\002\000\000\000\002\000\000\000��_\026����������@\017�¤��p\204\026��Ěŝ\000\000\000p^\026��\002\000\000\000\002\000\000\000��_\026����������"...
>>
>> atmp =
>> "\000\000\000\000\000\000\000\000����������]\026��\000\000\000\000\002",
>> '\0' <repeats 11 times>,
>> "\234��\025\b\b\000\000\000\000G\023\b\b\000\000\000@�´����Ě°\035����\224��\025\b�´\037\000\000\\\f������`\026��@\017�¤��Ě�`20"
>>
>> atmp2 =
>> "8l\034\b\001\000\000\000����\027\b\000\000\000\000\005", '\0'
>> <repeats 11 times>, " ��\023\b", '\0' <repeats 28 times>,
>> "\002\000\000\000\002", '\0' <repeats 39 times>,
>> "o\231������\035����\000\000\000\000\000\000\000\000TZ\000\000\000\000\000\000@\017�¤��8A\026\000��\202\023\b�´=\026��\000\000\000\000\000\000\000\000���������Ž=\026��\000\000\000\000\002",
>> '\0' <repeats 11 times>,
>> "\234��\025\b\b\000\000\000\000G\023\b\b\000\000\000@�´����",
>> '\0' <repeats 32 times>, "̰\035����", '\0' <repeats 16
>> times>,
>> "@\017�¤��8A20@�´����@\017�¤��\\\f����8A\026��x?\026��\203"...
>>
>> __PRETTY_FUNCTION__ = "pbx_extension_helper"
>> #6 0x080925fc in ast_spawn_extension (c=0x8, context=0x8 <Address 0x8
>> out of bounds>, exten=0x8 <Address 0x8 out of bounds>, priority=8,
>> callerid=0x8 <Address 0x8 out of bounds>) at pbx.c:2230
>> No locals.
>> #7 0xb64758ec in macro_exec (chan=0x813f1d0, data=0x813f1d0) at
>> app_macro.c:215
>> uc = (struct localuser *) 0x8
>> ul = (struct localuser *) 0x813f1d0
>> tmp = 0x8 <Address 0x8 out of bounds>
>> rest = 0x0
>> fullmacro =
>> "macro-dial_ext\000\000%\000\000\000(\000\000\000���\023\b\000\000\000\00036;40\000\000\000\000\000\000\000\000��\026��\n��\026��\001",
>> '\0' <repeats 11 times>,
>> "��Ě�\023\b0�§\026����\215Ě����¤�§�Ž��"
>> varname = "ARG8", '\0' <repeats 75 times>
>> oldargs = {0x0 <repeats 81 times>}
>> argc = 9
>> ---Type <return> to continue, or q <return> to quit---
>> x = 135524816
>> res = 0
>> oldexten = "410", '\0' <repeats 252 times>
>> oldpriority = 1
>> pc = "1", '\0' <repeats 78 times>
>> depthc = "1\000\000\000\000\000\000\000\000\000\000"
>> oldcontext = "inRoute-1", '\0' <repeats 70 times>
>> offsets = 0x8 <Address 0x8 out of bounds>
>> s = 0x8 <Address 0x8 out of bounds>
>> offset = 0
>> depth = 0
>> maxdepth = 7
>> setmacrocontext = 1
>> dead = 0
>> save_macro_exten = 0x0
>> save_macro_context = 0x0
>> save_macro_priority = 0x0
>> save_macro_offset = 0x0
>> u = (struct localuser *) 0x81cece8
>> __PRETTY_FUNCTION__ = "macro_exec"
>> #8 0x0809204d in pbx_extension_helper (c=0x813f1d0, con=0x0,
>> context=0x813f320 "macro-dial_ext", exten=0x813f414 "ss", priority=1,
>> label=0x0,
>> callerid=0xb616e730 "dial_ext|300|jtT|410|exten|13|410|SIP/410|1",
>> action=0) at pbx.c:553
>> e = (struct ast_exten *) 0x8186640
>> sw = (struct ast_switch *) 0x0
>> data = 0x0
>> foundcontext = 0x819c3e7 "extensions-pbxid-1"
>> newstack = 1
>> res = 0
>> status = 5
>> incstack = {0x817ece8 "inRoute-1", 0x8185390
>> "extensions-static-global", 0x8185428 "extensions-global", 0x8186000
>> "extensions-pbxid-1", 0x0 <repeats 89 times>,
>> 0xb6170dfc "", 0x81f1cd8 "\"0031402030499\" <0031402030499>",
>> 0x80a6c37 "\205Ä�Â\017\204Ă�ďż˝\002", 0xb61708e1 "031402030499",
>> 0x0, 0x4f <Address 0x4f out of bounds>, 0x0,
>> 0x0, 0x0, 0x0, 0x0, 0xb7d81844 "\201���ź��\v", 0x0, 0x0,
>> 0x819e988 "0031402030499", 0x31333030 <Address 0x31333030 out of
>> bounds>,
>> 0x30323034 <Address 0x30323034 out of bounds>, 0x39343033 <Address
>> 0x39343033 out of bounds>, 0x39 <Address 0x39 out of bounds>, 0x0
>> <repeats 11 times>,
>> 0x80a631a "\213L$\030\213t$\034\211\213\200\002", 0xb6170938
>> "�k\033E", 0x0, 0x0, 0x0}
>> passdata = "dial_ext|300|jtT|410|exten|13|410|SIP/410|1", '\0'
>> <repeats 8148 times>
>> stacklen = 3
>> tmp = "\033[1;36;40mMacro\033[0;37;40m\00040m\000m", '\0' <repeats 48
>> times>
>> tmp2 = "\033[1;35;40mmISDN/1-1\033[0;37;40m", '\0' <repeats 50 times>
>> tmp3 =
>> "\033[1;35;40mdial_ext|300|jtT|410|exten|13|410|SIP/410|1\033[0;37;40m\000nationnum)=APP:Volat
>> linku 410\033[0;37;40m\00030499\033[0;37;40m", '\0' <repeats 8071 times>
>> atmp = '\0' <repeats 79 times>
>> atmp2 = '\0' <repeats 8291 times>
>> __PRETTY_FUNCTION__ = "pbx_extension_helper"
>> #9 0x08093316 in __ast_pbx_run (c=0x813f1d0) at pbx.c:2230
>> digit = 0
>> exten = '\0' <repeats 255 times>
>> pos = 0
>> waittime = 0
>> res = 0
>> __PRETTY_FUNCTION__ = "__ast_pbx_run"
>> #10 0x08094e8c in pbx_thread (data=0x8) at pbx.c:2517
>> No locals.
>> #11 0xb7eecb63 in start_thread () from /lib/tls/libpthread.so.0
>> No symbol table info available.
>> #12 0xb7de718a in clone () from /lib/tls/libc.so.6
>> No symbol table info available.
>> (
>>
>
>
--
Martin Vít
LAM plus s.r.o.
http://www.vasesit.cz/
mobil: 605 267 610
More information about the asterisk-dev
mailing list