bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] _rl_isearch_cleanup: avoid nested execution


From: Chet Ramey
Subject: Re: [PATCH] _rl_isearch_cleanup: avoid nested execution
Date: Fri, 22 Aug 2025 15:00:00 -0400
User-agent: Mozilla Thunderbird

On 8/22/25 2:14 PM, penguin p wrote:
/Resending I forgot to cc bug bash

Chet
if a SIGINT has been received, cleanup code will be executed that leaves
whatever readline was doing in a state that it cannot continue from.

I’m not familiar with C. So in essence, what bash was doing is like this:
1. Ctrl + R
2. readline() doing something
3. Ctrl + C + ESC
4. Bash: whoa I got a SIGINT, gotta cleanup and free everything!
5. readline(): oops everything’s gone I shit myself
6. Segfault

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

Attachment: OpenPGP_signature.asc
Description: OpenPGP digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]