[chrony-users] on MacOSX

[ Thread Index | Date Index | More chrony.tuxfamily.org/chrony-users Archives ]


Hi.

I noticed chrony supports MacOSX recently. There’s no reason not to try. Here’s report of what I found.

To sum up, (1) I have to modify two lines of configure (2) chronyd works fine on 10.10 but not on 10.9,
which may be a minor problem for many users.


(1) Command “echo -n” in configure script must be “/bin/echo -n” to generate correct config.h.
This is same in 10.9 and 10.0. I do know know why.

(2) On 10.9, chronyd does not run becuase of Floating point exception. Chronyd runs n 10.10 without
any errors.


# /usr/local/sbin/chronyd -d -d -f /usr/local/etc/chrony.conf
2015-08-11T15:48:40Z main.c:440:(main) chronyd version 2.1.1 starting (+CMDMON +NTP +REFCLOCK -RTC -PRIVDROP -DEBUG +ASYNCDNS +IPV6 -SECHASH)
Floating point exception: 8

# lldb chronyd
(lldb) target create "chronyd"
Current executable set to 'chronyd' (x86_64).
(lldb) run -d -f /usr/local/etc/chrony.conf
Process 7720 launched: ‘/usr/local/sbin/chronyd' (x86_64)
2015-08-11T15:49:39Z chronyd version 2.1.1 starting (+CMDMON +NTP +REFCLOCK -RTC -PRIVDROP -DEBUG +ASYNCDNS +IPV6 -SECHASH)
Process 7720 stopped
* thread #1: tid = 0x743e, 0x000000010001a089 chronyd`start_adjust + 297 at sys_macosx.c:142, queue = 'com.apple.main-thread', stop reason = EXC_ARITHMETIC (code=EXC_I386_DIV, subcode=0x0)
    frame #0: 0x000000010001a089 chronyd`start_adjust + 297 at sys_macosx.c:142
   139         tickdelta = 10 * kern_tickadj;
   140       else
   141         tickdelta = kern_tickadj;
-> 142       if (delta % tickdelta)
   143         delta = delta / tickdelta * tickdelta;
   144       newadj.tv_sec = 0;
   145       newadj.tv_usec = (int)delta;
(lldb) print delta
(long) $0 = 0
(lldb) print tickdelta
(long) $1 = 0

# gcc --version
Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/usr/include/c++/4.2.1
Apple LLVM version 6.0 (clang-600.0.56) (based on LLVM 3.5svn)
Target: x86_64-apple-darwin13.4.0
Thread model: posix
   


--
To unsubscribe email chrony-users-request@xxxxxxxxxxxxxxxxxxxx
with "unsubscribe" in the subject.
For help email chrony-users-request@xxxxxxxxxxxxxxxxxxxx
with "help" in the subject.
Trouble?  Email listmaster@xxxxxxxxxxxxxxxxxxxx.


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/