[Home]

Summary:ASTERISK-13508: pbx crash
Reporter:jangjun21 (jangjun21)Labels:
Date Opened:2009-02-03 19:07:36.000-0600Date Closed:2011-06-07 14:01:04
Priority:CriticalRegression?No
Status:Closed/CompleteComponents:Core/PBX
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:( 0) bt.txt
Description:(gdb) bt
#0  0x00e5f402 in __kernel_vsyscall ()
#1  0x00185c10 in raise () from /lib/libc.so.6
#2  0x00187521 in abort () from /lib/libc.so.6
#3  0x001bbc5b in __libc_message () from /lib/libc.so.6
#4  0x001c38b6 in _int_free () from /lib/libc.so.6
ASTERISK-1  0x001c6e00 in free () from /lib/libc.so.6
ASTERISK-2  0x080c8187 in pbx_builtin_setvar_helper (chan=0xb7ef2eb8, name=0x514a88 "MACRO_PRIORITY", value=0x0) at pbx.c:5879
ASTERISK-3  0x00513cd0 in _macro_exec (chan=0xb7ef2eb8, data=0x75def08, exclusive=0) at app_macro.c:466
ASTERISK-4  0x080cc54b in pbx_extension_helper (c=0xb7ef2eb8, con=0x0, context=0xb7ef3038 "macro-dialout-trunk",
   exten=0xb7ef3088 "s-CONGESTION", priority=4, label=0x0, callerid=0xa053d30 "82855", action=E_SPAWN) at pbx.c:537
ASTERISK-5  0x080cea41 in __ast_pbx_run (c=0xb7ef2eb8) at pbx.c:2318
ASTERISK-6 0x080cfa8e in pbx_thread (data=0xb7ef2eb8) at pbx.c:2622
ASTERISK-7 0x080fefab in dummy_start (data=0xb7e405c8) at utils.c:856
ASTERISK-8 0x002d343b in start_thread () from /lib/libpthread.so.0
ASTERISK-9 0x0022afde in clone () from /lib/libc.so.6
(gdb) frame 6
ASTERISK-2  0x080c8187 in pbx_builtin_setvar_helper (chan=0xb7ef2eb8, name=0x514a88 "MACRO_PRIORITY", value=0x0) at pbx.c:5879
5879                            ast_var_delete(newvariable);
(gdb) bt full
#0  0x00e5f402 in __kernel_vsyscall ()
No symbol table info available.
#1  0x00185c10 in raise () from /lib/libc.so.6
No symbol table info available.
#2  0x00187521 in abort () from /lib/libc.so.6
No symbol table info available.
#3  0x001bbc5b in __libc_message () from /lib/libc.so.6
No symbol table info available.
#4  0x001c38b6 in _int_free () from /lib/libc.so.6
No symbol table info available.
ASTERISK-1  0x001c6e00 in free () from /lib/libc.so.6
No symbol table info available.
ASTERISK-2  0x080c8187 in pbx_builtin_setvar_helper (chan=0xb7ef2eb8, name=0x514a88 "MACRO_PRIORITY", value=0x0) at pbx.c:5879
       curelm = (struct ast_var_t *) 0x6
       newvariable = (struct ast_var_t *) 0x298ff4
       headp = (struct varshead *) 0xa0c0a90
       nametail = 0x29a120 "\002"
