[Home]

Summary:ASTERISK-06398: Asterisk Segfaulted (no idea why)
Reporter:Juan Pablo Abuyeres (jpabuyer)Labels:
Date Opened:2006-02-22 07:45:05.000-0600Date Closed:2011-06-07 14:00:31
Priority:CriticalRegression?No
Status:Closed/CompleteComponents:Core/General
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:
Description:by the time asterisk crashed, I just had debugging off. It was off for like 15 minutes and there it crashed. Bad luck :(
I don't know what happened. All I have is the core file. I'll put the backtrace in the additional information field.

****** ADDITIONAL INFORMATION ******

[root@ast1 tmp]# gdb asterisk core.982
GNU gdb Red Hat Linux (6.3.0.0-1.62rh)
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 library "/lib/tls/libthread_db.so.1".

Core was generated by `asterisk -vvvg -c'.
Program terminated with signal 11, Segmentation fault.
Reading symbols from /lib/libdl.so.2...done.
Loaded symbols for /lib/libdl.so.2
Reading symbols from /lib/tls/libpthread.so.0...done.
Loaded symbols for /lib/tls/libpthread.so.0
Reading symbols from /usr/lib/libncurses.so.5...done.
...
...
...
Reading symbols from /usr/lib/asterisk/modules/app_addon_sql_mysql.so...done.
Loaded symbols for /usr/lib/asterisk/modules/app_addon_sql_mysql.so
Reading symbols from /usr/lib/asterisk/modules/codec_g729a.so...done.
Loaded symbols for /usr/lib/asterisk/modules/codec_g729a.so
Reading symbols from /lib/libgcc_s.so.1...done.
Loaded symbols for /lib/libgcc_s.so.1
#0  0x0808ac56 in pbx_builtin_setvar_helper (chan=0x8dc3db8, name=0xa66656 "MACRO_CONTEXT", value=0x0) at pbx.c:5951
5951                            AST_LIST_REMOVE(headp, newvariable, entries);
(gdb) bt
#0  0x0808ac56 in pbx_builtin_setvar_helper (chan=0x8dc3db8, name=0xa66656 "MACRO_CONTEXT", value=0x0) at pbx.c:5951
#1  0x00a65c28 in macro_exec (chan=0xb6f189d0, data=0x0) at app_macro.c:271
#2  0x0808d99f in pbx_extension_helper (c=0xb6f189d0, con=0x0, context=0xb6f18b20 "macro-superdial", exten=0xb6f18c14 "s", priority=1, label=0x0, callerid=0x857f628 "Macro", action=0)
   at pbx.c:544
#3  0x0808e614 in __ast_pbx_run (c=0xb6f189d0) at pbx.c:2218
#4  0x0808f2ef in pbx_thread (data=0x0) at pbx.c:2505
ASTERISK-1  0x003d6dd8 in start_thread () from /lib/tls/libpthread.so.0
ASTERISK-2  0x001edd2a in clone () from /lib/tls/libc.so.6
(gdb)
(gdb) bt full
#0  0x0808ac56 in pbx_builtin_setvar_helper (chan=0x8dc3db8, name=0xa66656 "MACRO_CONTEXT", value=0x0) at pbx.c:5951
       curelm = (struct ast_var_t *) 0x0
       newvariable = (struct ast_var_t *) 0x8dc3db8
       headp = (struct varshead *) 0xb6f18d98
       nametail = 0xa66656 "MACRO_CONTEXT"
#1  0x00a65c28 in macro_exec (chan=0xb6f189d0, data=0x0) at app_macro.c:271
       uc = (struct localuser *) 0x0
       ul = (struct localuser *) 0x0
       tmp = 0x0
       rest = 0x0
       fullmacro = "macro-superdial\000�\211��\000\000\000\000\000\000\000\000�\024&ASTERISK-1757;\000\000\000\000�\004&ASTERISK-1757;\212檶�\004&ASTERISK-1757;\000\000\000\000\000\000\000\200\000\000\000\000\030�W\b�\\�� \213���\211��(P\b\b"
       varname = "ARG10", '\0' <repeats 74 times>
       oldargs = {0x0 <repeats 81 times>}
       argc = 11
       x = 0
       res = -1
       oldexten = "1010", '\0' <repeats 251 times>
       oldpriority = 1
       pc = "1", '\0' <repeats 78 times>
       depthc = "0\000\000\000\000\000\000\000\000\000\000"
       oldcontext = "from-tecnoera", '\0' <repeats 66 times>
       offsets = 0x0
       offset = 0
       depth = 0
       setmacrocontext = 1
       save_macro_exten = 0x0
       save_macro_context = 0x0
       save_macro_priority = 0x0
       save_macro_offset = 0x0
       u = (struct localuser *) 0x8bdd6b0
       __retval = 0xb6db20a8 "superdial"
#2  0x0808d99f in pbx_extension_helper (c=0xb6f189d0, con=0x0, context=0xb6f18b20 "macro-superdial", exten=0xb6f18c14 "s", priority=1, label=0x0, callerid=0x857f628 "Macro", action=0)
   at pbx.c:544
       e = (struct ast_exten *) 0x0
       sw = (struct ast_switch *) 0x0
       data = 0x0
       foundcontext = 0xb6a1483f "perm-intr-tecnoera"
       newstack = 1
       res = 0
       status = 5
       incstack = {0xb6a0c368 "from-tecnoera", 0xb6aabab0 "bloqueo-telefonos", 0xb6a4a5b0 "perm-vina-emerg", 0xb6a25e80 "perm-vina-local", 0xb6a4a568 "perm-stgo-tecnoera",
 0xb6ab0770 "perm-celulares-from-vina", 0xb6a6f918 "perm-ldn-from-vina", 0xb6db8744 "p\207&ASTERISK-1757;&#65533;\025\017\b\\\210&ASTERISK-1757;\024\215\027", 0x17e4b4 "\201&#65533;D\210\f", 0x3de090 "\030",
 0x3 <Address 0x3 out of bounds>, 0x246cf8 "\004\\\023", 0xb6db8770 "\001\200&#65533;&#65533;&#65533;\210&ASTERISK-1757;&#65533;\210&ASTERISK-1757;&#65533;\210&ASTERISK-1757;&#65533;\210&ASTERISK-1757;&#65533;\210&ASTERISK-1757;&#65533;\210&ASTERISK-1757;&#65533;\210&ASTERISK-1757;&#65533;\210&ASTERISK-1757;", 0xb6db874c "\\\210&ASTERISK-1757;\024\215\027",
 0x17f9b5 "\213E\024\211~\020\211~\f\205&#65533;\211~\004t+\213U\024\213M&#65533;\211V\024\211N\030\211V\b1&#65533;\211&#65533;\230",
 0xb6db8770 "\001\200&#65533;&#65533;&#65533;\210&ASTERISK-1757;&#65533;\210&ASTERISK-1757;&#65533;\210&ASTERISK-1757;&#65533;\210&ASTERISK-1757;&#65533;\210&ASTERISK-1757;&#65533;\210&ASTERISK-1757;&#65533;\210&ASTERISK-1757;&#65533;\210&ASTERISK-1757;", 0xb6db88a0 "\"Paola Miranda\" <1004>", 0xb6db88ef "", 0x0, 0x15538f "\201&#65533;i\031\017",
 0x246cf8 "\004\\\023", 0xb6db8770 "\001\200&#65533;&#65533;&#65533;\210&ASTERISK-1757;&#65533;\210&ASTERISK-1757;&#65533;\210&ASTERISK-1757;&#65533;\210&ASTERISK-1757;&#65533;\210&ASTERISK-1757;&#65533;\210&ASTERISK-1757;&#65533;\210&ASTERISK-1757;&#65533;\210&ASTERISK-1757;", 0x80f15d3 "\"%s\" <%s>", 0xb6db885c "x\210&ASTERISK-1757;\224&#65533;\025",
 0x178d14 "\213\215\f&#65533;&#65533;&#65533;\211&#65533;9\2150&#65533;&#65533;&#65533;t\t\213&#65533;(&#65533;&#65533;&#65533;&#65533;\006", 0xb6db8770 "\001\200&#65533;&#65533;&#65533;\210&ASTERISK-1757;&#65533;\210&ASTERISK-1757;&#65533;\210&ASTERISK-1757;&#65533;\210&ASTERISK-1757;&#65533;\210&ASTERISK-1757;&#65533;\210&ASTERISK-1757;&#65533;\210&ASTERISK-1757;&#65533;\210&ASTERISK-1757;", 0x80f15d3 "\"%s\" <%s>",
 0xb6db8894 "I-\030", 0xb6db88a0 "\"Paola Miranda\" <1004>", 0x0, 0xb6db8810 "\234&#65533;=", 0xb6db8770 "\001\200&#65533;&#65533;&#65533;\210&ASTERISK-1757;&#65533;\210&ASTERISK-1757;&#65533;\210&ASTERISK-1757;&#65533;\210&ASTERISK-1757;&#65533;\210&ASTERISK-1757;&#65533;\210&ASTERISK-1757;&#65533;\210&ASTERISK-1757;&#65533;\210&ASTERISK-1757;",
 0xfbad8001 <Address 0xfbad8001 out of bounds>, 0xb6db88a0 "\"Paola Miranda\" <1004>", 0xb6db88a0 "\"Paola Miranda\" <1004>", 0xb6db88a0 "\"Paola Miranda\" <1004>",
 0xb6db88a0 "\"Paola Miranda\" <1004>", 0xb6db88b6 "", 0xb6db88ef "", 0xb6db88a0 "\"Paola Miranda\" <1004>", 0xb6db88ef "", 0x0, 0x0, 0x0, 0x0, 0x0, 0xf1f133 "", 0x0,
 0x246cf8 "\004\\\023", 0x0, 0x0, 0xb6db87d0 "&#65533;\207&ASTERISK-1757;T\215\023", 0x138db1 "&#65533;&#65533;", '\220' <repeats 13 times>, "U\211&#65533;WVS&#65533;\"&#65533;&#65533;&#65533;\201&#65533;-&#65533;\020", 0xb6db8ac0 "\234
 0xfffff7d0 <Address 0xfffff7d0 out of bounds>, 0xffffffff <Address 0xffffffff out of bounds>, 0xb6db87f0 "\034\210&ASTERISK-1757;\214&#65533;=",
 0x138d54 '\220' <repeats 12 times>, "\213L$\004\213D$\b\213Q\024\213Y", 0xb6db8ac0 "\234&#65533;=", 0x1 <Address 0x1 out of bounds>, 0x0, 0x3dfc9c "\230&#65533;", 0x1 <Address 0x1 out of bounds>,
 0xb6db8ac0 "\234&#65533;=", 0xb6db881c "\034\211&ASTERISK-1757;\221ul", 0x3db78c "\215t&", 0xb6db8ac0 "\234&#65533;=", 0x1 <Address 0x1 out of bounds>, 0x6c6c9c "\203&#65533;\020\205&#65533;\211&#65533;\017\204&#65533;", 0x244d00 "",
 0x0, 0x1 <Address 0x1 out of bounds>, 0x3dfc9c "\230&#65533;", 0x5 <Address 0x5 out of bounds>, 0xb6db8944 "(\212&ASTERISK-1757;", 0xb6db891c "\024\214&#65533;&#65533;\001", 0x6c7591 "\203&#65533; \205&#65533;&#65533;\002",
 0x1 <Address 0x1 out of bounds>, 0x1a <Address 0x1a out of bounds>, 0xb6db8ac0 "\234&#65533;=", 0x0, 0xb6db8dd0 "&#65533;\212&ASTERISK-1757;", 0xb6db8944 "(\212&ASTERISK-1757;", 0xb6db8ac0 "\234
 0x2 <Address 0x2 out of bounds>, 0xffffffe4 <Address 0xffffffe4 out of bounds>, 0xb6db8854 " \r&#65533;\b\200\"&#65533;&#65533;x\210&ASTERISK-1757;\224&#65533;\025", 0x178c6d "\201&#65533;\213&#65533;\f", 0x246cf8 "\004\\\023",
 0x8cc0d20 "\"Paola Miranda\" <1004>", 0xb6f02280 "1004", 0xb6db8878 "&#65533;\211&#65533;&#65533; &#65533;\t\b&#65533;\210&ASTERISK-1757;P",
 0x15e094 "\213]&#65533;\211&#65533;]&#65533;\220\220\220\220\220U\211&#65533;\203&#65533;\020\211]&#65533;\213U\f\215M\020&#65533;9\205&#65533;&#65533;\201&#65533;D\214\016", 0xb6db88a0 "\"Paola Miranda\" <1004>", 0x50 <Address 0x50 out of bounds>,
 0x80f15d3 "\"%s\" <%s>", 0xb6db888c "&#65533;<&#65533;&#65533;\200\"&#65533;&#65533;I-\030", 0x43 <Address 0x43 out of bounds>, 0xb6f189d0 "Local/1004@from-tecnoera-cbb8,2<ZOMBIE>", 0x809f020 "\200|$ ",
 0xb6db88a0 "\"Paola Miranda\" <1004>", 0x50 <Address 0x50 out of bounds>, 0x80f15d3 "\"%s\" <%s>", 0xb6f03cf0 "Paola Miranda", 0xb6f02280 "1004",
 0x182d49 "\213E&#65533;\203&#65533;H\211E&#65533;\213}&#65533;\213M&#65533;\213WT\211U&#65533;9&#65533;\017\204\221", 0x2475e0 "", 0x0, 0x6f615022 <Address 0x6f615022 out of bounds>, 0x4d20616c <Address 0x4d20616c out of bounds>,
 0x6e617269 <Address 0x6e617269 out of bounds>, 0x20226164 <Address 0x20226164 out of bounds>, 0x3030313c <Address 0x3030313c out of bounds>, 0x3e34 <Address 0x3e34 out of bounds>,
 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x809eadd "\213T$\030\213L$\034\211\223\200\002", 0xb6db88f8 ".o&#65533;C`\211&ASTERISK-1757;&#65533;\211&#65533;&#65533; \213&#65533;&#65533;\001", 0x0, 0x0, 0x0}
       passdata = "superdial|SIP/1010|40||||||||1010@tecnoera", '\0' <repeats 8149 times>
       stacklen = 7
       tmp = "\033[1;36;40mMacro\033[0;37;40m\000\00040m\000\00040m\000-- Hungup 'Zap/22-1'\n\000519] lFeb 22 10:40:48"
       tmp2 = "\033[1;35;40mZap/46-1\033[0;37;40m\000r-yany-bf3e,2\033[0;37;40m\00040m\000Q$\000&#65533;M$\000 \000\000\000\036\000\000\000\022\000\000\000\025\000\000"
       tmp3 = "\033[1;35;40mfaxreceive\033[0;37;40m\0000;37;40m\000;37;40m\0007;40m\00037;40m\000m", '\0' <repeats 3194 times>, "\213&#65533;\026\000\000\000\000\000&#65533;&#65533;\016\b\000\000\000\000\222&#65533;\027\000&#65533;]&ASTERISK-1757; \200&ASTERISK-1757;\213&#65533;\026\000\213&#65533;\026\000\000\000\000\000&#65533;&#65533;\016\b\000\000\000\000\213&#65533;\026\000\000\000\000\000&#65533;&#65533;\016\b\000\000\000\000\213&#65533;\026\000\000\000\000\000&#65533;&#65533;\016\b\000\000\000\000\222&#65533;\027\000\003^&ASTERISK-1757; \200&ASTERISK-1757;\213&#65533;\026\000\213&#65533;\026\000\000\000\000\000&#65533;&#65533;\016\b\000\000\000\000\213&#65533;\026\000\000\000\000\000&#65533;&#65533;\016\b\000\000\000\000"...
       atmp = '\0' <repeats 79 times>
       atmp2 = '\0' <repeats 8291 times>
#3  0x0808e614 in __ast_pbx_run (c=0xb6f189d0) at pbx.c:2218
       digit = 0
       exten = '\0' <repeats 255 times>
       pos = 0
       waittime = -1227126432
       res = 0
#4  0x0808f2ef in pbx_thread (data=0x0) at pbx.c:2505
No locals.
ASTERISK-1  0x003d6dd8 in start_thread () from /lib/tls/libpthread.so.0
No symbol table info available.
ASTERISK-2  0x001edd2a in clone () from /lib/tls/libc.so.6
No symbol table info available.
(gdb)
Comments:By: Juan Pablo Abuyeres (jpabuyer) 2006-02-22 08:51:16.000-0600

this is likely what happened:
1.- Someone called from the pstn to sip/1004
2.- sip/1004 answered, then pressed transfer in the polycom phone to transfer to sip/1010
3.- sip/1010 answered, the person using sip/1004 told sip/1010 someone was calling him, ok, here goes...
4.- the person on sip/1004 pressed the transfer button to transfer the call, and (according to them) there exactly asterisk crashed.

I tried to reproduce this, but it didn't crash.

hope this helps.

By: Tilghman Lesher (tilghman) 2006-02-22 10:40:25.000-0600

This has already been fixed in the 1.2 tree, two weeks ago.