public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug gdb/29787] New: Using "set debug infrun on" and "set logging enabled" breaks GDB prompt and makes GDB crash
@ 2022-11-16  3:53 vimacs.hacks at gmail dot com
  2022-11-16  3:57 ` [Bug gdb/29787] " simark at simark dot ca
                   ` (9 more replies)
  0 siblings, 10 replies; 11+ messages in thread
From: vimacs.hacks at gmail dot com @ 2022-11-16  3:53 UTC (permalink / raw)
  To: gdb-prs

https://sourceware.org/bugzilla/show_bug.cgi?id=29787

            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" and
"set logging enabled".

GDB 12.1 doesn't have this bug, but GDB 12.1 doesn't have paging for the debug
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 
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 
(gdb) set logging enabled 
Copying output to gdb.txt.
Copying debug output to gdb.txt.
(gdb) r

3. just type <RET> until the debug message finishes, and type <RET> once more,
GDB will crash with "readline: readline_callback_read_char() called with no
handler!"

-- 
You are receiving this mail because:
You are on the CC list for the bug.

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2022-11-28 20:42 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-11-16  3:53 [Bug gdb/29787] New: Using "set debug infrun on" and "set logging enabled" breaks GDB prompt and makes GDB crash vimacs.hacks at gmail dot com
2022-11-16  3:57 ` [Bug gdb/29787] " simark at simark dot ca
2022-11-16 18:11 ` tromey at sourceware dot org
2022-11-16 18:40 ` tromey at sourceware dot org
2022-11-17 16:27 ` tromey at sourceware dot org
2022-11-17 16:34 ` tromey at sourceware dot org
2022-11-17 16:48 ` tromey at sourceware dot org
2022-11-17 18:11 ` tromey at sourceware dot org
2022-11-17 18:29 ` tromey at sourceware dot org
2022-11-28 20:41 ` cvs-commit at gcc dot gnu.org
2022-11-28 20:42 ` tromey at sourceware dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).