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)
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
2 matches
Mail list logo