bug-bash
[Top][All Lists]
Advanced

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

Re: declare -A a=b crashes bash


From: Andreas Schwab
Subject: Re: declare -A a=b crashes bash
Date: Fri, 09 Apr 2010 19:12:21 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.95 (gnu/linux)

"Chris F.A. Johnson" <address@hidden> writes:

> On Fri, 9 Apr 2010, Dennis van Dok 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-pc-linux-gnu'
>> -DCONF_VENDOR='pc' -DLOCALEDIR='/usr/share/locale' -DPACKAGE='bash'
>> -DSHELL -DHAVE_CONFIG_H   -I.  -I../bash -I../bash/include -I../bash/lib
>>   -g -O2 -Wall
>> uname output: Linux camilla 2.6.31-21-generic #59-Ubuntu SMP Wed Mar 24
>> 07:28:27 UTC 2010 x86_64 GNU/Linux
>> Machine Type: x86_64-pc-linux-gnu
>> 
>> Bash Version: 4.0
>> Patch Level: 33
>> Release Status: release
>> 
>> Description:
>>      Typing 'declare -A a=b' crashes bash with a segmentation fault.
>> Repeat-By:
>>      Type 'declare -A a=b'.
>
>    I can confirm that in 4.0, but it works in 4.1

Not really:

$ declare -A a=b; unset a
*** glibc detected *** /bin/bash: free(): invalid pointer: 0x10091644 ***

Andreas.

-- 
Andreas Schwab, address@hidden
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."




reply via email to

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