This is the mail archive of the gdb-prs@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug tui/22928] New: SIGSEV on `gdb -tui`


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

            Bug ID: 22928
           Summary: SIGSEV on `gdb -tui`
           Product: gdb
           Version: 8.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: tui
          Assignee: unassigned at sourceware dot org
          Reporter: hazelnusse at gmail dot com
  Target Milestone: ---

This is with gdb-8.1 and ncurses-6.1-r1, both installed under Gentoo. I get the
following:

[I] ~> gdb -tui
fish: “gdb -tui” terminated by signal SIGSEGV (Address boundary error)
[I] ~> gdb --args gdb -tui
GNU gdb (Gentoo 8.1 p1) 8.1
Copyright (C) 2018 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-pc-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<https://bugs.gentoo.org/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from gdb...Reading symbols from
/usr/lib/debug//usr/bin/gdb.debug...done.
done.
(gdb) run
Starting program: /usr/bin/gdb -tui
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".

Program received signal SIGSEGV, Segmentation fault.
has_colors_sp (sp=sp@entry=0x5555560f1f70) at
/usr/src/debug/sys-libs/ncurses-6.1-r1/ncurses-6.1/ncurses/base/lib_color.c:822
822                          || set_color_pair)) ? TRUE : FALSE);
(gdb) bt
#0  has_colors_sp (sp=sp@entry=0x5555560f1f70) at
/usr/src/debug/sys-libs/ncurses-6.1-r1/ncurses-6.1/ncurses/base/lib_color.c:822
#1  0x00007ffff7318837 in _nc_setupscreen_sp (spp=spp@entry=0x7fffffffdfa8,
slines=<optimized out>, scolumns=<optimized out>,
output=output@entry=0x7ffff6434740 <_IO_2_1_stdout_>, filtered=<optimized out>,
slk_format=slk_format@entry=0)
    at
/usr/src/debug/sys-libs/ncurses-6.1-r1/ncurses-6.1/ncurses/base/lib_set_term.c:508
#2  0x00007ffff7313ece in newterm_sp (sp=<optimized out>, name=name@entry=0x0,
ofp=ofp@entry=0x7ffff6434740 <_IO_2_1_stdout_>, ifp=ifp@entry=0x7ffff64339e0
<_IO_2_1_stdin_>)
    at
/usr/src/debug/sys-libs/ncurses-6.1-r1/ncurses-6.1/ncurses/base/lib_newterm.c:222
#3  0x00007ffff7314358 in newterm (name=name@entry=0x0, ofp=0x7ffff6434740
<_IO_2_1_stdout_>, ifp=0x7ffff64339e0 <_IO_2_1_stdin_>) at
/usr/src/debug/sys-libs/ncurses-6.1-r1/ncurses-6.1/ncurses/base/lib_newterm.c:355
#4  0x0000555555651835 in tui_enable () at tui/tui.c:427
#5  0x00005555557e1543 in captured_main_1 (context=<optimized out>) at
main.c:960
#6  captured_main (data=<optimized out>) at main.c:1146
#7  gdb_main (args=<optimized out>) at main.c:1172
#8  0x00005555555eb10b in main (argc=<optimized out>, argv=<optimized out>) at
gdb.c:32
(gdb) p set_color_pair
No symbol "set_color_pair" in current context.
(gdb) p code
$1 = 0
(gdb) p set_a_background
No symbol "set_a_background" in current context.
(gdb) up
#1  0x00007ffff7318837 in _nc_setupscreen_sp (spp=spp@entry=0x7fffffffdfa8,
slines=<optimized out>, scolumns=<optimized out>,
output=output@entry=0x7ffff6434740 <_IO_2_1_stdout_>, filtered=<optimized out>,
slk_format=slk_format@entry=0)
    at
/usr/src/debug/sys-libs/ncurses-6.1-r1/ncurses-6.1/ncurses/base/lib_set_term.c:508
508         if (NCURSES_SP_NAME(has_colors) (NCURSES_SP_ARG)) {
(gdb) down
#0  has_colors_sp (sp=sp@entry=0x5555560f1f70) at
/usr/src/debug/sys-libs/ncurses-6.1-r1/ncurses-6.1/ncurses/base/lib_color.c:822
822                          || set_color_pair)) ? TRUE : FALSE);
(gdb) info locals
No locals.
(gdb) 

Without building with -O0 I'm not sure if I can root cause this further unless
somebody has further suggestions.

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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]