Port-sparc archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: [ntp:questions] Ntpd in uninterruptible sleep?
On Thu, Nov 17, 2011 at 15:23, Dave Hart <hart%ntp.org@localhost> wrote:
> The snprintf workaround was simply to build recent ntpd 4.2.7 using
> configure option --enable-c99-snprintf, which forces the use of
> C99-snprintf [1] instead of the C runtime's snprintf. Note
> C99-snprintf() hand-rolls its dtoa()-like functionality. This message
Er, sorry, this message:
http://lists.ntp.org/pipermail/questions/2011-November/030930.html
> shows the stack backtrace AGC saw repeatedly when he broke into an
> infinitely-looping ntpd that triggered it, and the ntpd code in
> question, which amounts to snprintf(bufwif, plentyspace, " %.2f",
> dblX); where apparently there are certain double values that trigger
> it. As I mentioned elsewhere, this should be reproducible feeding
> random doubles to dtoa(), or at least feeding such to a similar
> snprintf().
>
> [1] http://www.jhweiss.de/software/snprintf.html
Cheers,
Dave Hart
Home |
Main Index |
Thread Index |
Old Index