From owner-freebsd-current Wed Sep 9 04:49:36 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id EAA29506 for freebsd-current-outgoing; Wed, 9 Sep 1998 04:49:36 -0700 (PDT) (envelope-from owner-freebsd-current@FreeBSD.ORG) Received: from ifi.uio.no (ifi.uio.no [129.240.64.2]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id EAA29498 for ; Wed, 9 Sep 1998 04:49:33 -0700 (PDT) (envelope-from dag-erli@ifi.uio.no) Received: from hrotti.ifi.uio.no (2602@hrotti.ifi.uio.no [129.240.64.15]) by ifi.uio.no (8.8.8/8.8.7/ifi0.2) with ESMTP id NAA28004; Wed, 9 Sep 1998 13:49:14 +0200 (MET DST) Received: (from dag-erli@localhost) by hrotti.ifi.uio.no ; Wed, 9 Sep 1998 13:49:13 +0200 (MET DST) Mime-Version: 1.0 To: dmaddox@scsn.net Cc: freebsd-current@FreeBSD.ORG Subject: Re: vmstat/iostat dumping all over the place References: <199809090141.SAA11928@mordred.cs.ucla.edu> <19980908232542.A296@scsn.net> Organization: University of Oslo, Department of Informatics X-url: http://www.stud.ifi.uio.no/~dag-erli/ X-other-addresses: 'finger dag-erli@ifi.uio.no' for a list X-disclaimer-1: The views expressed in this article are mine alone, and do X-disclaimer-2: not necessarily coincide with those of any organisation or X-disclaimer-3: company with which I am or have been affiliated. X-Stop-Spam: http://www.cauce.org/ From: dag-erli@ifi.uio.no (Dag-Erling =?iso-8859-1?Q?Co=EFdan?= =?iso-8859-1?Q?Sm=F8rgrav?= ) Date: 09 Sep 1998 13:49:10 +0200 In-Reply-To: dmaddox@scsn.net's message of "Tue, 8 Sep 1998 23:25:42 +0000" Message-ID: Lines: 16 X-Mailer: Gnus v5.5/Emacs 19.34 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by hub.freebsd.org id EAA29499 Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG dmaddox@scsn.net (Donald J. Maddox) writes: > On Tue, Sep 08, 1998 at 06:41:42PM -0700, Scott Michel wrote: > > I zapped the message which identified the problem. It looks like > > there is a missing 0 or NULL at the end of the defnames[] array > > in src/usr.bin/vmstat/names.c. > It would be interesting if someone could explain why this code worked > fine when compiled as aout, but barfed when compiled as ELF... Probably because of some freak coincidence related to padding or something like that resulted in the bytes immediately after the defdrives array being all-bits-zero, so it would appear like there was a NULL at the end. DES -- Dag-Erling Smørgrav - dag-erli@ifi.uio.no To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message