bug-bash
[Top][All Lists]
Advanced

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

Re: bash segfault on unsetting bad associative array


From: Roman Rakus
Subject: Re: bash segfault on unsetting bad associative array
Date: Mon, 16 Aug 2010 11:05:49 +0200
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.7) Gecko/20100720 Fedora/3.1.1-1.fc13 Lightning/1.0b2pre Thunderbird/3.1.1

 On 08/13/2010 03:55 PM, ordcoder wrote:
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
Description:
         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
         Aborting...Aborted

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

         declare -A foo=bar
         unset foo

Already reported. So far, not patched.
http://www.mail-archive.com/address@hidden/msg06014.html

RR



reply via email to

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