Skip site navigation (1)Skip section navigation (2)
Date:      09 Sep 1998 13:49:10 +0200
From:      dag-erli@ifi.uio.no (Dag-Erling =?iso-8859-1?Q?Co=EFdan?=  =?iso-8859-1?Q?Sm=F8rgrav?= )
To:        dmaddox@scsn.net
Cc:        freebsd-current@FreeBSD.ORG
Subject:   Re: vmstat/iostat dumping all over the place
Message-ID:  <xzphfyhld55.fsf@hrotti.ifi.uio.no>
In-Reply-To: dmaddox@scsn.net's message of "Tue, 8 Sep 1998 23:25:42 %2B0000"
References:  <199809090141.SAA11928@mordred.cs.ucla.edu> <19980908232542.A296@scsn.net>

next in thread | previous in thread | raw e-mail | index | archive | help
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



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