Re:Leap second causing Linux server crashes?
by arohner on Sunday July 01, 2012 @12:09AM
(#4183813)
Stupid question: Why was this not caught? Seems pretty easy to test. Just set the clock to today (or any day with a leap second), and watch what happens.
[ Parent
| on HN ]
Re:Leap second causing Linux server crashes?
by duskwuff on Sunday July 01, 2012 @12:51AM
(#4183888)
> Just set the clock to today (or any day with a leap second), and watch what happens.
That won't work. The bug is only triggered when an upstream NTP server reports that a leap second was scheduled. Since leap seconds aren't predictable (and aren't even scheduled very far in advance), just setting the time back to the date of a previous leap second won't do anything.
True, but the question still stands, since you can still test it by just telling the kernel to insert a (fake) leap second.