ASTERISK-3  0x00513cd0 in _macro_exec (chan=0xb7ef2eb8, data=0x75def08, exclusive=0) at app_macro.c:466
       __p = <value optimized out>
       s = <value optimized out>
       cur = <value optimized out>
       rest = 0x0
       macro = 0x75dc1a0 "dialout-trunk"
       fullmacro = "macro-dialout-trunk\000call,all", '\0' <repeats 51 times>
       varname = "ARG4\000\000\000\000ld-\000 ?\000\000\226\023\b\001\000\000\000.Q\034\000\000\000\000\000L\035?\000\226\023\b?]\a`h-\000\230?\a\217,\v\b\210\036\025\b\027\000\000\000\2005\025\b?\023\b\000\226\023\b?]\a"
       runningapp = "Noop\000f\000\000\002\000\000\0007\000\000\000?\023\b\020?\a\"\000\000\000\000\000\000\000\200p\000\000\000\000\000\000t?026\n?\210I\200L\r\n\020?\a\210\177\005\n\034\000\000\000?]\aK?017\b\204?\aqS-"
       runningdata = "TRUNK Dial failed due to ${DIALSTATUS} - failing through to other trunks\000OPTIONS=M(setmusic^${MOHCLASS})${DIAL_TRUNK_OPTIONS}", '\0' <repeats 15 times>, "?????000\000\000c\226\023\b\t\226\023\b\006", '\0' <repeats 19 times>, "\n\000\000\000\023?\a", '\0' <repeats 40 times>, " ", '\0' <repeats 18 times>, "s\017", '\0' <repeats 23 times>...
       oldargs = {0x0 <repeats 81 times>}
       argc = 5
       x = 5
       res = 0
       oldexten = "8601", '\0' <repeats 251 times>
       oldpriority = 4
       gosub_level = 0
       pc = "4\000\034\000?\006\b?006?????\236\000\000\000\000\000\000\000P\000\000\000\b\017^\a\000\000\000\000@?\000?]\aX?\000X?\000P?\000@\211)\000\000\000\000\000  --?000\000\000?000\000\000P?"
       depthc = "0\000\000\000\000\000\000\000\000\000\000"
       oldcontext = "from-internal", '\0' <repeats 66 times>
       inhangupc = <value optimized out>
       offset = <value optimized out>
       depth = 0
       maxdepth = 7
       setmacrocontext = 1
       inhangup = 0
       save_macro_exten = 0x0
       save_macro_context = 0x0
       save_macro_priority = 0x0
       save_macro_offset = 0x0
       u = (struct ast_module_user *) 0xa053e18
       macro_store = <value optimized out>
       __PRETTY_FUNCTION__ = "_macro_exec"
ASTERISK-4  0x080cc54b in pbx_extension_helper (c=0xb7ef2eb8, con=0x0, context=0xb7ef3038 "macro-dialout-trunk",
   exten=0xb7ef3088 "s-CONGESTION", priority=4, label=0x0, callerid=0xa053d30 "82855", action=E_SPAWN) at pbx.c:537
       e = (struct ast_exten *) 0xa020430
       app = (struct ast_app *) 0xa012880
       res = <value optimized out>
       q = {incstack = {0xb7c2b53c "from-internal", 0xb7c318bc "from-internal-xfer", 0x9fe65c4 "parkedcalls",
   0xb7c380bc "ext-fax", 0xb7c3719c "ext-local-confirm", 0xb7c3731c "findmefollow-ringallv2",
   0xa0da60c "from-internal-additional", 0xa0789f4 "app-recordings", 0xa0e60c4 "app-dialvm", 0xa16fb94 "app-vmmain",
   0xa11533c "app-cf-busy-off", 0x9fe30f4 "app-cf-busy-off-any", 0xa11ff5c "app-cf-busy-on", 0xa0cc2cc "app-cf-off",
   0xa0bd934 "app-cf-off-any", 0xa012e0c "app-cf-on", 0xa173ea4 "app-cf-unavailable-off", 0xa007b74 "app-cf-unavailable-on",
   0xa010584 "ext-paging", 0xa08ad64 "app-calltrace", 0xa0ba964 "app-directory", 0x9fe3894 "app-echo-test",
---Type <return> to continue, or q <return> to quit---
   0xa0d5da4 "app-speakextennum", 0xa10b88c "app-speakingclock", 0x9fdd684 "app-pbdirectory", 0xa0d1194 "app-dnd-off",
   0xa0d1454 "app-dnd-on", 0xa026794 "app-dnd-toggle", 0xa0a032c "app-speeddial", 0xa0a1594 "app-blacklist",
   0xa17318c "app-fmf-toggle", 0xa1737cc "ext-findmefollow", 0xa0e6e7c "fmgrps", 0xa0e6f7c "app-dictate-record",
   0xa0e77fc "app-dictate-send", 0xa0e7fdc "app-callwaiting-cwoff", 0xa0e8304 "app-callwaiting-cwon", 0xa1275ec "app-gabcast",
   0xa12793c "ext-queues", 0xa1288bc "app-userlogonoff", 0xa128bf4 "app-pickup", 0xa129014 "app-zapbarge",
   0xa129324 "app-chanspy", 0xa1295f4 "ext-test", 0xa07922c "ext-local", 0xa01fff4 "outbound-allroutes", 0x0 <repeats 82 times>},
 stacklen = 46, status = 5, swo = 0x0, data = 0x0, foundcontext = 0xa020168 "outrt-001-9_outside"}
       passdata = "dialout-trunk|2|8601||", '\0' <repeats 8169 times>
       matching_action = 0
       __PRETTY_FUNCTION__ = "pbx_extension_helper"
