On 10/8/25 2:56 AM, Oğuz wrote:
On Sun, Oct 5, 2025 at 7:04 AM anonymous <[email protected]> wrote:
I get a repeatable crash in bash on arch linux.
These keypresses trigger the crash:
C-r
C-s
Enter
C-c
I can reproduce this on bash 5.3.0 but not 5.1.16 on Ubuntu 22.04. It
is indeed a double-free:
There are two problems here. That's why this backtrace is different than
the one Greg Wooledge posted. It's very dependent on when bash gets the
SIGINT.
The first one was reported and fixed back in July:
https://lists.gnu.org/archive/html/bug-readline/2025-07/msg00007.html
and commit
https://cgit.git.savannah.gnu.org/cgit/bash.git/commit/?h=devel&id=a23c863e755dd862cb9e723f7d85578346e450a5
This is the one in Greg's backtrace.
Once you get past that, you get the double free when you call
_rl_isearch_cleanup
from the signal cleanup code. That was fixed in August as the result of
https://lists.gnu.org/archive/html/bug-bash/2025-08/msg00080.html
in commit
https://cgit.git.savannah.gnu.org/cgit/bash.git/commit/?h=devel&id=086456835944d1a3098a026646144573deafc917
Chet
--
``The lyf so short, the craft so long to lerne.'' - Chaucer
``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU [email protected] http://tiswww.cwru.edu/~chet/