[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] bash-4.0.10: segfault with `; &' at the end of case statemen
From: |
Chet Ramey |
Subject: |
Re: [PATCH] bash-4.0.10: segfault with `; &' at the end of case statement |
Date: |
Sat, 14 Mar 2009 13:28:25 -0400 |
User-agent: |
Thunderbird 2.0.0.19 (Macintosh/20081209) |
Clark J. Wang wrote:
> With bash version: 4.0.10, the following case statement crashed with
> segfault:
>
> $ cat foo.sh
> case a in
> a) echo a ;&
> esac
> $ bash4 foo.sh
> a
> Segmentation fault
> $
>
> In an interactive shell, that case statement causes current shell to hang
> with nearly 100% CPU usage.
Thanks for the report and patch.
Chet
--
``The lyf so short, the craft so long to lerne.'' - Chaucer
Chet Ramey, ITS, CWRU chet@case.edu http://cnswww.cns.cwru.edu/~chet/