ASTERISK-5  0x080cea41 in __ast_pbx_run (c=0xb7ef2eb8) at pbx.c:2318
       waittime = <value optimized out>
       dst_exten = "d\022^\a?022^\a\b\023^\a?\034\000?\r\n?022^\a\177", '\0' <repeats 11 times>, "\001\000\000\000a1\034\000\000\000\000\000\000\000\000\000\177  == Manager '%s' l?005\000\000\000\001\000\000\020\000\000\000(?\000a1\034", '\0' <repeats 29 times>, "a1\034\000\000\000\000\000?001(\000\000\000\000\000?217)\000\020\000\200?\204\204?030\023^\a\002\000\000\000\020\000\200?\001(\000p\031\034\000\f\000\000\000\000\000\000\000\000\000\200?\217)\000qS-\000\f\000\000\0008\023^\a=N\034\000 ?\000\f\000\000\000?v\000\000)\001\002\000?216\027\n"...
       pos = 123607952
       digit = 123605904
       found = 1
       res = 0
       error = <value optimized out>
       __PRETTY_FUNCTION__ = "__ast_pbx_run"
ASTERISK-6 0x080cfa8e in pbx_thread (data=0xb7ef2eb8) at pbx.c:2622
No locals.
ASTERISK-7 0x080fefab in dummy_start (data=0xb7e405c8) at utils.c:856
       __cancel_buf = {__cancel_jmp_buf = {{__cancel_jmp_buf = {-1209791480, 0, 123607952, 123605960, 1357093960, 1605525676},
     __mask_was_saved = 0}}, __pad = {0x75e1480, 0x0, 0x0, 0x298ff4}}
       __cancel_arg = (void *) 0x75e1b90
       not_first_call = <value optimized out>
       ret = <value optimized out>
ASTERISK-8 0x002d343b in start_thread () from /lib/libpthread.so.0
No symbol table info available.
ASTERISK-9 0x0022afde in clone () from /lib/libc.so.6
No symbol table info available.
(gdb) frame 11
ASTERISK-7 0x080fefab in dummy_start (data=0xb7e405c8) at utils.c:856
856             ret = a.start_routine(a.data);
(gdb)
Comments:By: Tilghman Lesher (tilghman) 2009-02-03 19:42:52.000-0600

Please follow the instructions in doc/valgrind.txt.

By: jangjun21 (jangjun21) 2009-02-03 20:21:51.000-0600

my bt infomations are not in detail or not useful!

By: jangjun21 (jangjun21) 2009-02-03 20:27:53.000-0600

If I follow doc/valgrind.txt to do,it can prevent asterisk crashing less

By: Tilghman Lesher (tilghman) 2009-02-03 20:52:23.000-0600

The bt info is useful in telling me that you need to follow the instructions in doc/valgrind.txt.  That is not always the appropriate path, but in this case, it is.

By: Tilghman Lesher (tilghman) 2009-02-16 17:03:18.000-0600

No response from reporter.