From owner-freebsd-stable@FreeBSD.ORG Fri Jun 27 17:43:21 2003 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 13B6337B401 for ; Fri, 27 Jun 2003 17:43:21 -0700 (PDT) Received: from gargoyle.bazzle.com (dhcp9551060.columbus.rr.com [24.95.51.60]) by mx1.FreeBSD.org (Postfix) with SMTP id 176A14400B for ; Fri, 27 Jun 2003 17:43:20 -0700 (PDT) (envelope-from ejc@bazzle.com) Received: (qmail 29906 invoked by uid 1000); 28 Jun 2003 00:43:19 -0000 Received: from localhost (sendmail-bs@127.0.0.1) by localhost with SMTP; 28 Jun 2003 00:43:19 -0000 Date: Fri, 27 Jun 2003 20:43:19 -0400 (EDT) From: "Eric J. Chet" To: David Landgren In-Reply-To: <3EFB5090.9040704@landgren.net> Message-ID: <20030627204249.V29870-100000@gargoyle.bazzle.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=X-UNKNOWN cc: freebsd-stable@freebsd.org Subject: Re: garbled top display X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 28 Jun 2003 00:43:21 -0000 Hello I found it, I had a very old version of top in my path. Thanks, Eric On Thu, 26 Jun 2003, David Landgren wrote: > Eric J. Chet wrote: > [...] > >>> Just a sanity check. I'm seeing a garbled display with top. I > >>>rebuild kernel and world a couple times, I even rm -rf /usr/include to > >>>make sure I was up to date. Anybody else seeing this? > >> > >>Define garbled. > >> > >>Thanks, > >>David > >> > > > > > > Sure .... > > > > Script started on Mon Jun 23 10:39:06 2003 > > bash-2.05a$ top > > last pid: 3359; load averages: 0.06, 0.02, 0.00 up 1+13:20:4210:39:09 > > 10 processes: 1 running > > CPU states: % user, % nice, % system, % interrupt, % idle > > Mem: 16M Active, 55M Inact, 26M Wired, 8748K Cache, 22M Buf, 15M Free > > Swap: 256M Total, 52K Used, 256M Free > > > > PID USERNAME PRI NICE SIZE RES STATE TIME WCPU CPU COMMAND > > 1 '++*00'* -22 -52 0K 0K ? -128 ??? 0.15% 0.15% <> > > 968972 root -22 -52 3083M 0K ? 6 ??? 0.00% 0.05% <> > [... etc etc ...] > > wow. > > I've seen garbled top displays before, like the RES going -ve or things > like that. But never anything like this. I am reminded of the scene in > Poltergeist, where the couple get a paranormal expert into the house to > take a look, and he natters on about how he saw a toy car roll across a > room over the space of six hours... and then they open the door... > > It looks to me like your structs are out of whack, and so when top comes > along to read an element of a struct, it's using the wrong offset from > base, and hence printf (or whatever) renders garbage. I.e., as if > different headers are used in compiling the kernel and the rest. > > Does ps give reasonable output? Are you sure you really cleaned out > /usr/src before recompiling? Has the compiler been upgraded recently? > > David > Eric Chet -> echet@Trilegiant.com, ejc@bazzle.com, ejc@kenpo-jujitsu.com Technical Lead/Architect Trilegiant Inc. Distributed OO Systems, J2EE, CORBA Kenpo-JuJitsu the Ultimate in Self Defense, Tracy's System, Tai Chi for Life ejc@FreeBSD.org -> "Live Free or Die"