From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id D9A093858416; Sun, 28 May 2023 08:27:21 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org D9A093858416 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1685262441; bh=WmGX7tNO4nBZAXeV5l+SfUo5WRx7OcLi7dLmnc4G4Y0=; h=From:To:Subject:Date:In-Reply-To:References:From; b=Z0pwL31nPS+gwobk7MPPD1uWAHpJQKvCjxWSrxoXlHIQhwWHhW7mCWMAbk+k+eljy DCa9/w1oI0EG/XRpvbCgoyDEK4VGIDpXP8V/nVaPB9X1lng+MW9h6KKd08e48FG6oh vAeA9BGV/CAV/ZYVOLEnJ1wLayMDzaHxqur25+50= From: "vries at gcc dot gnu.org" To: gdb-prs@sourceware.org Subject: [Bug tui/30056] double free when using reverse-search for a previous command and Ctrl-C Date: Sun, 28 May 2023 08:27:20 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: tui X-Bugzilla-Version: 12.1 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: vries at gcc dot gnu.org X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: FIXED X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: 14.1 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: resolution bug_status target_milestone Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://sourceware.org/bugzilla/show_bug.cgi?id=3D30056 Tom de Vries changed: What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |FIXED Status|NEW |RESOLVED Target Milestone|--- |14.1 --- Comment #9 from Tom de Vries --- Fixed by commit in the in-repo copy of readline. The problem is still there for system readlines that miss this patch, but AFAICT there's nothing we can do about this in gdb. That is, maybe we could fix half of the problem by not returning '\0' to readline, but instead call tui_getc_1 in a loop until it returns something = not '\0'. But the other half of the problem would still exist and cause the sa= me problem. --=20 You are receiving this mail because: You are on the CC list for the bug.=