-g broken

Gary E. Miller gem at rellim.com
Thu Mar 22 18:08:52 UTC 2018

Yo Hal!

On Wed, 21 Mar 2018 23:48:05 -0700
Hal Murray <hmurray at megapathdsl.net> wrote:

> > I'm thinking there were two jumps in the first little bit.  Maybe 60
> > seconds?  
> There should be something in the log file.

Yes, I already attached to log file bits.  But, once again:

12-21T17:39:47 ntpd[7812]: PROTO: 0017 07 panic_stop +579076096 s; set c
lock manually within 1000 s.
12-21T17:39:47 ntpd[7812]: CLOCK: Panic: offset too big: 579076096.001

> > Do you have a GPS clock that is prefer?  Did you set the time to
> > 2134, restart gpsd so it is in the wrong epoch?  Then start ntpd?
> > very repeatable for me.  Even on diffeeent NTPsc versions.   
> I set the time by hand to demonstrate that -g works as expected.  You
> get one big jump.

Ah, but did you also do the gpsd part?  That is ESSENTIAL to duplicate this

You need to do this to see the bug:

	killall -9 gpsd ntpd
	date 010101012134
	gpsd -n /dev/ttyAMA0
    # verify GPS is reporting wrong epoch, e.g. 2134
    # verify ntp.conf has GPS as prefer
	ntpd -Ng
    # ntpmon will crash in about one minute
    # check logs

> There is no waf in there.  Looks like the recipe for ntp classic.

Whoops, sorry, here is the right one:

cd ntpsec
./waf clean

./waf configure --refclock=all \
  && ./waf build  && \
./waf install

> Are you in the right mailing list?

Probably, I suspect NTP Classic also has the bug.

Gary E. Miller Rellim 109 NW Wilmington Ave., Suite E, Bend, OR 97703
	gem at rellim.com  Tel:+1 541 382 8588

	    Veritas liberabit vos. -- Quid est veritas?
    "If you can’t measure it, you can’t improve it." - Lord Kelvin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 488 bytes
Desc: OpenPGP digital signature
URL: <https://lists.ntpsec.org/pipermail/devel/attachments/20180322/4c9b4fa2/attachment.bin>

More information about the devel mailing list