Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 27 Aug 2004 21:18:43 +0900 (JST)
From:      Hiroki Sato <hrs@FreeBSD.org>
To:        sparc64@FreeBSD.org
Subject:   64bit time_t problem?
Message-ID:  <20040827.211843.08645408.hrs@eos.ocn.ne.jp>

next in thread | raw e-mail | index | archive | help
----Security_Multipart(Fri_Aug_27_21_18_43_2004_765)--
Content-Type: Text/Plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

Hi,

 I noticed that after the system clock set too far in the future,
 ntpdate could not reset it properly.  I tried the following (on 5.3-BETA1):

 # date 207008270000 ; ntpdate 192.168.100.1 ; date
 Wed Aug 27 00:00:00 JST 2070
 Looking for host 192.168.100.1 and service ntp
 host found : xxx.allbsd.org
 27 Aug 21:00:13 ntpdate[552]: step time server 192.168.100.1 offset -;0446744071497267106.746178 sec
 Fri Aug 27 21:00:13 JST 2004

 # date 210008270000 ; ntpdate 192.168.100.1 ; date
 Fri Aug 27 00:00:00 JST 2100
 Looking for host 192.168.100.1 and service ntp
 host found : xxx.allbsd.org
  4 Oct 03:26:57 ntpdate[521]: step time server 192.168.100.1 offset 1265599617.382757 sec
 Tue Oct  4 03:26:57 JST 2140

 # date 227008270000 ; ntpdate 192.168.100.1 ; date
 Password:
 Sat Aug 27 00:00:00 JST 2270
 Looking for host 192.168.100.1 and service ntp
 host found : xxx.allbsd.org
 10 Nov 09:57:37 ntpdate[564]: step time server 192.168.100.1 offset 195904656.965267 sec
 Fri Nov 10 09:57:37 JST 2276

 The time set by ntpdate has a period of about 136 years depending on
 the previous time.

 I think this is problematic because the system clock can go wrong
 when the box is left in a power-off state, for example.  Probably
 the time is handled in 32-bit somewhere, but I am not sure where it is.

 Is this a known problem or is there some workaround?

-- 
| Hiroki SATO

----Security_Multipart(Fri_Aug_27_21_18_43_2004_765)--
Content-Type: application/pgp-signature
Content-Transfer-Encoding: 7bit

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (FreeBSD)

iD8DBQBBLyajTyzT2CeTzy0RAtZ0AJ9y1T3B3pDq3U9QVlCX9TtuXnoskACgjagr
moNuiBmMFgF8slTASTqaIaQ=
=XNeS
-----END PGP SIGNATURE-----

----Security_Multipart(Fri_Aug_27_21_18_43_2004_765)----



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