Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 17 Nov 2010 18:40:01 +0300
From:      Sergey Kandaurov <pluknet@gmail.com>
To:        freebsd general questions <freebsd-questions@freebsd.org>
Subject:   ntpd on 8.1 cycles around select() with EBADF
Message-ID:  <AANLkTina5Qq3BEMvanDFcLEB9YDgHT_VZggkFN5u_J94@mail.gmail.com>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?AANLkTina5Qq3BEMvanDFcLEB9YDgHT_VZggkFN5u_J94>