iproute: ss -u segfaults if ipv6 module is not loaded
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
iproute (CentOS) |
Fix Released
|
Low
|
|||
iproute (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: iproute
ss command (kind of netstat from iproute package) fails when requested to display
udp sockets. I have blacklisted ipv6 module in /etc/modprobe.d.
Release: 8.04
iproute:
Installed: 20071016-2ubuntu1
Candidate: 20071016-2ubuntu1
Version table:
*** 20071016-2ubuntu1 0
500 http://
100 /var/lib/
Example output:
$ ss -un
State Recv-Q Send-Q Local Address:Port Peer Address:Port
ESTAB 0 0 x.x.x.x:46860 x.x.x.x:123
ESTAB 0 0 x.x.x.x:46869 x.x.x.x:123
ESTAB 0 0 x.x.x.x:46646 x.x.x.x:123
ESTAB 0 0 x.x.x.x:43324 x.x.x.x:123
ESTAB 0 0 x.x.x.x:58233 x.x.x.x:123
Segmentation fault
See the attachment for strace listing. It segfaults after trying to open /proc/net/upd6.
In Gutsy I remember using it without any problems.
Changed in iproute (CentOS): | |
status: | Unknown → Fix Released |
tags: | added: ipv6 |
Changed in iproute (CentOS): | |
importance: | Unknown → Low |
Running "PROC_NET_ UDP6=/foobar/ non-exist ss -un" works just fine. The problem is not about a missing proc file.
Jukka:
Could you please get a gdb backtrace? strace is mostly useless for hunting down segmentation faults.
To get a useful backtrace you most likely need to rebuild with debugging symbols. Try this:
apt-get install build-essential
cd /tmp
apt-get source iproute
cd iproute-*
apt-get build-dep iproute
make
gdb ./misc/ss
set args -un
run
bt