[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bash segfault on unsetting bad associative array

From: ordcoder
Subject: bash segfault on unsetting bad associative array
Date: Fri, 13 Aug 2010 20:55:45 +0700

Configuration Information [Automatically generated, do not change]:
Machine: x86_64
OS: linux-gnu
Compiler: gcc
Compilation CFLAGS:  -DPROGRAM='bash' -DCONF_HOSTTYPE='x86_64'
-DCONF_OSTYPE='linux-gnu' -DCONF_MACHTYPE='x86_64-unknown-linux-gnu'
-DCONF_VENDOR='unknown' -DLOCALEDIR='/usr/share/locale'
-DPACKAGE='bash' -DSHELL -DHAVE_CONFIG_H   -I.  -I. -I./include
-I./lib   -march=x86-64 -mtune=generic -O2 -pipe
uname output: Linux ordtop 2.6.34-ARCH #1 SMP PREEMPT Wed Aug 11
00:23:15 CEST 2010 x86_64 Intel(R) Pentium(R) Dual CPU T3400 @ 2.16GHz
GenuineIntel GNU/Linux
Machine Type: x86_64-unknown-linux-gnu
Bash Version: 4.1
Patch Level: 7
Release Status: release
        Bash quietly segfaults (exit status 139) when trying to unset
associative array which was incorrectly declared (however it didn't
complain when declaring it)
        Bash compiled from sources crashed (exit status 134) under the
same circumstances with the following output:

        malloc: hashlib.c:306: assertion botched
        free: called with unallocated block argument
        last command: unset foo

        # Execute the following two commands at interactive prompt or
put them in file and execute it:

        declare -A foo=bar
        unset foo

reply via email to

[Prev in Thread] Current Thread [Next in Thread]