From owner-freebsd-current Tue Sep 8 13:01:05 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id NAA03897 for freebsd-current-outgoing; Tue, 8 Sep 1998 13:01:05 -0700 (PDT) (envelope-from owner-freebsd-current@FreeBSD.ORG) Received: from wanadoo.fr (smtp-out-2.wanadoo.fr [193.252.19.69]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id NAA03888 for ; Tue, 8 Sep 1998 13:00:57 -0700 (PDT) (envelope-from root@wanadoo.fr) Received: from root@tamaya.wanadoo.fr [193.252.19.31] by wanadoo.fr for Paris Tue, 8 Sep 1998 22:00:02 +0200 (MET DST) Received: from nev1-59.abo.wanadoo.fr [193.252.144.59] by smtp.wanadoo.fr for Paris Tue, 8 Sep 1998 22:00:00 +0200 (MET DST) Received: (from root@localhost) by sequoia.mondomaineamoi.megalo (8.9.1/8.9.1) id VAA05046; Tue, 8 Sep 1998 21:51:40 +0200 (CEST) (envelope-from root) Date: Tue, 8 Sep 1998 21:51:40 +0200 (CEST) Message-Id: <199809081951.VAA05046@sequoia.mondomaineamoi.megalo> From: Stephane Legrand MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: Ben Smithurst Subject: Re: Bus error with vmstat In-Reply-To: <19980908010911.A7278@scientia.demon.co.uk> References: <199809072209.AAA03457@sequoia.mondomaineamoi.megalo> <19980908010911.A7278@scientia.demon.co.uk> X-Mailer: VM 6.34 under 20.3 "Vatican City" XEmacs Lucid Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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