Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 5 Sep 2004 16:37:45 +0300
From:      Pavel Gulchouck <gul@gul.kiev.ua>
To:        current@freebsd.org
Subject:   fstat segfault
Message-ID:  <20040905133744.GZ3280@happy.kiev.ua>

next in thread | raw e-mail | index | archive | help
Hello.

I've found messages like
kernel: pid 92857 (fstat), uid 1016: exited on signal 11
on my syslog. On this machine fstat runs every 5 minutes
by mrtg. Simple test gives this result:

root@new-puma:~>while fstat >/dev/null; do echo -n '#'; done
############################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################Segmentation fault

It gets segfault on SMP systems, 5.3-BETA2 and 5.2.1-RELEASE-p9
and works correctly on single-cpu systems, but I'm not sure it's
a common rule.

Here's gdb output:

Program received signal SIGSEGV, Segmentation fault.
0x281453fd in bcopy () from /lib/libc.so.5
(gdb) bt
#0  0x281453fd in bcopy () from /lib/libc.so.5
#1  0x08049488 in dofiles (kp=0x8051ca8) at /usr/src/usr.bin/fstat/fstat.c:372
#2  0x08049228 in fstat_kvm (what=0, arg=0)
    at /usr/src/usr.bin/fstat/fstat.c:278
#3  0x08049264 in fstat_sysctl (what=0, arg=0)
    at /usr/src/usr.bin/fstat/fstat.c:289
#4  0x08048f83 in main (argc=1, argv=0xbfbfeb1c)
    at /usr/src/usr.bin/fstat/fstat.c:229

Any ideas?

-- 
                                Lucky carrier,
                                                  Pavel.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040905133744.GZ3280>