[ntp:hackers] BusError from ntpd on FreeBSD 9.1

Harlan Stenn stenn at ntp.org
Sun Aug 4 04:03:24 UTC 2013


Hal Murray writes:
> Does anybody recognize this one?  Or have suggestions on how to get more info
> ?
> 
> It starts normally at boot time.  It crashes if I restart it.
> 
> 
> Aug  3 07:54:10 new-ted ntpd[26953]: ntpd 4.2.7p380-HGM at 1.2948 Sat Aug  3 
> 14:50:26 UTC 2013 (1): Starting
> Aug  3 07:54:10 new-ted ntpd[26954]: ntpd exiting on signal 10 (Bus error: 10
> )
> Aug  3 07:54:10 new-ted kernel: pid 26954 (ntpd), uid 0: exited on signal 10 
> (core dumped)
> 
> gdb says:
> ...
> #7  <signal handler called>
> #8  init_auth () at ../../libntp/authkeys.c:115
> #9  0x0805a00c in ntpdmain (argc=0, argv=0xbfbfebe4) at ../../ntpd/ntpd.c:775
> #10 0x0805a602 in main (argc=Cannot access memory at address 0x53
> ) at ../../ntpd/ntpd.c:274
> 
> From libntp/authkeys.c:
>         size_t newalloc;
>         newalloc = authhashbuckets * sizeof(key_hash[0]);
>         key_hash = erealloc(key_hash, newalloc);    <== line 115
>         INIT_DLIST(key_listhead, llink);
> 
> newalloc is 256, key_hash is 0

I've never seen or heard of this before.  If I think of anything I'll
let you know, and I am running ntp-dev on FreeBSD-9 on a lot of
machines.

H


More information about the hackers mailing list