[Bug 225573] Re: iproute: ss -u segfaults if ipv6 module is not loaded
Bug Watch Updater
225573 at bugs.launchpad.net
Fri Oct 27 12:12:53 UTC 2017
Launchpad has imported 9 comments from the remote bug at
https://bugzilla.redhat.com/show_bug.cgi?id=493578.
If you reply to an imported comment from within Launchpad, your comment
will be sent to the remote bug automatically. Read more about
Launchpad's inter-bugtracker facilities at
https://help.launchpad.net/InterBugTracking.
------------------------------------------------------------------------
On 2009-04-02T10:41:39+00:00 Mihail wrote:
when i type
[root at myserver ~]# ss
State Recv-Q Send-Q Local Address:Port Peer Address:Port
ESTAB 0 0 10.1.0.12:ssh x.x.x.x:4172
ESTAB 0 0 10.1.0.12:mysql 10.1.0.11:34003
Segmentation fault
[root at myserver ~]#
When ipv6 is off
close(4) = 0
open("/proc/net/tcp6", O_RDONLY) = -1 ENOENT (No such file or directory)
--- SIGSEGV (Segmentation fault) @ 0 (0) ---
I try this on i386 and x86_64 and is the same error
Reply at:
https://bugs.launchpad.net/ubuntu/+source/iproute/+bug/225573/comments/5
------------------------------------------------------------------------
On 2009-04-02T10:47:42+00:00 Mihail wrote:
http://bugs.centos.org/view.php?id=3475
Reply at:
https://bugs.launchpad.net/ubuntu/+source/iproute/+bug/225573/comments/6
------------------------------------------------------------------------
On 2009-04-07T09:27:26+00:00 Marcela wrote:
*** Bug 493622 has been marked as a duplicate of this bug. ***
Reply at:
https://bugs.launchpad.net/ubuntu/+source/iproute/+bug/225573/comments/7
------------------------------------------------------------------------
On 2009-04-07T14:09:46+00:00 Marcela wrote:
You can use for the meantime: "ss -f inet"
After fixing previous problem "not showing all socket states" #446198 with upstream commit ab01dbbb94b8620c2bc85e30e107c3a9f0870a73 show up different bugs. On RHEL-5 machine could be seen this one, which could be fixed by upstream commit:
69cae645b28edbba53c8601ddeba01430e5e9da0
Reply at:
https://bugs.launchpad.net/ubuntu/+source/iproute/+bug/225573/comments/8
------------------------------------------------------------------------
On 2009-04-07T14:11:31+00:00 Marcela wrote:
Created attachment 338509
Upstream commit git 69cae645b28edbba53c8601ddeba01430e5e9da0
Reply at:
https://bugs.launchpad.net/ubuntu/+source/iproute/+bug/225573/comments/9
------------------------------------------------------------------------
On 2009-06-08T22:14:23+00:00 Roberto wrote:
In the function:
static FILE *generic_proc_open(const char *env, const char *name)
{
char store[128];
const char *p = getenv(env);
FILE *fp;
if (!p) {
p = getenv("PROC_ROOT") ? : "/proc";
snprintf(store, sizeof(store)-1, "%s/%s", p, name);
p = store;
}
return fopen(p, "r");
}
PROC_ROOT can be something longer than 128 and cause other segfault.
Reply at:
https://bugs.launchpad.net/ubuntu/+source/iproute/+bug/225573/comments/10
------------------------------------------------------------------------
On 2009-06-09T06:20:26+00:00 Marcela wrote:
(In reply to comment #7)
> In the function:
>
> static FILE *generic_proc_open(const char *env, const char *name)
> {
> char store[128];
> const char *p = getenv(env);
> FILE *fp;
> if (!p) {
> p = getenv("PROC_ROOT") ? : "/proc";
> snprintf(store, sizeof(store)-1, "%s/%s", p, name);
> p = store;
> }
>
> return fopen(p, "r");
> }
>
> PROC_ROOT can be something longer than 128 and cause other segfault.
If you have a reproducer for this problem, then please open a new bug.
This is different problem.
Reply at:
https://bugs.launchpad.net/ubuntu/+source/iproute/+bug/225573/comments/11
------------------------------------------------------------------------
On 2009-06-09T07:55:40+00:00 Roberto wrote:
(In reply to comment #8)
> (In reply to comment #7)
> > In the function:
> >
> > static FILE *generic_proc_open(const char *env, const char *name)
> > {
> > char store[128];
> > const char *p = getenv(env);
> > FILE *fp;
> > if (!p) {
> > p = getenv("PROC_ROOT") ? : "/proc";
> > snprintf(store, sizeof(store)-1, "%s/%s", p, name);
> > p = store;
> > }
> >
> > return fopen(p, "r");
> > }
> >
> > PROC_ROOT can be something longer than 128 and cause other segfault.
>
> If you have a reproducer for this problem, then please open a new bug. This is
> different problem.
I didn't see (i'm blind..) the snprintf out of bound comprobation and
the segfault was produced because the content of PROC_ROOT was an
invalid path (you fixed it in the last attachment).
Sorry.
Reply at:
https://bugs.launchpad.net/ubuntu/+source/iproute/+bug/225573/comments/12
------------------------------------------------------------------------
On 2009-10-21T11:04:45+00:00 errata-xmlrpc wrote:
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.
http://rhn.redhat.com/errata/RHBA-2009-1520.html
Reply at:
https://bugs.launchpad.net/ubuntu/+source/iproute/+bug/225573/comments/13
** Changed in: iproute (CentOS)
Importance: Unknown => Low
** Bug watch added: bugs.centos.org/ #3475
https://bugs.centos.org/view.php?id=3475
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to iproute in Ubuntu.
https://bugs.launchpad.net/bugs/225573
Title:
iproute: ss -u segfaults if ipv6 module is not loaded
Status in iproute package in Ubuntu:
Fix Released
Status in iproute package in CentOS:
Fix Released
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://fi.archive.ubuntu.com hardy/main Packages
100 /var/lib/dpkg/status
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.
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/iproute/+bug/225573/+subscriptions
More information about the foundations-bugs
mailing list