[Home]

Summary:ASTERISK-09332: Asterisk 1.4.3 crashes on startup
Reporter:callguy (callguy)Labels:
Date Opened:2007-04-27 08:54:36Date Closed:2007-07-09 21:20:53
Priority:CriticalRegression?No
Status:Closed/CompleteComponents:Core/General
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:
Description:Asterisk 1.4.3 (and 1.4 trunk) crashes on load, this is 100% reproducible. This was not an issue on any previous revisions and is not an issue in the 1.2 branch. Backtrace is below.

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

(gdb) bt full
#0  0x001d0a2c in memcpy () from /lib/tls/libc.so.6
No symbol table info available.
#1  0x080b7cd9 in pbx_substitute_variables_helper_full (c=0x0, headp=0x0,
   cp1=0xb7a3ea79 "${ENV(HOSTNAME)}", cp2=0xbff45190 "", count=255) at pbx.c:1652
       old = {first = 0x0, last = 0x0}
       c = (struct ast_channel *) 0xb73a1458
       cp4 = 0x6ea3b8 "?"
       tmp = 0xb7a3ea79 "${ENV(HOSTNAME)}"
       whereweare = 0xb7a3ea89 ""
       length = -1074507376
       offset = 0
       offset2 = 2147483647
       isfunction = 1
       workspace = 0xbff42f40 ""
       ltmp = 0x0
       var = 0xbff43f50 "ENV(HOSTNAME)"
       nextvar = 0xb7a3ea79 "${ENV(HOSTNAME)}"
       nextexp = 0x0
       nextthing = 0xb7a3ea79 "${ENV(HOSTNAME)}"
       vars = 0xbff43f50 "ENV(HOSTNAME)"
       vare = 0xb7a3ea89 ""
       pos = 0
       brackets = 0
       needsub = 0
       len = 13
       __PRETTY_FUNCTION__ = "pbx_substitute_variables_helper_full"
#2  0x080b80b4 in pbx_substitute_variables_helper (c=0x0, cp1=0xb7a3ea79 "${ENV(HOSTNAME)}",
   cp2=0xbff45190 "", count=255) at pbx.c:1741
No locals.
#3  0x006e69d1 in pbx_load_config (config_file=0x6e7f40 "extensions.conf") at pbx_config.c:2198
       cfg = (struct ast_config *) 0xb7a3e1f8
       end = 0x0
       label = 0x0
       realvalue = '\0' <repeats 255 times>
       lastpri = -2
       con = (struct ast_context *) 0xb7a3de90
       v = (struct ast_variable *) 0xb7a3ea50
       cxt = 0x0
       aft = 0x0
       __PRETTY_FUNCTION__ = "pbx_load_config"
#4  0x006e7d71 in pbx_load_module () at pbx_config.c:2433
       con = (struct ast_context *) 0x6e9068
ASTERISK-1  0x006e7df8 in load_module () at pbx_config.c:2450
No locals.
ASTERISK-2  0x080a8206 in load_resource (resource_name=0xa091db8 "pbx_config.so", global_symbols_only=0)
   at loader.c:637
       mod = (struct ast_module *) 0xb7a3de18
       res = AST_MODULE_LOAD_SUCCESS
       tmp = "\033[33;40mMixed Audio Monitoring Application\033[0;37;40m\000database\033[0;37;40m\000hz Audio Support\033[0;37;40m\000?\000\000\000\000Dz\034\000\020T25\000 \037\t\n?a\000\000\210v?X035\0008T\000\210v?X035\0008T\000\210v?X7(\0008T\b\000T7(\000 \020\000\000\210023\000\000\000-\000\000\000"...
       __PRETTY_FUNCTION__ = "load_resource"
ASTERISK-3  0x080a89f6 in load_modules (preload_only=0) at loader.c:822
       __list_next = (struct load_order_entry *) 0xa091dd0
       __list_prev = (struct load_order_entry *) 0x0
       __new_prev = (struct load_order_entry *) 0xa091da8
       cfg = (struct ast_config *) 0xa08f240
       mod = (struct ast_module *) 0x0
       order = (struct load_order_entry *) 0xa091da8
       v = (struct ast_variable *) 0x0
       load_count = 144
       load_order = {first = 0xa091da8, last = 0xa091f00}
---Type <return> to continue, or q <return> to quit---
       res = 0
       dirent = (struct dirent *) 0x0
       dir = (DIR *) 0xa08fa90
       __PRETTY_FUNCTION__ = "load_modules"
ASTERISK-4  0x0806fb81 in main (argc=3, argv=0xbff458a4) at asterisk.c:2908
       c = -1
       filename = '\0' <repeats 79 times>
       hostname = "cam-d1", '\0' <repeats 57 times>
       tmp = "\000\000\000\000??025\000XW5\017\b\001\000\000\000'?2\000??025\000\230N\024\b\000\000\000\000??025\000XW1\006\b?\211\024\bHf\b\n?1\006\b?\211\024\b\201W\000\000\000\a\001\000"
       xarg = 0x0
       x = 3
       f = (FILE *) 0xa08bf88
       sigs = {__val = {134238211, 0 <repeats 31 times>}}
       num = 2680952
       is_child_of_nonroot = 0
       buf = 0x28e878 ""
       runuser = 0x0
       rungroup = 0x0
       __PRETTY_FUNCTION__ = "main"
       __FUNCTION__ = "main"
ASTERISK-5  0x0017ade3 in __libc_start_main () from /lib/tls/libc.so.6
No symbol table info available.
ASTERISK-6 0x080578c5 in ?? ()
No symbol table info available.
Comments:By: Russell Bryant (russell) 2007-04-27 11:17:40

This has been fixed in 1.4 and trunk in revisions 62171 and 62172.  Thanks for the report!