[patch] netstat: got bogus unix line...

Denys Vlasenko vda.linux at googlemail.com
Wed Dec 26 11:53:23 PST 2007


On Tuesday 25 December 2007 16:34, Cristian Ionescu-Idbohrn wrote:
> On Tue, 25 Dec 2007, Denys Vlasenko wrote:
> > On Tuesday 25 December 2007 12:08, Cristian Ionescu-Idbohrn wrote:
> > > Seen a case when bb-netstat will output:
> > >
> > >   prompt> ./busybox netstat -lanx
> > >   ...
> > >   unix  2      [ ACC ]     STREAM     LISTENING      14220
> > > private/mailman unix  2      [ ]         DGRAM                    
> > > 14954 @
> > >   netstat: got bogus unix line 'prompt>
> >
> > Can you run "strace -o log -s 512 <cmd>" and post the log?
>
> Yes.  But it's too big.  Let's see if attached few lines of /proc/net/unix
> will suffice.

This line is especially ugly:

f7ab6280: 00000002 00000000 00000000 0002 01 14954 @^@^@^@.^R^@^@x*

I think you have to retest it with latest kernel
and if it happens there too, report the bug to kernel mailing list.


This is what returned by fgets_malloc (in <> braces):

netstat: <f425d100: 00000002 00000000 00010000 0001 01 14216 private/scalemail-backend
>
netstat: <f421d980: 00000002 00000000 00010000 0001 01 14220 private/mailman
>
netstat: <f7ab6280: 00000002 00000000 00000000 0002 01 14954 @>
netstat: <>
netstat: <>
netstat: <.^R>
netstat: got bogus unix line '.^R'
netstat: <>
netstat: <x*
>
netstat: got bogus unix line 'x*'
netstat: <>
netstat: <>
...
...
netstat: <>
netstat: <>
netstat: <
>
netstat: <f42f0980: 00000002 00000000 00010000 0001 01 14164 private/relay
>
netstat: <dfa74500: 0000001B 00000000 00000000 0002 01 12614 /dev/log
>
netstat: <f3c5da80: 00000002 00000000 00010000 0001 01 13133 /var/run/dbus/system_bus_socket
>

It will be not trivial to fix.
--
vda


More information about the busybox mailing list