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: penguin p
Subject: Re: [PATCH] _rl_isearch_cleanup: avoid nested execution
Date: Fri, 22 Aug 2025 18:14:01 +0000

/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

Is this a threading issue? Imho if there is a chance that resources used by
readline() will get freed. Then readline should check before accessing it?

Sorry this is too low level for me I have not sure how this works.


reply via email to

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