fstat segfault

Pavel Gulchouck gul at gul.kiev.ua
Sun Sep 5 06:37:50 PDT 2004


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 at 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.


More information about the freebsd-current mailing list