Subject: Re: Still seeing problems with "time cmd"
To: None <Richard.Earnshaw@buzzard.freeserve.co.uk>
From: Jukka Marin <jmarin@embedtronics.fi>
List: tech-kern
Date: 05/30/2003 08:17:37
On Fri, May 30, 2003 at 12:47:44AM +0100, Richard Earnshaw wrote:
> > David, time for another scan over the time gathering code I think...
> > 
> > I've just done a bootstrap of gcc (from the trunk) on a NetBSD snapshot 
> > that I built at the weekend and got the following output times:
> > 
> > User: -2147438122.41
> > System: -2147473797.07
> > Elapsed: 54569.25
> 
> -2147438122 as a hex number is 0x8000b1d6 and 0xb1d6 (the bottom four 
> digits) in decimal is 45526 which is roughly what I would have expected 
> the User time to be.
> 
> So my guess is that this might be a 32->64 bit time roll-over race 
> somewhere...

Could it also cause this (from ps):

root   24057  0.0  0.3   812  1352 ??  Ss   21May03  -1:-17.00 sendmail: accepting connections 
jmarin 27294  0.0  0.0   112   200 p9  S+   14May03   1:38.21 ./mon -t /ser/4 -b 38400 -m 
nobody 26744  0.0  0.0    16     4 ??  SWs        -   0:00.00 (unlinkd) (unlinkd)
nobody 26738  0.0  6.6 45036 34448 ??  S    14May03 -10:-53.38 (squid) -Y -f /usr/pkg/etc/squid/squid.conf (squid)
root   26736  0.0  0.0  1680     4 ??  IWs        -   0:00.00 /usr/pkg/sbin/squid -Y -f /usr/pkg/etc/squid/squid.conf 
jmarin  5552  0.0  0.1   340   584 p5  S+    9May03   0:-21.43 screen -r (screen-3.9.11)

jmarin@kyyhky ~ %(849)uname -v
NetBSD 1.6.1 (KYYHKY16) #0: Sun Apr  6 14:37:44 EEST 2003 jmarin@pyy:/tmp/nb/src/sys/arch/i386/compile/KYYHKY16

  -jm