garbled top display
Eric J. Chet
ejc at bazzle.com
Fri Jun 27 17:43:21 PDT 2003
I found it, I had a very old version of top in my path.
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.
> > Sure ....
> > Script started on Mon Jun 23 10:39:06 2003
> > bash-2.05a$ top
> > [H[2Jlast pid: 3359; load averages: 0.06, 0.02, 0.00[1;56H up 1+13:20:42[1;72H10: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 ...]
> 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?
Eric Chet -> echet at Trilegiant.com, ejc at bazzle.com, ejc at 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 at FreeBSD.org -> "Live Free or Die"
More information about the freebsd-stable