From owner-freebsd-questions@FreeBSD.ORG Wed Feb 17 15:24:17 2010 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7A8EC1065670 for ; Wed, 17 Feb 2010 15:24:17 +0000 (UTC) (envelope-from psteele@maxiscale.com) Received: from server505.appriver.com (server505c.appriver.com [98.129.35.7]) by mx1.freebsd.org (Postfix) with ESMTP id 4282F8FC13 for ; Wed, 17 Feb 2010 15:24:16 +0000 (UTC) X-Policy: GLOBAL - maxiscale.com X-Primary: psteele@maxiscale.com X-Note: This Email was scanned by AppRiver SecureTide X-ALLOW: psteele@maxiscale.com ALLOWED X-Virus-Scan: V- X-Note: Spam Tests Failed: X-Country-Path: UNITED STATES->UNITED STATES->UNITED STATES X-Note-Sending-IP: 98.129.23.15 X-Note-Reverse-DNS: ht02.exg5.exghost.com X-Note-WHTLIST: psteele@maxiscale.com X-Note: User Rule Hits: X-Note: Global Rule Hits: G173 G174 G175 G176 G180 G181 G192 G279 X-Note: Encrypt Rule Hits: X-Note: Mail Class: ALLOWEDSENDER X-Note: Headers Injected Received: from [98.129.23.15] (HELO ht02.exg5.exghost.com) by server505.appriver.com (CommuniGate Pro SMTP 5.3.2) with ESMTPS id 28234093 for freebsd-questions@freebsd.org; Wed, 17 Feb 2010 09:24:16 -0600 Received: from mbx03.exg5.exghost.com ([169.254.1.200]) by ht02.exg5.exghost.com ([98.129.23.15]) with mapi; Wed, 17 Feb 2010 09:24:15 -0600 From: Peter Steele To: "freebsd-questions@freebsd.org" Date: Wed, 17 Feb 2010 09:24:15 -0600 Thread-Topic: What would make ntpd hang in BSD 8? Thread-Index: Acqv5UOp3gqlS4nsTGWExT+JEunlYQ== Message-ID: <7B9397B189EB6E46A5EE7B4C8A4BB7CB385470DB@MBX03.exg5.exghost.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: en-US MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: What would make ntpd hang in BSD 8? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 17 Feb 2010 15:24:17 -0000 We have an application where the user can change the date/time via a GUI. O= ne of the options the user has is to specify that the time is to be synced = using ntp. Our coding worked fine under BSD 7 but since we've moved onto BS= D 8 we've encountered a problem where the command that we initiate from the= GUI: ntpd -g -q is hanging indefinitely. Logs we've captured do not give any clues. This is= the log from a BSD 7 system: 17 Feb 06:35:36 ntpd[3578]: logging to file /var/log/ntpd.log 17 Feb 06:35:36 ntpd[3578]: ntpd 4.2.0-a Sun Feb 24 09:12:07 UTC 2008 (1) 17 Feb 06:35:36 ntpd[3578]: precision =3D 1.676 usec 17 Feb 06:35:36 ntpd[3578]: kernel time sync status 2040 17 Feb 06:35:36 ntpd[3578]: frequency initialized -10.706 PPM from /var/db/= ntpd.drift 17 Feb 06:35:45 ntpd[3578]: synchronized to 198.186.191.229, stratum=3D2 17 Feb 06:35:45 ntpd[3578]: time slew +0.003648 s and this is the log from a BSD 8 system: 17 Feb 06:35:36 ntpd[2293]: logging to file /var/log/ntpd.log 17 Feb 06:35:36 ntpd[2293]: precision =3D 1.676 usec 17 Feb 06:35:36 ntpd[2293]: Listening on interface #0 wildcard, 0.0.0.0#123= Disabled 17 Feb 06:35:36 ntpd[2293]: Listening on interface #1 wildcard, ::#123 Disa= bled 17 Feb 06:35:36 ntpd[2293]: Listening on interface #2 nic0, fe80::2a0:d1ff:= fee3:53cc#123 Enabled 17 Feb 06:35:36 ntpd[2293]: Listening on interface #3 nic1, fe80::2a0:d1ff:= fee3:53cd#123 Enabled 17 Feb 06:35:36 ntpd[2293]: Listening on interface #4 lo0, fe80::1#123 Enab= led 17 Feb 06:35:36 ntpd[2293]: Listening on interface #5 lo0, ::1#123 Enabled 17 Feb 06:35:36 ntpd[2293]: Listening on interface #6 lo0, 127.0.0.1#123 En= abled 17 Feb 06:35:36 ntpd[2293]: Listening on interface #7 lagg0, 192.168.17.46#= 123 Enabled 17 Feb 06:35:36 ntpd[2293]: Listening on routing socket on fd #29 for inter= face updates 17 Feb 06:35:36 ntpd[2293]: kernel time sync status 2040 17 Feb 06:35:36 ntpd[2293]: frequency initialized -10.706 PPM from /var/db/= ntpd.drift It never gets past this last log line and we have to do a kill -9 on the nt= pd process. Everything is identical as far as the conf and drift files are = concerned, we're using lagg interfaces on both systems. The versions of the= two ntpd binaries are different-4.2.0-a for BSD 7 and 4.2.4p5 for BSD 8. I= have not tried building the binary with debug mode enabled. That will prob= ably be my next exercise. Any suggestions though in the meantime that might= explain this would be appreciated.