[PATCH] Fix gdb crash with tui
Pedro Alves
palves@redhat.com
Tue Mar 12 16:04:00 GMT 2013
On 03/12/2013 12:36 PM, Jan Kratochvil wrote:
> On Tue, 12 Mar 2013 13:21:44 +0100, Hui Zhu wrote:
>> Not sure the prev backtrace for crash is right, so I post new one:
>
> BTW don't you have a recipe for the reproducibility? Don't you have some
> unusual terminal size (stty size) for example? Which distro?
>
>
> Jan
I just reproduced it on my Fedora 17 box with current mainline.
$ stty size
45 172
To reproduce, I just did the steps in the OP.
$ ./gdb ./gdb
(gdb) start
"c-x a" to flip to TUI mode.
repeat:
press arrow up a bit, so the source display scrolls a bit up.
press arrow down a bit, so the source display scrolls a bit down.
goto repeat until
"---Type <return> to continue, or q <return> to quit---"
appears in TUI's console. Then press return.
(top-gdb) bt
#0 0x0000000000000000 in ?? ()
#1 0x000000000072ea9a in rl_callback_read_char () at ../../src/readline/callback.c:220
#2 0x00000000005e1c9d in rl_callback_read_char_wrapper (client_data=0x0) at ../../src/gdb/event-top.c:163
#3 0x00000000005e207e in stdin_event_handler (error=0, client_data=0x0) at ../../src/gdb/event-top.c:371
#4 0x00000000005e0c22 in handle_file_event (data=...) at ../../src/gdb/event-loop.c:768
#5 0x00000000005e00cb in process_event () at ../../src/gdb/event-loop.c:342
#6 0x00000000005e0192 in gdb_do_one_event () at ../../src/gdb/event-loop.c:406
#7 0x00000000005e01e3 in start_event_loop () at ../../src/gdb/event-loop.c:431
#8 0x00000000005e1cc7 in cli_command_loop () at ../../src/gdb/event-top.c:176
#9 0x00000000005d8768 in current_interp_command_loop () at ../../src/gdb/interps.c:331
#10 0x00000000005d91a6 in captured_command_loop (data=0x0) at ../../src/gdb/main.c:256
#11 0x00000000005d7512 in catch_errors (func=0x5d918b <captured_command_loop>, func_args=0x0, errstring=0x88f8d4 "", mask=6) at ../../src/gdb/exceptions.c:546
#12 0x00000000005da5b9 in captured_main (data=0x7fff21b3eea0) at ../../src/gdb/main.c:1033
#13 0x00000000005d7512 in catch_errors (func=0x5d9442 <captured_main>, func_args=0x7fff21b3eea0, errstring=0x88f8d4 "", mask=6) at ../../src/gdb/exceptions.c:546
#14 0x00000000005da5ef in gdb_main (args=0x7fff21b3eea0) at ../../src/gdb/main.c:1042
#15 0x000000000045a00a in main (argc=2, argv=0x7fff21b3efa8) at ../../src/gdb/gdb.c:34
(top-gdb)
--
Pedro Alves
More information about the Gdb-patches
mailing list