Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
For bugs related to Red Hat Enterprise Linux 5 product line. The current stable release is 5.10. For Red Hat Enterprise Linux 6 and above, please visit Red Hat JIRA https://issues.redhat.com/secure/CreateIssue!default.jspa?pid=12332745 to report new issues.

Bug 493622

Summary: ss segfaults when ipv6 is disabled
Product: Red Hat Enterprise Linux 5 Reporter: Ralph Angenendt <ralph>
Component: iprouteAssignee: Marcela Mašláňová <mmaslano>
Status: CLOSED DUPLICATE QA Contact: BaseOS QE <qe-baseos-auto>
Severity: medium Docs Contact:
Priority: low    
Version: 5.3CC: misho
Target Milestone: rc   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2009-04-07 09:27:26 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Ralph Angenendt 2009-04-02 12:43:25 UTC
Description of problem:

When using the ss binary from the iproute package on a machine with ipv6 disabled, ss segfaults.

Version-Release number of selected component (if applicable):

iproute-2.6.18-10.el5

How reproducible:

Always

Steps to Reproduce:

[root@localhost ~]# ss
State      Recv-Q Send-Q      Local Address:Port          Peer Address:Port   
Segmentation fault
[root@localhost ~]# strace ss
execve("/usr/sbin/ss", ["ss"], [/* 17 vars */]) = 0
brk(0)                                  = 0x856b000
access("/etc/ld.so.preload", R_OK)      = -1 ENOENT (No such file or directory)
open("/etc/ld.so.cache", O_RDONLY)      = 3

[...]
close(4)                                = 0
open("/proc/net/tcp6", O_RDONLY)        = -1 ENOENT (No such file or directory)
--- SIGSEGV (Segmentation fault) @ 0 (0) ---
+++ killed by SIGSEGV +++

[root@localhost ~]# rm /etc/modprobe.d/disable-ipv6 && modprobe ipv6
[root@localhost ~]# ss
State      Recv-Q Send-Q      Local Address:Port          Peer Address:Port   
[root@localhost ~]# exit

Actual results:

ss segfaults

Expected results:

ss does not segfault

Comment 1 Marcela Mašláňová 2009-04-07 09:27:26 UTC

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