[ntp:questions] questions] Leapsecond on FreeBSD or Windows - no showstopper bugs, but ...

David J Taylor david-taylor at blueyonder.co.uk
Sun Jul 1 16:52:35 UTC 2012


From: Dave Hart
Sent: Sunday, July 01, 2012 5:12 PM
To: David J Taylor
[]
As I mentioned on the pool list, I think there's a bug in the
application of the leap second to the local clock in recent ntpd.
Please check the event log on each of your Windows systems around the
event.  If everything worked perfectly, you'd see mentions both of the
positive leap second insertion occurring, and of the leap indication
being disarmed.  On a system with a GPS+PPS refclock, I saw only the
disarming message, then a naughty -1s step 12.5 minutes later:

30 Jun 23:59:59 ntpd[2272]: 0.0.0.0 041b 0b leap_event
1 Jul 00:00:00 ntpd[2272]: Leap second announcement disarmed
1 Jul 00:00:15 ntpd[2272]: 0.0.0.0 0413 03 spike_detect -0.999998 s
1 Jul 00:03:45 ntpd[2272]: 2001:4f8:fff7:1::17 962a 8a sys_peer
1 Jul 00:12:29 ntpd[2272]: 0.0.0.0 061c 0c clock_step -1.006282 s

On a system synched to another NTP server, the leap second insertion
(fast slew) happened but there's no message about disarming.  Also
both the leap_event and the insertion are relatively late:

1 Jul 00:00:33 ntpd[10184]: Inserting positive leap second.
1 Jul 00:00:57 ntpd[10184]: 0.0.0.0 061b 0b leap_event

There's clearly still work to do.

Cheers,
Dave Hart
===================================================

Yes, I saw the note, Dave, and agree with your conclusions.  At least on the 
stratum-1 Windows systems, there is "disarmed" but not "inserted".

On PC Narvik, just LAN/WAN synced, there is "inserting positive leap second" 
at 00:00:00 UTC, and it is reporting "leap disarmed" even though that wasn't 
in the event log.  There was a "Detected a positive leap second 
announcement" at 00:00:43 UTC on June 30.

I'll send you the loop & peerstats I have directly in case that helps.  The 
PCs are running at UTC+01:00 (British Summer Time) which affects the event 
log timestamps.

Cheers,
David
-- 
SatSignal Software - Quality software written to your requirements
Web: http://www.satsignal.eu
Email: david-taylor at blueyonder.co.uk 



More information about the questions mailing list