From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 27A15395443E; Wed, 16 Nov 2022 03:53:15 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 27A15395443E DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1668570795; bh=ZEHL0rPuP4OCKUAEhgG1N0kb0P2FnKYkrMFWUSoo21U=; h=From:To:Subject:Date:From; b=fJbfjWEXAc9C9g/fJ9w5kaLs17HDxlit3sQLfTZx9CdWs0rI0fQ/2PEhEfvT39oDm 4CM0kiGjiD+NDWEASqmg1EAtoiLdhCgjpBYb9KDuHHCSU6zdL9Si+dyMKN0kKsX63o pLTak2xOlxkuZ69V5QhZUHHtIrmpqYapUupxKnE0= From: "vimacs.hacks at gmail dot com" To: gdb-prs@sourceware.org Subject: [Bug gdb/29787] New: Using "set debug infrun on" and "set logging enabled" breaks GDB prompt and makes GDB crash Date: Wed, 16 Nov 2022 03:53:14 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: gdb X-Bugzilla-Version: HEAD X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: vimacs.hacks at gmail dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: 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=3D29787 Bug ID: 29787 Summary: Using "set debug infrun on" and "set logging enabled" breaks GDB prompt and makes GDB crash Product: gdb Version: HEAD Status: UNCONFIRMED Severity: normal Priority: P2 Component: gdb Assignee: unassigned at sourceware dot org Reporter: vimacs.hacks at gmail dot com Target Milestone: --- The use of readline in GDB is broken in commit a715464cd2e25c8bf46190cc8bde9267c9ab6ac0 when using "set debug infrun on" a= nd "set logging enabled". GDB 12.1 doesn't have this bug, but GDB 12.1 doesn't have paging for the de= bug messages, so I don't know if this bug is only in the versions after GDB 12.= 1. Steps to produce this bug: 1. build a simple program: $ cat main.c=20 int main() { } $ gcc -g -O0 main.c 2. debug it and use the following commands: $ ./gdb/gdb ./a.out (gdb) b main Breakpoint 1 at 0x1122: file main.c, line 3. (gdb) set debug infrun on=20 (gdb) set logging enabled=20 Copying output to gdb.txt. Copying debug output to gdb.txt. (gdb) r 3. just type until the debug message finishes, and type once mo= re, GDB will crash with "readline: readline_callback_read_char() called with no handler!" --=20 You are receiving this mail because: You are on the CC list for the bug.=