Re: Segmentation fault bash 4.3.022

2014-08-12 Thread Chet Ramey
> $ bash-4.3.22 -c 'shopt -s lastpipe; trap -- "printf x" ERR; true | { true | > false; }' > xxSegmentation fault > > $ ./bash -c 'shopt -s lastpipe; trap -- "printf x" ERR; true | { true | > false; }' > xx./bash: wait_for: No record of process 7954 > x Yeah, it will take a little longer to sup

Re: Segmentation fault bash 4.3.022

2014-08-12 Thread Greg Wooledge
On Tue, Aug 12, 2014 at 09:15:04AM -0400, Chet Ramey wrote: > On 8/11/14, 2:21 PM, lolilolicon wrote: > > The following code segfaults when run by bash 4.3.022 > > > > set -E > > shopt -s lastpipe > > trap -- 'true' ERR > > true | { true | false; } > > Here's a patch for those who would l

Re: Segmentation fault bash 4.3.022

2014-08-12 Thread Chet Ramey
On 8/11/14, 2:21 PM, lolilolicon wrote: > Sorry for the unhelpful title, but I can't find a one that isn't > longer than the body of the mail. > > The following code segfaults when run by bash 4.3.022 > > set -E > shopt -s lastpipe > trap -- 'true' ERR > true | { true | false; } > > This

Re: Segmentation fault bash 4.3.022

2014-08-11 Thread Chet Ramey
On 8/11/14, 3:05 PM, Geir Hauge wrote: > And lastly, in interactive mode > $ set +m; shopt -s lastpipe; trap -- "printf x" ERR; true | { true | false; > } > xxx > > Can't quite understand why it would trigger the ERR trap thrice. That's easy enough to explain. The ERR trap is triggered wherever

Re: Segmentation fault bash 4.3.022

2014-08-11 Thread Chet Ramey
On 8/11/14, 2:21 PM, lolilolicon wrote: > Sorry for the unhelpful title, but I can't find a one that isn't > longer than the body of the mail. > > The following code segfaults when run by bash 4.3.022 > > set -E > shopt -s lastpipe > trap -- 'true' ERR > true | { true | false; } > > This

Re: Segmentation fault bash 4.3.022

2014-08-11 Thread Geir Hauge
2014-08-11 20:47 GMT+02:00 Greg Wooledge : > On Tue, Aug 12, 2014 at 02:21:18AM +0800, lolilolicon wrote: > > The following code segfaults when run by bash 4.3.022 > > > > set -E > > shopt -s lastpipe > > trap -- 'true' ERR > > true | { true | false; } > > I could not reproduce this, on HP

Re: Segmentation fault bash 4.3.022

2014-08-11 Thread Greg Wooledge
On Tue, Aug 12, 2014 at 02:21:18AM +0800, lolilolicon wrote: > The following code segfaults when run by bash 4.3.022 > > set -E > shopt -s lastpipe > trap -- 'true' ERR > true | { true | false; } I could not reproduce this, on HP-UX or Linux. I tried from an interactive shell, just typin

Segmentation fault bash 4.3.022

2014-08-11 Thread lolilolicon
Sorry for the unhelpful title, but I can't find a one that isn't longer than the body of the mail. The following code segfaults when run by bash 4.3.022 set -E shopt -s lastpipe trap -- 'true' ERR true | { true | false; } This is probably related to the bug patched by bash43-022.