On 8/30/24 5:05 AM, Eduardo A. Bustamante López wrote:
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:

Thanks, this backtrace was extremely helpful. I'll have a fix in the next
devel branch push.

--
``The lyf so short, the craft so long to lerne.'' - Chaucer
                 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU    c...@case.edu    http://tiswww.cwru.edu/~chet/

Attachment: OpenPGP_signature.asc
Description: OpenPGP digital signature

Reply via email to