[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Crash with mtr and latest ncurses
From: |
Dr. Werner Fink |
Subject: |
Crash with mtr and latest ncurses |
Date: |
Mon, 10 Apr 2017 12:46:37 +0200 |
User-agent: |
Mutt/1.6.2 (2016-07-01) |
Hi,
the crash does happen in _nc_init_acs_sp() of ncurses/tinfo/lib_acs.c
gdb --args ./mtr 127.0.0.1
[...]
(gdb) run
Starting program: /home/abuild/rpmbuild/BUILD/mtr-0.87/mtr 127.0.0.1
[...]
Program received signal SIGSEGV, Segmentation fault.
_nc_init_acs_sp (address@hidden) at ../ncurses/tinfo/lib_acs.c:95
95 real_map[j] = 0;
(gdb) list
90 * the mapping information in the SCREEN struct so we can decide
how to
91 * render it.
92 */
93 if (real_map != fake_map) {
94 for (j = 1; j < ACS_LEN; ++j) {
95 real_map[j] = 0;
96 fake_map[j] = A_ALTCHARSET | (chtype) j;
97 if (SP_PARM)
98 SP_PARM->_screen_acs_map[j] = FALSE;
99 }
(gdb) print real_map
$1 = (chtype *) 0x0
(gdb)
(gdb) bt
#0 _nc_init_acs_sp (address@hidden) at ../ncurses/tinfo/lib_acs.c:95
#1 0x00007ffff769ea30 in _nc_setupscreen_sp (address@hidden,
slines=<optimized out>, scolumns=<optimized out>,
address@hidden <_IO_2_1_stdout_>, filtered=<optimized out>,
address@hidden) at ../ncurses/base/lib_set_term.c:586
#2 0x00007ffff769ab81 in newterm_sp (sp=<optimized out>, address@hidden
"xterm", ofp=<optimized out>, ifp=<optimized out>)
at ../ncurses/base/lib_newterm.c:222
#3 0x00007ffff769b0bc in newterm (address@hidden "xterm", ofp=<optimized
out>, ifp=<optimized out>) at ../ncurses/base/lib_newterm.c:352
#4 0x00007ffff7697276 in initscr () at ../ncurses/base/lib_initscr.c:89
#5 0x0000555555559e0d in mtr_curses_open () at curses.c:700
#6 0x0000555555560b11 in display_open () at display.c:101
#7 0x0000555555557e81 in main (argc=<optimized out>, argv=<optimized out>) at
mtr.c:779
Werner
--
"Having a smoking section in a restaurant is like having
a peeing section in a swimming pool." -- Edward Burr
signature.asc
Description: PGP signature
- Crash with mtr and latest ncurses,
Dr. Werner Fink <=