Date: Tue, 8 Sep 1998 21:51:40 +0200 (CEST) From: Stephane Legrand <Stephane.Legrand@wanadoo.fr> To: Ben Smithurst <ben@scientia.demon.co.uk> Subject: Re: Bus error with vmstat Message-ID: <199809081951.VAA05046@sequoia.mondomaineamoi.megalo> In-Reply-To: <19980908010911.A7278@scientia.demon.co.uk> References: <199809072209.AAA03457@sequoia.mondomaineamoi.megalo> <19980908010911.A7278@scientia.demon.co.uk>
next in thread | previous in thread | raw e-mail | index | archive | help
Ben Smithurst writes:
> Stephane Legrand wrote:
>
> > Each time i try the command "vmstat", i get only a "Bus error" and
> > that's all. This is on -current cvsupped at 7th September.
>
> I was just about to report the same thing. I get the same with iostat -
> do you get that too?
>
Yes. Both vmstat and iostat do that. I've done again a cvsup today and
there is no changes.
bash# ldd `which iostat`
/usr/sbin/iostat:
libkvm.so.2 => /usr/lib/libkvm.so.2 (0x28052000)
libc.so.3 => /usr/lib/libc.so.3 (0x28057000)
bash# ldd `which vmstat`
/usr/bin/vmstat:
libkvm.so.2 => /usr/lib/libkvm.so.2 (0x28053000)
libc.so.3 => /usr/lib/libc.so.3 (0x28058000)
> I compiled with the -g option to gcc, and tried getting something out
> of gdb, but I don't know much about it. :-( Here's something if it helps
> anyone work out what could be going wrong...
>
> === root@scientia[p0]:/src/usr.bin/vmstat# gdb vmstat
> GDB is free software and you are welcome to distribute copies of it
> under certain conditions; type "show copying" to see the conditions.
> There is absolutely no warranty for GDB; type "show warranty" for details.
> GDB 4.16 (i386-unknown-freebsd),
> Copyright 1996 Free Software Foundation, Inc...
> (gdb) run
> Starting program: /usr/src/usr.bin/vmstat/vmstat
>
> Program received signal SIGBUS, Bus error.
> 0x280ab2ba in strcmp ()
> (gdb) backtrace
> #0 0x280ab2ba in strcmp ()
> #1 0x8049063 in getdrivedata (argv=0xefbfdbc0) at vmstat.c:361
> #2 0x8048dca in main (argc=1, argv=0xefbfdbbc) at vmstat.c:270
> #3 0x8048a0d in _start ()
> (gdb) The program is running. Quit anyway (and kill it)? (y or n) y
>
bash# gdb ./iostat
(gdb) run
Starting program: /usr/src/usr.sbin/iostat/./iostat
Program received signal SIGBUS, Bus error.
0x280aa6fa in strcmp ()
(gdb) bt
#0 0x280aa6fa in strcmp ()
#1 0x8048d67 in main (argc=1, argv=0xefbfdb10) at iostat.c:260
#2 0x8048829 in _start ()
bash# gdb ./vmstat
(gdb) run
Starting program: /usr/src/usr.bin/vmstat/./vmstat
Program received signal SIGBUS, Bus error.
0x280ab6fa in strcmp ()
(gdb) bt
#0 0x280ab6fa in strcmp ()
#1 0x8049063 in getdrivedata (argv=0xefbfdb10) at vmstat.c:361
#2 0x8048dca in main (argc=1, argv=0xefbfdb0c) at vmstat.c:270
#3 0x8048a0d in _start ()
The aout versions work well. We have exactly the same problem.
--
Stephane.Legrand@wanadoo.fr | systeme d'exploitation FreeBSD
http://perso.wanadoo.fr/stephane.legrand/ | http://www.freebsd.org/
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199809081951.VAA05046>
