Date: Tue, 23 Nov 2010 11:01:50 GMT From: pluknet <pluknet@gmail.com> To: freebsd-gnats-submit@FreeBSD.org Subject: bin/152525: ntpd on 8.1 loops on select() with EBADF Message-ID: <201011231101.oANB1oaA096730@red.freebsd.org> Resent-Message-ID: <201011231110.oANBA7I6086227@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 152525 >Category: bin >Synopsis: ntpd on 8.1 loops on select() with EBADF >Confidential: no >Severity: serious >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Tue Nov 23 11:10:07 UTC 2010 >Closed-Date: >Last-Modified: >Originator: pluknet >Release: 8.1-RELEASE-p1 amd64 >Organization: >Environment: FreeBSD host 8.1-RELEASE-p1 FreeBSD 8.1-RELEASE-p1 #4: Thu Sep 23 08:30:18 UTC 2010 root@host:/usr/obj/usr/src/sys/YYY amd64 >Description: This is repeatedly observed many times. 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 >How-To-Repeat: Wait several day until ntpd starts to loop in select(). >Fix: `/etc/rc.d/ntpd restart` make it work. >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201011231101.oANB1oaA096730>