Re: ntpd cores

From: Randy Bush <randy_at_psg.com>
Date: Mon, 26 Jul 2004 10:02:11 -1000
> Return-path: <dwhite_at_gumbysoft.com>
> Received: from psg.com ([147.28.0.62] ident=mailnull)
> 	by rip.psg.com with esmtp (Exim 4.41 (FreeBSD))
> 	id 1BpBEG-0004ym-7n
> 	for randy_at_rip.psg.com; Mon, 26 Jul 2004 19:33:44 +0000
> Received: from [66.220.23.50] (helo=carver.gumbysoft.com)
> 	by psg.com with esmtp (Exim 4.41 (FreeBSD))
> 	id 1BpBEG-0006tb-0c
> 	for randy_at_psg.com; Mon, 26 Jul 2004 19:33:44 +0000
> Received: by carver.gumbysoft.com (Postfix, from userid 1000)
> 	id CBC1172DF2; Mon, 26 Jul 2004 12:33:43 -0700 (PDT)
> Received: from localhost (localhost [127.0.0.1])
> 	by carver.gumbysoft.com (Postfix) with ESMTP
> 	id C66E072DB5; Mon, 26 Jul 2004 12:33:43 -0700 (PDT)
> In-Reply-To: <16642.25974.699439.697278_at_roam.psg.com>
> Message-ID: <20040726123203.D32820_at_carver.gumbysoft.com>
> References: <16641.26585.367434.326919_at_roam.psg.com> <20040723185252.A5337_at_carver.gumbysoft.com>
>  <16642.25974.699439.697278_at_roam.psg.com>
> MIME-Version: 1.0
> Content-Type: TEXT/PLAIN; charset=US-ASCII
> X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on rip.psg.com
> Date: Mon, 26 Jul 2004 12:33:43 -0700 (PDT)
> From: Doug White <dwhite_at_gumbysoft.com>
> To: Randy Bush <randy_at_psg.com>
> Cc: FreeBSD Current <freebsd-current_at_freebsd.org>
> Subject: Re: ntpd cores
> 
> On Sat, 24 Jul 2004, Randy Bush wrote:
> 
> > >> i manually run
> > >>
> > >> roam.psg.com# netstat -nf inet | grep 123
> > >> roam.psg.com# ntpd -g -p /var/run/ntpd.pid
> > >>
> > >> Jul 23 09:29:34 roam ntpd[35055]: mlockall(): Resource temporarily unavailable
> > >> Jul 23 09:29:34 roam ntpd[35055]: no IPv6 interfaces found
> > >> Jul 23 09:29:34 roam ntpd[35055]: bind() fd 5, family 2, port 123, addr 0.0.0.0, in_classd=0 flags=8 fails: Address already in use
> > >> Jul 23 09:29:37 roam kernel: pid 35055 (ntpd), uid 0: exited on signal 11 (core dumped)
> > >
> > > The coredump is kinda fun, but the "Addresss already in use" error implies
> > > you're starting ntpd twice somewhere.
> >
> > yep.  except see the netstat run just before invoking ntpd.  ps shows
> > the same, no prior ntpd.
> 
> netstat -n -f inet doesn't show everything.  Try netstat -an.
> 
> -- 
> Doug White                    |  FreeBSD: The Power to Serve
> dwhite_at_gumbysoft.com          |  www.FreeBSD.org

<sigh>

# netstat -an       
Active Internet connections (including servers)
Proto Recv-Q Send-Q  Local Address          Foreign Address        (state)
tcp4       0      0  192.168.0.103.58614    147.28.0.41.443        ESTABLISHED
tcp4       0      0  192.168.0.103.63554    147.28.0.41.443        ESTABLISHED
tcp4       0      0  192.168.0.103.55507    209.20.186.192.22      ESTABLISHED
tcp4       0      0  192.168.0.103.64385    147.28.0.62.22         ESTABLISHED
tcp4       0      0  192.168.0.103.50412    147.28.0.62.5222       ESTABLISHED
tcp4       0      0  192.168.0.103.51749    147.28.0.254.22        ESTABLISHED
tcp4       0      0  192.168.0.103.62339    147.28.0.62.22         ESTABLISHED
tcp4       0      0  192.168.0.103.56714    147.28.0.63.22         ESTABLISHED
tcp4       0      0  192.168.0.103.50259    147.28.0.39.22         ESTABLISHED
tcp4       0      0  192.168.0.103.50002    147.28.0.5.22          ESTABLISHED
tcp4       0      0  127.0.0.1.20025        *.*                    LISTEN
tcp4       0      0  192.168.0.103.60663    147.28.0.39.22         ESTABLISHED
tcp4       0      0  192.168.0.103.55969    147.28.255.2.22        ESTABLISHED
tcp4       0      0  192.168.0.103.56006    147.28.0.4.22          ESTABLISHED
tcp4       0      0  192.168.0.103.57548    147.28.0.39.22         ESTABLISHED
tcp4       0      0  192.168.0.103.57598    147.28.0.39.22         ESTABLISHED
tcp4       0      0  127.0.0.1.783          *.*                    LISTEN
tcp4       0      0  *.25                   *.*                    LISTEN
tcp4       0      0  127.0.0.1.953          *.*                    LISTEN
tcp4       0      0  127.0.0.1.53           *.*                    LISTEN
tcp4       0      0  *.22                   *.*                    LISTEN
tcp4       0      0  *.515                  *.*                    LISTEN
udp4       0      0  *.68                   *.*                    
udp4       0      0  *.67                   *.*                    
udp4       0      0  *.61199                *.*                    
udp4       0      0  127.0.0.1.53           *.*                    
udp4       0      0  *.514                  *.*                    
icm4       0      0  *.*                    *.*                    

# ntpd -g -p /var/run/ntpd.pid

and syslog

Jul 26 10:01:28 roam ntpd[62483]: mlockall(): Resource temporarily unavailable
Jul 26 10:01:28 roam ntpd[62483]: no IPv6 interfaces found
Jul 26 10:01:28 roam ntpd[62483]: bind() fd 6, family 2, port 123, addr 0.0.0.0, in_classd=0 flags=8 fails: Address already in use
Jul 26 10:01:31 roam kernel: pid 62483 (ntpd), uid 0: exited on signal 11 (core dumped)

randy
Received on Mon Jul 26 2004 - 18:02:13 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:38:03 UTC