On Wed, Aug 28, 2024 at 01:16:57PM +0200, Tycho Kirchner wrote:
Hi,
Sending rapid SIGINTs from another shell quickly results in a SEGFAULT of the
bash instance receiving them. Steps to reproduce:
* Open up a shell SHELL_1 and record its pid, e.g. "echo $$"
* Launch another shell and send rapid SIGINTs: while true ; do kill -INT
OTHER_PID; done
SHELL_1 quickly dies with a SEGAULT
Tested on GNU bash, version 5.2.32(1)-release (x86_64-pc-linux-gnu), compiled via plain
./configure && make
Thanks and Kind Regards
Tycho
I am able to reproduce this as well, on the latest devel version
(2610d40b32301cd7256bf1dfc49c9f8bfe0dcd53).
The shell crashes due to what seems runaway self-recursion while handling the
interrupt signal in readline: