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@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@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
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/225573

Title:
  iproute: ss -u segfaults if ipv6 module is not loaded

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/iproute/+bug/225573/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to