[ntp:questions] move_fd() causing bad behavior on AIX5.3

Harlan Stenn stenn at ntp.org
Tue Nov 20 01:10:07 UTC 2007


>>> In article <abbec7b0-1656-4f2f-9358-c5117a87ab97 at n20g2000hsh.googlegroups.com>, brandon.phillips at lmco.com writes:

brandon> ntp-4.2.4p4 / AIX 5.3 This was annoying to chase down because I
brandon> guess it's also screwing up the fds used to log errors.  The
brandon> symptom is that ntpd exits silently due to a bind() error, but only
brandon> when daemonized.  Running under some debugging tools, such as
brandon> Aprobe, changes the behavior (no failure), possibly because of
brandon> additional fd usage.

brandon> This sounds like bug #604
brandon> (https://support.ntp.org/bugs/show_bug.cgi?  id=614).  Was that
brandon> ever confirmed fixed for AIX5?

Did you mean bug 604 or 614?  Regardless, both are marked FIXED, and 604 has
been VERIFIED.

Another reason why bugs sometimes do not appear under a debugger is when the
debugger initialized variables.

brandon> I haven't looked into exactly how move_fd() is screwing up, but
brandon> ntpd is happy on my test box with the call to it removed entirely.

We don't do much testing under AIX because we don't have easy access to a
box.

An additional approach would be to use some of the assertion stuff in
include/ntp_assert.h and see if you can get something to violate an
assertion.

And if you can shed any light on bugs 135, 309, 598, or 716, that would be
swell, too.

H




More information about the questions mailing list