[Touch-packages] [Bug 1337827] Re: Bash crashes with a segmentation fault on "trap 'kill 0' SIGTERM EXIT"

2014-09-29 Thread Harry Willis
It's the infinite loop of trapped SIGTERMs that raises this exception, and can be performed in any way that deliberately infinitely loops a signal trap. $ bash -c 'trap "kill 0" EXIT SIGTERM' Segmentation fault (core dumped) $ bash -c 'trap "kill $$" EXIT SIGTERM' Segmentation fault (core dumped)

[Touch-packages] [Bug 1337827] Re: Bash crashes with a segmentation fault on "trap 'kill 0' SIGTERM EXIT"

2014-09-29 Thread Harry Willis
So, after some browsing, it apears that trap recursion was introduced intentionally in 4.3-rc2. There is commented code in bash.c that makes it look like trap recursion was originally intended to be a configurable build option, but was made default behaviour instead. One fairly easy fix would be t