Subject: ntpd fails on sparc64?
To: None <port-sparc64@netbsd.org>
From: Chris Ross <cross@distal.com>
List: port-sparc64
Date: 06/28/2004 18:32:03
   I'm building the current ntp (et al) in usr.sbin/ntp.  I built
it last week, and when I noticed [while trying to run it] today
that it failed, I rebuilt from today's sources (for the binaries,
I guess I should rebuild the kernel next, but I don't remember
seeing any changes that I think would effect this)

   ntpd will SEGV shortly after starting.  Both the older and current
binaries fail in the same way.  I have "ca.pool.ntp.org" and
two "us.pool.ntp.org" "server" lines in my ntp.conf, which is
the default after changing commented lines in and out.

   If anyone has any clue why ntpd might be failing, I'd love
to know.  I think I remember hearing that gdb doesn't work
on sparc64, so the only info I have is output of ntpd.  The
ntpd -dd output is as follows:

host# ./ntpd -dd
ntpd 4.2.0-r Mon Jun 28 18:19:41 EDT 2004 (1)
addto_syslog: ntpd 4.2.0-r Mon Jun 28 18:19:41 EDT 2004 (1)
addto_syslog: set_process_priority: Leave priority alone: priority_done 
is <2>
addto_syslog: precision = 2.000 usec
create_sockets(123)
bind() fd 4, family 2, port 123, addr 0.0.0.0, flags=8
flags for fd 4: 0106
bind() fd 5, family 24, port 123, addr ::, flags=0
flags for fd 5: 0106
bind() fd 6, family 2, port 123, addr 153.39.108.170, flags=8
flags for fd 6: 0106
bind() fd 7, family 24, port 123, addr fe80::a00:20ff:fefb:7fe7, flags=0
flags for fd 7: 0106
bind() fd 8, family 2, port 123, addr 127.0.0.1, flags=0
flags for fd 8: 0106
bind() fd 9, family 24, port 123, addr ::1, flags=0
flags for fd 9: 0106
bind() fd 10, family 24, port 123, addr fe80::1, flags=0
flags for fd 10: 0106
create_sockets: ninterfaces=7
interface 0:  fd=4,  bfd=-1,  name=wildcard,  flags=0x8
               sin=0.0.0.0  bcast=0.0.0.0,  mask=255.255.255.255
interface 1:  fd=5,  bfd=-1,  name=wildcard,  flags=0x0
               sin=::  mask=ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff
interface 2:  fd=6,  bfd=-1,  name=hme0,  flags=0x9
               sin=153.39.108.170  bcast=153.39.108.191, 
mask=255.255.255.224
interface 3:  fd=7,  bfd=-1,  name=hme0,  flags=0x1
               sin=fe80::a00:20ff:fefb:7fe7  mask=ffff:ffff:ffff:ffff::
interface 4:  fd=8,  bfd=-1,  name=lo0,  flags=0x5
               sin=127.0.0.1  mask=255.0.0.0
interface 5:  fd=9,  bfd=-1,  name=lo0,  flags=0x5
               sin=::1  mask=ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff
interface 6:  fd=10,  bfd=-1,  name=lo0,  flags=0x5
               sin=fe80::1  mask=ffff:ffff:ffff:ffff::
init_io: maxactivefd 10
local_clock: time 0 offset 0.000000 state 0
ntp_syslogmask = 0x0000b000 (-syncstatus)
zsh: segmentation fault (core dumped)  ./ntpd -dd
host#

   Thanks.  I hope someone has an idea/suggestion...

                         - Chris