Re: declare -A a=b crashes bash

2010-04-09 Thread Chet Ramey
On 4/9/10 2:29 PM, Dennis van Dok wrote: > Andreas Schwab schreef: >> Andreas Schwab writes: >> >>> $ declare -A a=b; unset a >>> *** glibc detected *** /bin/bash: free(): invalid pointer: 0x10091644 *** >> >> And the obvious patch: > > Thanks! > > So...this affects Ubuntu 9.10 > > https://bugs

Re: declare -A a=b crashes bash

2010-04-09 Thread Dennis van Dok
Andreas Schwab schreef: > Andreas Schwab writes: > >> $ declare -A a=b; unset a >> *** glibc detected *** /bin/bash: free(): invalid pointer: 0x10091644 *** > > And the obvious patch: Thanks! So...this affects Ubuntu 9.10 https://bugs.launchpad.net/ubuntu/+source/bash/+bug/516974 Is the 4.0

Re: declare -A a=b crashes bash

2010-04-09 Thread Andreas Schwab
Andreas Schwab writes: > $ declare -A a=b; unset a > *** glibc detected *** /bin/bash: free(): invalid pointer: 0x10091644 *** And the obvious patch: --- bash-4.1/builtins/declare.def.~1~ 2009-11-26 01:42:00.0 +0100 +++ bash-4.1/builtins/declare.def 2010-04-09 19:20:51.0

Re: declare -A a=b crashes bash

2010-04-09 Thread Andreas Schwab
"Chris F.A. Johnson" 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' -DC

Re: declare -A a=b crashes bash

2010-04-09 Thread Chris F.A. Johnson
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' > -DC