how to crash bash in two easy ways

2010-02-22 Thread pbr
bashbug called sendmail, a link to exim4 which silently ignored the
following (which is a bug in its own right) so I'll post this manually
instead.

I found two one-liners which crash bash.

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 Rackspace-PBR 2.6.31-19-generic #56-Ubuntu SMP Thu
Jan 28 02:39:34 UTC 2010 x86_64 GNU/Linux
Machine Type: x86_64-pc-linux-gnu

Bash Version: 4.0
Patch Level: 33
Release Status: release

Description:

I was looking for the simplest way to clear the entire aliases
array and found a crash bug instead.
I Checked a few other cases and found a second case that
crashes bash as well.

Bash dies with a segmentation fault anytime I type in either
"BASH_ALIASES=" or "BASH_CMDS="

Repeat-By:

Type "B A S H _ A L I A S E S =" (without spaces) and then
enter, at the command line.
Or, "B A S H _ C M D S =" (without spaces) for a fun variant.

Fix:
My fix is sending you guys this 'bashbug' crash report.  Then
re-sending it so it really got to you all.

Feel free to follow up if you have any questions.
-pbr


Re: how to crash bash in two easy ways

2010-02-22 Thread pbr
On Feb 22, 10:00 am, Chet Ramey  wrote:
> On 2/22/10 5:30 AM, pbr wrote:
>
> >  Bash dies with a segmentation fault anytime I type in either
> > "BASH_ALIASES=" or "BASH_CMDS="
>
> This was fixed in bash-4.1.
>
> Chet
> --
> ``The lyf so short, the craft so long to lerne.'' - Chaucer
>                  ``Ars longa, vita brevis'' - Hippocrates
> Chet Ramey, ITS, CWRU    c...@case.edu    http://cnswww.cns.cwru.edu/~chet/

Awesome... now to figure out why it hasn't yet been updated in Ubuntu
9.10...

THANKS Chet, and Christopher, for your quick replies.

Kind regards,
-pbr   http://reiber.org