Subject: Re: Problems with nfsd?
To: Matt Ragan <mragan@tivoli.com>
From: Jason Thorpe <thorpej@nas.nasa.gov>
List: current-users
Date: 10/27/1997 13:45:18
On Mon, 27 Oct 1997 13:09:44 -0600 (CST) 
 Matt Ragan <mragan@tivoli.com> wrote:

 > Over the weekend, I rebuilt my x86 system to install 1.3 Alpha, and I am
 > now having problems with the NFS server.  I resupped into a clean directory
 > and rebuilt a GENERIC kernel, reinstalled the include files, rebuilt the
 > C and rpcsvc libraries and includes files, and rebuilt nfsd, and am still
 > having the same problem.
 > 
 > The problem manifests itself with nfsd dumping core almost immediately
 > after startup.  A trace output is attached at the end of this message.
 > 
 > Is anyone else having NFS problems as of last Friday?  As far as I can tell,
 > everything on the system has been updated to -current, unless there's 
 > something small that I'm missing.

Looks like you're running the _wrong_ nfsd.  nfsd lives in /usr/sbin now.
Make sure you're running the correct one.

 > 
 >    648 ktrace   RET   ktrace 0
 >    648 ktrace   CALL  __sysctl(0xefbfd510,0x2,0xaa58,0xefbfd518,0,0)
 >    648 ktrace   RET   __sysctl 0
 >    648 ktrace   CALL  break(0xaa90)
 >    648 ktrace   RET   break 0
 >    648 ktrace   CALL  break(0xaffc)
 >    648 ktrace   RET   break 0
 >    648 ktrace   CALL  break(0xbffc)
 >    648 ktrace   RET   break 0
 >    648 ktrace   CALL  execve(0xefbfd578,0xefbfd9e8,0xefbfd9f8)
 >    648 ktrace   NAMI  "//nfsd"
 >    648 ktrace   RET   execve -1 errno 2 No such file or directory
 >    648 ktrace   CALL  execve(0xefbfd578,0xefbfd9e8,0xefbfd9f8)
 >    648 ktrace   NAMI  "//bin/nfsd"
 >    648 ktrace   RET   execve -1 errno 2 No such file or directory
 >    648 ktrace   CALL  execve(0xefbfd578,0xefbfd9e8,0xefbfd9f8)
 >    648 ktrace   NAMI  "/usr/local/bin/nfsd"
 >    648 ktrace   RET   execve -1 errno 2 No such file or directory
 >    648 ktrace   CALL  execve(0xefbfd578,0xefbfd9e8,0xefbfd9f8)
 >    648 ktrace   NAMI  "/bin/nfsd"
 >    648 ktrace   RET   execve -1 errno 2 No such file or directory
 >    648 ktrace   CALL  execve(0xefbfd578,0xefbfd9e8,0xefbfd9f8)
 >    648 ktrace   NAMI  "/usr/bin/nfsd"
 >    648 ktrace   RET   execve -1 errno 2 No such file or directory
 >    648 ktrace   CALL  execve(0xefbfd578,0xefbfd9e8,0xefbfd9f8)
 >    648 ktrace   NAMI  "/sbin/nfsd"
 >    648 nfsd     EMUL  "netbsd"
 >    648 nfsd     RET   execve JUSTRETURN
 >    648 nfsd     CALL  fork
 >    648 nfsd     RET   fork 649/0x289
 >    649 nfsd     RET   fork 0
 >    649 nfsd     CALL  setsid
 >    649 nfsd     RET   setsid 649/0x289
 >    649 nfsd     CALL  chdir(0x2444)
 >    649 nfsd     NAMI  "/"
 >    649 nfsd     RET   chdir 0
 >    649 nfsd     CALL  open(0x2446,0x2,0)
 >    649 nfsd     NAMI  "/dev/null"
 >    649 nfsd     RET   open 3
 >    649 nfsd     CALL  dup2(0x3,0)
 >    649 nfsd     RET   dup2 0
 >    649 nfsd     CALL  dup2(0x3,0x1)
 >    649 nfsd     RET   dup2 1
 >    649 nfsd     CALL  dup2(0x3,0x2)
 >    649 nfsd     RET   dup2 2
 >    649 nfsd     CALL  close(0x3)
 >    649 nfsd     RET   close 0
 >    649 nfsd     CALL  sigaction(0x1,0xefbfd908,0xefbfd8fc)
 >    649 nfsd     RET   sigaction 0
 >    649 nfsd     CALL  sigaction(0x2,0xefbfd900,0xefbfd8f4)
 >    649 nfsd     RET   sigaction 0
 >    649 nfsd     CALL  sigaction(0x3,0xefbfd8f8,0xefbfd8ec)
 >    649 nfsd     RET   sigaction 0
 >    649 nfsd     CALL  sigaction(0xc,0xefbfd910,0xefbfd904)
 >    649 nfsd     RET   sigaction 0
 >    649 nfsd     CALL  sigaction(0xf,0xefbfd908,0xefbfd8fc)
 >    649 nfsd     RET   sigaction 0
 >    649 nfsd     CALL  sigaction(0x14,0xefbfd910,0xefbfd904)
 >    649 nfsd     RET   sigaction 0
 >    649 nfsd     CALL  fork
 >    649 nfsd     RET   fork 650/0x28a
 >    649 nfsd     CALL  fork
 >    649 nfsd     RET   fork 651/0x28b
 >    649 nfsd     CALL  fork
 >    649 nfsd     RET   fork 652/0x28c
 >    649 nfsd     CALL  fork
 >    649 nfsd     RET   fork 653/0x28d
 >    649 nfsd     CALL  fork
 >    649 nfsd     RET   fork 654/0x28e
 >    649 nfsd     CALL  fork
 >    649 nfsd     RET   fork 655/0x28f
 >    649 nfsd     CALL  socket(0x2,0x2,0)
 >    649 nfsd     RET   socket 3
 >    649 nfsd     CALL  bind(0x3,0xefbfd9ac,0x10)
 >    649 nfsd     RET   bind 0
 >    649 nfsd     CALL  socket(0x2,0x2,0)
 >    649 nfsd     RET   socket 4
 >    649 nfsd     CALL  ioctl(0x4,SIOCGIFCONF,0xefbfd4a8)
 >    649 nfsd     RET   ioctl 0
 >    649 nfsd     CALL  ioctl(0x4,SIOCGIFFLAGS,0xefbfd4b0)
 >    649 nfsd     RET   ioctl 0
 >    649 nfsd     CALL  ioctl(0x4,SIOCGIFFLAGS,0xefbfd4b0)
 >    649 nfsd     RET   ioctl 0
 >    649 nfsd     CALL  close(0x4)
 >    649 nfsd     RET   close 0
 >    649 nfsd     CALL  __sysctl(0xefbfd83c,0x2,0x14dec,0xefbfd844,0,0)
 >    649 nfsd     RET   __sysctl 0
 >    649 nfsd     CALL  break(0x14ebc)
 >    649 nfsd     RET   break 0
 >    649 nfsd     CALL  break(0x14ffc)
 >    649 nfsd     RET   break 0
 >    649 nfsd     CALL  break(0x15ffc)
 >    649 nfsd     RET   break 0
 >    649 nfsd     CALL  break(0x16ffc)
 >    649 nfsd     RET   break 0
 >    649 nfsd     CALL  gettimeofday(0xefbfd87c,0)
 >    649 nfsd     RET   gettimeofday 0
 >    649 nfsd     CALL  getpid
 >    649 nfsd     RET   getpid 649/0x289
 >    649 nfsd     CALL  socket(0x2,0x2,0x11)
 >    649 nfsd     RET   socket 4
 >    649 nfsd     CALL  getpid
 >    649 nfsd     RET   getpid 649/0x289
 >    649 nfsd     CALL  bind(0x4,0xefbfd848,0x10)
 >    649 nfsd     RET   bind 0
 >    649 nfsd     CALL  ioctl(0x4,FIONBIO,0xefbfd878)
 >    649 nfsd     RET   ioctl 0
 >    649 nfsd     CALL  break(0x17ffc)
 >    649 nfsd     RET   break 0
 >    649 nfsd     CALL  sendto(0x4,0x161f0,0x38,0,0x16008,0x10)
 >    649 nfsd     GIO   fd 4 wrote 56 bytes
 >        "5YC\M^Z\0\0\0\0\0\0\0\^B\0\^A\M^F\240\0\0\0\^B\0\0\0\^A\0\0\0\0\0\0\
 >         \0\0\0\0\0\0\0\0\0\0\0\^A\M^F\M-#\0\0\0\^B\0\0\0\^Q\0\0\b\^A"
 >    650 nfsd     RET   fork 0
 >    651 nfsd     RET   fork 0
 >    652 nfsd     RET   fork 0
 >    653 nfsd     RET   fork 0
 >    654 nfsd     RET   fork 0
 >    655 nfsd     RET   fork 0
 >    649 nfsd     RET   sendto 56/0x38
 >    649 nfsd     CALL  select(0x5,0xefbfd894,0,0,0x1601c)
 >    649 nfsd     RET   select 1
 >    649 nfsd     CALL  recvfrom(0x4,0x16060,0x190,0,0xefbfd864,0xefbfd818)
 >    649 nfsd     GIO   fd 4 read 28 bytes
 >        "5YC\M^Z\0\0\0\^A\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\^A"
 >    649 nfsd     RET   recvfrom 28/0x1c
 >    649 nfsd     CALL  close(0x4)
 >    649 nfsd     RET   close 0
 >    649 nfsd     CALL  close(0x4)
 >    649 nfsd     RET   close -1 errno 9 Bad file descriptor
 >    649 nfsd     CALL  socket(0x2,0x2,0)
 >    649 nfsd     RET   socket 4
 >    649 nfsd     CALL  ioctl(0x4,SIOCGIFCONF,0xefbfd4a8)
 >    649 nfsd     RET   ioctl 0
 >    649 nfsd     CALL  ioctl(0x4,SIOCGIFFLAGS,0xefbfd4b0)
 >    649 nfsd     RET   ioctl 0
 >    649 nfsd     CALL  ioctl(0x4,SIOCGIFFLAGS,0xefbfd4b0)
 >    649 nfsd     RET   ioctl 0
 >    649 nfsd     CALL  close(0x4)
 >    649 nfsd     RET   close 0
 >    649 nfsd     CALL  gettimeofday(0xefbfd87c,0)
 >    649 nfsd     RET   gettimeofday 0
 >    649 nfsd     CALL  getpid
 >    649 nfsd     RET   getpid 649/0x289
 >    652 nfsd     PSIG  SIGBUS SIG_DFL
 >    652 nfsd     NAMI  "nfsd.core"
 >    653 nfsd     PSIG  SIGBUS SIG_DFL
 >    653 nfsd     NAMI  "nfsd.core"
 >    655 nfsd     PSIG  SIGBUS SIG_DFL
 >    655 nfsd     NAMI  "nfsd.core"
 >    654 nfsd     PSIG  SIGBUS SIG_DFL
 >    654 nfsd     NAMI  "nfsd.core"
 >    648 nfsd     CALL  exit(0)
 >    650 nfsd     PSIG  SIGBUS SIG_DFL
 >    650 nfsd     NAMI  "nfsd.core"
 >    649 nfsd     CALL  socket(0x2,0x2,0x11)
 >    651 nfsd     PSIG  SIGBUS SIG_DFL
 >    651 nfsd     NAMI  "nfsd.core"
 >    649 nfsd     RET   socket 4
 >    649 nfsd     CALL  bind(0x4,0xefbfd848,0x10)
 >    649 nfsd     RET   bind 0
 >    649 nfsd     CALL  ioctl(0x4,FIONBIO,0xefbfd878)
 >    649 nfsd     RET   ioctl 0
 >    649 nfsd     CALL  sendto(0x4,0x161f0,0x38,0,0x16008,0x10)
 >    649 nfsd     GIO   fd 4 wrote 56 bytes
 >        "5Z\M-|\M-8\0\0\0\0\0\0\0\^B\0\^A\M^F\240\0\0\0\^B\0\0\0\^A\0\0\0\0\0\
 >         \0\0\0\0\0\0\0\0\0\0\0\0\^A\M^F\M-#\0\0\0\^C\0\0\0\^Q\0\0\b\^A"
 >    649 nfsd     RET   sendto 56/0x38
 >    649 nfsd     CALL  select(0x5,0xefbfd894,0,0,0x1601c)
 >    649 nfsd     RET   select 1
 >    649 nfsd     CALL  recvfrom(0x4,0x16060,0x190,0,0xefbfd864,0xefbfd818)
 >    649 nfsd     GIO   fd 4 read 28 bytes
 >        "5Z\M-|\M-8\0\0\0\^A\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\^A"
 >    649 nfsd     RET   recvfrom 28/0x1c
 >    649 nfsd     CALL  close(0x4)
 >    649 nfsd     RET   close 0
 >    649 nfsd     CALL  close(0x4)
 >    649 nfsd     RET   close -1 errno 9 Bad file descriptor
 >    649 nfsd     CALL  #155 (unimplemented)(0x8,0xefbfd9bc)
 >    649 nfsd     RET   #155 (unimplemented) 0
 >    649 nfsd     CALL  close(0x3)
 >    649 nfsd     RET   close 0
 >    649 nfsd     CALL  socket(0x2,0x1,0)
 >    649 nfsd     RET   socket 3
 >    649 nfsd     CALL  setsockopt(0x3,0xffff,0x4,0xefbfd958,0x4)
 >    649 nfsd     RET   setsockopt 0
 >    649 nfsd     CALL  bind(0x3,0xefbfd9ac,0x10)
 >    649 nfsd     RET   bind 0
 >    649 nfsd     CALL  listen(0x3,0x5)
 >    649 nfsd     RET   listen 0
 >    649 nfsd     CALL  socket(0x2,0x2,0)
 >    649 nfsd     RET   socket 4
 >    649 nfsd     CALL  ioctl(0x4,SIOCGIFCONF,0xefbfd4a8)
 >    649 nfsd     RET   ioctl 0
 >    649 nfsd     CALL  ioctl(0x4,SIOCGIFFLAGS,0xefbfd4b0)
 >    649 nfsd     RET   ioctl 0
 >    649 nfsd     CALL  ioctl(0x4,SIOCGIFFLAGS,0xefbfd4b0)
 >    649 nfsd     RET   ioctl 0
 >    649 nfsd     CALL  close(0x4)
 >    649 nfsd     PSIG  SIGCHLD caught handler=0x2030 mask=0x0 code=0x0
 >    649 nfsd     RET   close 0
 >    649 nfsd     CALL  wait4(0xffffffff,0,0x1,0)
 >    649 nfsd     RET   wait4 652/0x28c
 >    649 nfsd     CALL  wait4(0xffffffff,0,0x1,0)
 >    649 nfsd     RET   wait4 0
 >    649 nfsd     CALL  sigreturn(0xefbfd43c)
 >    649 nfsd     RET   sigreturn JUSTRETURN
 >    649 nfsd     CALL  gettimeofday(0xefbfd87c,0)
 >    649 nfsd     RET   gettimeofday 0
 >    649 nfsd     CALL  getpid
 >    649 nfsd     RET   getpid 649/0x289
 >    649 nfsd     CALL  socket(0x2,0x2,0x11)
 >    649 nfsd     RET   socket 4
 >    649 nfsd     CALL  bind(0x4,0xefbfd848,0x10)
 >    649 nfsd     RET   bind 0
 >    649 nfsd     CALL  ioctl(0x4,FIONBIO,0xefbfd878)
 >    649 nfsd     RET   ioctl 0
 >    649 nfsd     CALL  sendto(0x4,0x161f0,0x38,0,0x16008,0x10)
 >    649 nfsd     GIO   fd 4 wrote 56 bytes
 >        "5ZS\a\0\0\0\0\0\0\0\^B\0\^A\M^F\240\0\0\0\^B\0\0\0\^A\0\0\0\0\0\0\0\
 >         \0\0\0\0\0\0\0\0\0\0\^A\M^F\M-#\0\0\0\^B\0\0\0\^F\0\0\b\^A"
 >    649 nfsd     PSIG  SIGCHLD caught handler=0x2030 mask=0x0 code=0x0
 >    649 nfsd     RET   sendto 56/0x38
 >    649 nfsd     CALL  wait4(0xffffffff,0,0x1,0)
 >    649 nfsd     RET   wait4 653/0x28d
 >    649 nfsd     CALL  wait4(0xffffffff,0,0x1,0)
 >    649 nfsd     RET   wait4 0
 >    649 nfsd     CALL  sigreturn(0xefbfd778)
 >    649 nfsd     RET   sigreturn JUSTRETURN
 >    649 nfsd     CALL  select(0x5,0xefbfd894,0,0,0x1601c)
 >    649 nfsd     RET   select 1
 >    649 nfsd     CALL  recvfrom(0x4,0x16060,0x190,0,0xefbfd864,0xefbfd818)
 >    649 nfsd     GIO   fd 4 read 28 bytes
 >        "5ZS\a\0\0\0\^A\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\^A"
 >    649 nfsd     RET   recvfrom 28/0x1c
 >    649 nfsd     CALL  close(0x4)
 >    649 nfsd     RET   close 0
 >    649 nfsd     CALL  close(0x4)
 >    649 nfsd     RET   close -1 errno 9 Bad file descriptor
 >    649 nfsd     CALL  socket(0x2,0x2,0)
 >    649 nfsd     RET   socket 4
 >    649 nfsd     CALL  ioctl(0x4,SIOCGIFCONF,0xefbfd4a8)
 >    649 nfsd     RET   ioctl 0
 >    649 nfsd     CALL  ioctl(0x4,SIOCGIFFLAGS,0xefbfd4b0)
 >    649 nfsd     RET   ioctl 0
 >    649 nfsd     CALL  ioctl(0x4,SIOCGIFFLAGS,0xefbfd4b0)
 >    649 nfsd     RET   ioctl 0
 >    649 nfsd     CALL  close(0x4)
 >    649 nfsd     RET   close 0
 >    649 nfsd     CALL  gettimeofday(0xefbfd87c,0)
 >    649 nfsd     RET   gettimeofday 0
 >    649 nfsd     CALL  getpid
 >    649 nfsd     RET   getpid 649/0x289
 >    649 nfsd     CALL  socket(0x2,0x2,0x11)
 >    649 nfsd     RET   socket 4
 >    649 nfsd     CALL  bind(0x4,0xefbfd848,0x10)
 >    649 nfsd     RET   bind 0
 >    649 nfsd     PSIG  SIGCHLD caught handler=0x2030 mask=0x0 code=0x0
 >    649 nfsd     CALL  wait4(0xffffffff,0,0x1,0)
 >    649 nfsd     RET   wait4 655/0x28f
 >    649 nfsd     CALL  wait4(0xffffffff,0,0x1,0)
 >    649 nfsd     RET   wait4 0
 >    649 nfsd     CALL  sigreturn(0xefbfd7dc)
 >    649 nfsd     RET   sigreturn JUSTRETURN
 >    649 nfsd     CALL  ioctl(0x4,FIONBIO,0xefbfd878)
 >    649 nfsd     RET   ioctl 0
 >    649 nfsd     CALL  sendto(0x4,0x161f0,0x38,0,0x16008,0x10)
 >    649 nfsd     GIO   fd 4 wrote 56 bytes
 >        "5Z\^\A\0\0\0\0\0\0\0\^B\0\^A\M^F\240\0\0\0\^B\0\0\0\^A\0\0\0\0\0\0\0\
 >         \0\0\0\0\0\0\0\0\0\0\^A\M^F\M-#\0\0\0\^C\0\0\0\^F\0\0\b\^A"
 >    649 nfsd     RET   sendto 56/0x38
 >    649 nfsd     CALL  select(0x5,0xefbfd894,0,0,0x1601c)
 >    649 nfsd     RET   select 1
 >    649 nfsd     CALL  recvfrom(0x4,0x16060,0x190,0,0xefbfd864,0xefbfd818)
 >    649 nfsd     GIO   fd 4 read 28 bytes
 >        "5Z\^\A\0\0\0\^A\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\^A"
 >    649 nfsd     RET   recvfrom 28/0x1c
 >    649 nfsd     CALL  close(0x4)
 >    649 nfsd     RET   close 0
 >    649 nfsd     CALL  close(0x4)
 >    649 nfsd     RET   close -1 errno 9 Bad file descriptor
 >    649 nfsd     PSIG  SIGBUS SIG_DFL
 >    649 nfsd     NAMI  "nfsd.core"
 > 
 > -- 
 > --------------------------------------------------------------------------
 > Matt Ragan           Corporate Information Technology       Tivoli Systems
 > Network Administrator                                       (512) 436-8821
 > 9442 Capital of Texas Hwy, North                          Austin, TX 78759
 > --------------------------------------------------------------------------

Jason R. Thorpe                                       thorpej@nas.nasa.gov
NASA Ames Research Center                            Home: +1 408 866 1912
NAS: M/S 258-6                                       Work: +1 650 604 0935
Moffett Field, CA 94035                             Pager: +1 415 428 6939