ss crashes when using --no-header
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
iproute2 (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
Bionic |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
Steps to reproduce:
1) Listen on port 8989:
$ nc -l 8989 &
2) Check that ss can list this listener:
$ ss --no-header -nto state listening 'sport = 8989'
0 1 0.0.0.0:8989 0.0.0.0:*
3) Ask ss to list listeners on a port where nothing listens
$ kill %1 # stops nc
$ ss --no-header -nto state listening 'sport = 8989'
Segmentation fault (core dumped)
In the above, removing "--no-header" avoids the segfault.
Additional information:
$ lsb_release -rd
Description: Ubuntu 18.04.1 LTS
Release: 18.04
$ apt-cache policy iproute2
iproute2:
Installed: 4.15.0-2ubuntu1
Candidate: 4.15.0-2ubuntu1
Version table:
*** 4.15.0-2ubuntu1 500
500 http://
100 /var/lib/
ProblemType: Bug
DistroRelease: Ubuntu 18.04
Package: iproute2 4.15.0-2ubuntu1
ProcVersionSign
Uname: Linux 4.15.0-32-generic x86_64
NonfreeKernelMo
ApportVersion: 2.20.9-0ubuntu7.2
Architecture: amd64
CurrentDesktop: ubuntu:GNOME
Date: Thu Aug 16 08:17:52 2018
InstallationDate: Installed on 2018-07-15 (32 days ago)
InstallationMedia: Ubuntu 18.04 LTS "Bionic Beaver" - Release amd64 (20180714)
ProcEnviron:
TERM=xterm-
PATH=(custom, no user)
XDG_RUNTIME_
LANG=en_CA.UTF-8
SHELL=/bin/bash
SourcePackage: iproute2
UpgradeStatus: No upgrade log present (probably fresh install)
tags: | added: cosmic |
Status changed to 'Confirmed' because the bug affects multiple users.