Re: [chrony-dev] chronyd broken on macOS Big Sur |
[ Thread Index |
Date Index
| More chrony.tuxfamily.org/chrony-dev Archives
]
- To: chrony-dev@xxxxxxxxxxxxxxxxxxxx
- Subject: Re: [chrony-dev] chronyd broken on macOS Big Sur
- From: Bryan Christianson <bryan@xxxxxxxxxxxxx>
- Date: Fri, 28 Aug 2020 16:45:10 +1200
- Dkim-signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=smtpcorp.com; s=a1-4; h=Feedback-ID:X-Smtpcorp-Track:Message-Id:To:Date: Subject:From:Reply-To:Sender:List-Unsubscribe; bh=FRlAd3NKmgP3B2FxbsSkdGLX80OokDmAumwfEyad6oI=; b=sKgVwevhcWdzRuLijKdpYvpQaR cx1/nHI5Eb1CEZrxNb8MmWOZMTAslMvBQFBIbNTvQHWIlsviMe/oBsIy4JSzb4mB4BsqZXQ48Nh91 9aWpIBOwdEwfLDRxuUKPwJk5hXrS2xoI7J3KAFrlhsbW69+L6C2V4Qg6Gp0tMkOe7Jwr5GF+50Obe Rw0CzQ3FxoqcB6V8SFP+UI5XYKxvmU56qboOl+cvsSmU6+CPy9/CcH+012B3FiKlKgRV1o5+8Frbl Kj+Dt0j/nCpmWy/KauJH3r2PKQmBVf68guJftuwhVFTAzSA+IU1NhrXvdJ61+1/dTeMTshW3eR84z DXvEkTHw==;
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=whatroute.net; i=@whatroute.net; q=dns/txt; s=s149811; t=1598589925; h=from : subject : to : message-id : date; bh=FRlAd3NKmgP3B2FxbsSkdGLX80OokDmAumwfEyad6oI=; b=lZlx1qKsn0Ma3SQg2FMf9jOvRk8HTnMJvIZrr2YpWWRYQhn9CD0WDPNY8aLFJZoG5AWljv 6uCerk3cvtzQTBnMxZyBuh/TcU7lWvs/oZZA/wMHrCxaGBvJsmVb5Np2wX8+XchfUQkKW8IJ YdPE/Sjs2k9cczOwUOmLaNXbsxM2Qnj/rKjf1epVDAZFBKMOeOgZe7I7xD8RH/0Omw9C94kT nvAMnYWvc7KArgF4wIl4nDHc5QXbwwJGnhd5ZtNGyAlPDYVKRkvcIbxvCHi5uZNi7uFj1Qhi 6MAWT3kW6f1j6hrAnQioMWbiAnqyk/e8SZ1Njk5Dkr+0ucHzMNq48+sw==
- Feedback-id: 149811m:149811acx33YQ:149811sjFTcXa-t_
Hi Miroslav
> On 27/08/2020, at 8:10 PM, Miroslav Lichvar <mlichvar@xxxxxxxxxx> wrote:
>
> I guess it's also possible that the ntp_adjtime() call doesn't
> actually do anything. You could try changing the frequency in larger
> steps, e.g. 100 ppm every minute and see if it has any effect on the
> offset reported by chronyd -x. If it looks the same as when you don't
> change the frequency, ntp_adjtime() isn't doing anything.
>
It looks like Apple may have messed up signed/unsigned again in Big Sur. I played around with variations of the test code without much success in reproducing the problem. I then tried setting the frequency in the range 0 to -500pm in steps of 50ppm, with a 30 second sleep each iteration.
The frequency returned in the timex buffer was incorrect. Instead of seeing "-50 ppm => -50 ppm : ok" as expected I see "-50 ppm => 65486 ppm : failed". On macOS 10.15 I see the expected result.
I was still unable to reproduce an abrupt change in offset, but I think there is a definite 'sign' problem in the Apple code.
If Apple don't respond to my bug report it may be possible to work around this in chrony.
Maybe the test case in chrony should also look at -ve frequencies?
Bryan Christianson
bryan@xxxxxxxxxxxxx
--
To unsubscribe email chrony-dev-request@xxxxxxxxxxxxxxxxxxxx with "unsubscribe" in the subject.
For help email chrony-dev-request@xxxxxxxxxxxxxxxxxxxx with "help" in the subject.
Trouble? Email listmaster@xxxxxxxxxxxxxxxxxxxx.