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 to use a definable recursion limit within run_pending_traps, but I suppose we should really get a verdict on whether the plan is for recursion behaviour to stay as-is or to become a configurable option. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1337827 Title: Bash crashes with a segmentation fault on "trap 'kill 0' SIGTERM EXIT" To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/bash/+bug/1337827/+subscriptions -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
