On Wed, Nov 27, 2002 at 08:59:08AM -0800, Ryan T. Sammartino wrote:
>
> I now get
>
> # netstat -p
> ...
> Segmentation fault
Here is some more info:
(gdb) run -p
Starting program: /bin/netstat -p
Active Internet connections (w/o servers)
Proto Recv-Q Send-Q Local Address Foreign Address
State PID/Program name
tcp 0 0 x.x.x.x:xxxxx x.x.x.x:x
ESTABLISHED -
tcp 0 0 x.x.x.x:xxxxx x.x.:x
ESTABLISHED -
Active UNIX domain sockets (w/o servers)
Proto RefCnt Flags Type State I-Node PID/Program
name Path
(no debugging symbols found)...
Program received signal SIGSEGV, Segmentation fault.
0x0804dd60 in strcpy ()
(gdb) bt
#0 0x0804dd60 in strcpy ()
#1 0x0805a3d0 in _IO_stdin_used ()
#2 0x0804b46d in strcpy ()
#3 0x08049f28 in strcpy ()
#4 0x400423e2 in __libc_start_main () from /lib/i686/libc.so.6
Here are the last few lines of strace /bin/netstat -p:
write(1, "Proto RefCnt Flags Type "..., 82Proto RefCnt Flags
Type State I-Node PID/Program name Path
) = 82
open("/proc/net/unix", O_RDONLY) = 3
fstat64(3, {st_mode=S_IFREG|0444, st_size=0, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
0) = 0x40023000
read(3, "Num RefCount Protocol Flag"..., 4096) = 4096
--- SIGSEGV (Segmentation fault) ---
+++ killed by SIGSEGV +++
--
Ryan T. Sammartino
http://members.shaw.ca/ryants/
Never put off until tomorrow what you can do today. There might be a
law against it by that time.