Bug 1035590 - network:utilities/mtr: Segmentation fault
Summary: network:utilities/mtr: Segmentation fault
Status: RESOLVED DUPLICATE of bug 1033198
Alias: None
Product: openSUSE.org
Classification: openSUSE
Component: 3rd party software (show other bugs)
Version: unspecified
Hardware: Other SUSE Other
: P5 - None : Normal (vote)
Target Milestone: ---
Assignee: Kristyna Streitova
QA Contact: E-mail List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-04-22 16:16 UTC by Sebastian Wagner
Modified: 2017-04-23 20:33 UTC (History)
1 user (show)

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sebastian Wagner 2017-04-22 16:16:29 UTC
On my openSUSE TW installation I get a Segfault for mtr right away:

> sudo mtr localhost
Segmentation fault

For --help and --version this does not happen.

With gdb I get this:

> sudo gdb mtr 
GNU gdb (GDB; openSUSE Tumbleweed) 7.12.1
Copyright (C) 2017 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-suse-linux".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://bugs.opensuse.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 mtr...Reading symbols from /usr/lib/debug/usr/sbin/mtr.debug...done.
done.
(gdb) run localhost
Starting program: /usr/sbin/mtr localhost

Program received signal SIGSEGV, Segmentation fault.
_nc_init_acs_sp (sp=sp@entry=0x555555aa5750) at ../ncurses/tinfo/lib_acs.c:95
95	../ncurses/tinfo/lib_acs.c: No such file or directory.
(gdb) backtrace
#0  _nc_init_acs_sp (sp=sp@entry=0x555555aa5750) at ../ncurses/tinfo/lib_acs.c:95
#1  0x00007ffff769e9c0 in _nc_setupscreen_sp (spp=spp@entry=0x7fffffffe968, slines=<optimized out>, scolumns=<optimized out>, 
    output=output@entry=0x7ffff72535e0 <_IO_2_1_stdout_>, filtered=<optimized out>, slk_format=slk_format@entry=0) at ../ncurses/base/lib_set_term.c:582
#2  0x00007ffff769ab11 in newterm_sp (sp=<optimized out>, name=name@entry=0x7fffffffefac "xterm", ofp=<optimized out>, ifp=<optimized out>)
    at ../ncurses/base/lib_newterm.c:221
#3  0x00007ffff769b04c in newterm (name=name@entry=0x7fffffffefac "xterm", ofp=<optimized out>, ifp=<optimized out>) at ../ncurses/base/lib_newterm.c:351
#4  0x00007ffff7697206 in initscr () at ../ncurses/base/lib_initscr.c:87
#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
Comment 1 Sebastian Wagner 2017-04-22 16:19:46 UTC
With mtr I get a segementation fault right away:

> sudo mtr example.com
Segmentation fault


> sudo gdb mtr 
GNU gdb (GDB; openSUSE Tumbleweed) 7.12.1
Copyright (C) 2017 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-suse-linux".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://bugs.opensuse.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 mtr...Reading symbols from /usr/lib/debug/usr/sbin/mtr.debug...done.
done.
(gdb) run example.com
Starting program: /usr/sbin/mtr localhost

Program received signal SIGSEGV, Segmentation fault.
_nc_init_acs_sp (sp=sp@entry=0x555555aa5750) at ../ncurses/tinfo/lib_acs.c:95
95	../ncurses/tinfo/lib_acs.c: No such file or directory.
(gdb) backtrace
#0  _nc_init_acs_sp (sp=sp@entry=0x555555aa5750) at ../ncurses/tinfo/lib_acs.c:95
#1  0x00007ffff769e9c0 in _nc_setupscreen_sp (spp=spp@entry=0x7fffffffe968, slines=<optimized out>, scolumns=<optimized out>, 
    output=output@entry=0x7ffff72535e0 <_IO_2_1_stdout_>, filtered=<optimized out>, slk_format=slk_format@entry=0) at ../ncurses/base/lib_set_term.c:582
#2  0x00007ffff769ab11 in newterm_sp (sp=<optimized out>, name=name@entry=0x7fffffffefac "xterm", ofp=<optimized out>, ifp=<optimized out>)
    at ../ncurses/base/lib_newterm.c:221
#3  0x00007ffff769b04c in newterm (name=name@entry=0x7fffffffefac "xterm", ofp=<optimized out>, ifp=<optimized out>) at ../ncurses/base/lib_newterm.c:351
#4  0x00007ffff7697206 in initscr () at ../ncurses/base/lib_initscr.c:87
#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
Comment 2 Kristyna Streitova 2017-04-23 20:33:41 UTC
Hello Sebastian,

Thank you for your report but it seems that it is a duplicate of bug 1033198. The fix is on its way to openSUSE:Factory.

*** This bug has been marked as a duplicate of bug 1033198 ***