From owner-freebsd-questions@FreeBSD.ORG Wed Nov 17 16:07:54 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 DB291106564A for ; Wed, 17 Nov 2010 16:07:54 +0000 (UTC) (envelope-from pluknet@gmail.com) Received: from mail-pv0-f182.google.com (mail-pv0-f182.google.com [74.125.83.182]) by mx1.freebsd.org (Postfix) with ESMTP id B47F28FC12 for ; Wed, 17 Nov 2010 16:07:54 +0000 (UTC) Received: by pvc22 with SMTP id 22so564815pvc.13 for ; Wed, 17 Nov 2010 08:07:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:date:message-id :subject:from:to:content-type; bh=0McV4RRgJjs67RfM14/9mclXF8NXtJ4hiNzF3fmsivI=; b=f2YavQ93RkD2dU2gaCraQX5M9hLUUnUP1iKuGvq8E4LxG53/tnWMSiwFZwMZPGXDoU QW7TJgy74BxveQwnBdS6FyKjVyI6EN7UOFZiI0U8tGrcAo4MustMPLbxmi+yWZZiKitP m+0Ri18tbnOa+Qxckjg8lIH5z6J8ucI4PygTc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=BzfPyccOB10QZjpUrAh2PBDr8Dqd87RyB8FL5356MouqgMYQLKYcVPCiRQCK9QREmh YHx44HYhGZTCc2Cy1j3vIEsUlNcNMEEp8D0xa9YLcwQhkeb/f9oXphPNMOgvG9mX7Gu/ hjMaaV8euCcB2rDf33b5UB5gOhi5QIa/bSAbs= MIME-Version: 1.0 Received: by 10.142.216.20 with SMTP id o20mr8072097wfg.318.1290008402000; Wed, 17 Nov 2010 07:40:02 -0800 (PST) Received: by 10.142.232.18 with HTTP; Wed, 17 Nov 2010 07:40:01 -0800 (PST) Date: Wed, 17 Nov 2010 18:40:01 +0300 Message-ID: From: Sergey Kandaurov To: freebsd general questions Content-Type: text/plain; charset=ISO-8859-1 Subject: ntpd on 8.1 cycles around select() with EBADF 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 Nov 2010 16:07:54 -0000 Hi. This is the second time I noted it. 2581 root 1 118 0 11736K 3532K CPU6 6 60.7H 100.00% ntpd # ntpq -p localhost: timed out, nothing received ***Request timed out ` /etc/rc.d/ntpd restart` make it work. What can be the reason ? 2581 ntpd CALL select(0x420,0x7fffffffec20,0,0,0) 2581 ntpd RET select -1 errno 9 Bad file descriptor 2581 ntpd CALL stat(0x7fffffffe100,0x7fffffffe080) 2581 ntpd NAMI "/usr/share/nls/C/libc.cat" 2581 ntpd RET stat -1 errno 2 No such file or directory 2581 ntpd CALL stat(0x7fffffffe100,0x7fffffffe080) 2581 ntpd NAMI "/usr/share/nls/libc/C" 2581 ntpd RET stat -1 errno 2 No such file or directory 2581 ntpd CALL stat(0x7fffffffe100,0x7fffffffe080) 2581 ntpd NAMI "/usr/local/share/nls/C/libc.cat" 2581 ntpd RET stat -1 errno 2 No such file or directory 2581 ntpd CALL stat(0x7fffffffe100,0x7fffffffe080) 2581 ntpd NAMI "/usr/local/share/nls/libc/C" 2581 ntpd RET stat -1 errno 2 No such file or directory 2581 ntpd CALL clock_gettime(0xd,0x7fffffffd7e0) 2581 ntpd RET clock_gettime 0 2581 ntpd CALL getpid 2581 ntpd RET getpid 2581/0xa15 2581 ntpd CALL sendto(0x3,0x7fffffffd870,0x43,0,0,0) 2581 ntpd GIO fd 3 wrote 67 bytes "<99>Nov 17 18:14:17 ntpd[2581]: select() error: Bad file descriptor" 2581 ntpd RET sendto 67/0x43 -- wbr, pluknet