NetBSD-Users archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: gdb 15.2 or 16.1
On Wed, Dec 11, 2024 at 01:06:11AM +0500, Vitaly Shevtsov wrote:
> gdb in current gets crashed when it runs in tui mode. I suspect this is
> because of libcurses.
Looks indeed like a bug in gdb, it calls prefresh with a NULL "pad" pointer:
> gdb gdb
> run
> tui enable
#0 0xfddf323c in prefresh (pad=0x0, pbegy=0, pbegx=0, sbegy=1, sbegx=5,
smaxy=0, smaxx=78) at /work/src/lib/libcurses/refresh.c:515
#1 0x0183cac0 in tui_unhighlight_win ()
at /work/src/external/gpl3/gdb.old/lib/libgdb/../../dist/gdb/tui/tui-wingeneral.c:138
#2 tui_unhighlight_win ()
at /work/src/external/gpl3/gdb.old/lib/libgdb/../../dist/gdb/tui/tui-wingeneral.c:131
#3 0x0183ad10 in tui_source_window_base::do_erase_source_content ()
at /work/src/external/gpl3/gdb.old/lib/libgdb/../../dist/gdb/tui/tui-winsource.c:219
#4 0x018468ac in tui_layout_split::apply ()
at /work/src/external/gpl3/gdb.old/lib/libgdb/../../dist/gdb/tui/tui-layout.c:1019
#5 0x01844d00 in tui_apply_current_layout ()
at /work/src/external/gpl3/gdb.old/lib/libgdb/../../dist/gdb/tui/tui-layout.c:81
#6 0x01845114 in tui_set_layout ()
at /work/src/external/gpl3/gdb.old/lib/libgdb/../../dist/gdb/tui/tui-layout.c:150
#7 0x01835c20 in tui_enable ()
at /work/src/external/gpl3/gdb.old/lib/libgdb/../../dist/gdb/tui/tui.c:452
Should be simple to fix, is there a PR?
Martin
Home |
Main Index |
Thread Index |
Old Index