From owner-freebsd-questions@FreeBSD.ORG Tue Aug 26 22:25:58 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4BBC816A4BF for ; Tue, 26 Aug 2003 22:25:58 -0700 (PDT) Received: from possum.cryptohill.net (cambist.cryptohill.net [24.244.145.35]) by mx1.FreeBSD.org (Postfix) with ESMTP id 82AA443FFB for ; Tue, 26 Aug 2003 22:25:57 -0700 (PDT) (envelope-from edwin@woudt.nl) Received: from ABC1234567890 (unknown [24.244.145.60]) by possum.cryptohill.net (Postfix) with ESMTP id 5134FAE308 for ; Wed, 27 Aug 2003 01:25:54 -0400 (EDT) Date: Wed, 27 Aug 2003 01:23:43 -0400 From: Edwin Woudt To: freebsd-questions@freebsd.org Message-ID: <254324490.1061947423@ABC1234567890> X-Mailer: Mulberry/2.2.1 (Win32) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Subject: ntpd going haywire? (from Aug 25 2003 to Jan 9 1984) X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 27 Aug 2003 05:25:58 -0000 Yesterday I noticed that one of my machines thought it was living in 1984 for a while. An excerpt from /var/log/messages: Aug 25 08:55:18 edwin ntpd[99]: time reset -0.226462 s Jan 9 09:04:04 edwin ntpd[99]: time reset -619315200.105133 s Jan 9 09:30:59 edwin ntpd[99]: time reset 0.858392 s Aug 25 11:13:05 edwin ntpd[99]: time reset 619315200.044631 s If I read the manpage for ntpd correctly, whenever an offset exceeds the sanity limit of 1000 seconds, it should quit and not change the time. So what went wrong here? I did note that 619315200 seconds is exactly 7168 days (=7*1024), so it looks like a few bits got flipped around. (Though a random memory problem does not sound plausible, because two hours later the exact reverse happened) [07:13:42 root@edwin ~] uname -a FreeBSD edwin.kabel.utwente.nl 4.8-RELEASE FreeBSD 4.8-RELEASE #7: Thu May 1 16:43:45 CEST 2003 edwin@hermes.edwin:/usr/obj/usr/src/sys/HERMES i386 [07:13:45 root@edwin ~] cat /etc/rc.conf | grep ntpd xntpd_enable="YES" [07:13:53 root@edwin ~] cat /etc/ntp.conf server chime1.surfnet.nl server chime2.surfnet.nl driftfile /etc/ntp.drift Edwin