Subject: kern/1305: Panics while running NFS.
To: None <gnats-bugs@NetBSD.ORG>
From: Kenneth Stailey <kstailey@gnu.ai.mit.edu>
List: netbsd-bugs
Date: 08/01/1995 23:51:28
>Number:         1305
>Category:       kern
>Synopsis:       Panics while running NFS.
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    kern-bug-people (Kernel Bug People)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Aug  2 00:35:01 1995
>Last-Modified:
>Originator:     Kenneth Stailey
>Organization:
yet another self-organizing system
	
>Release:        Sun Jul 30, 1995
>Environment:
	
Server NetBSD/i386 Sun Jul 30, 1995 + vfs_bio patch
Client NetBSD/Sun3 Mon Jun  5, 1995 (diskless)

>Description:
	Server panics while serving fast disk drive, but not slow one.
>How-To-Repeat:
Boot diskless Sun3/60 from PC.

Client boots fine until init starts getty.  getty dumps core and
server panics almost immediately.  Same sequence without vfs_bio
patch, I will send kernel stack trace for it soon.

Other notes: if NFS server exports HP-MO (optical disk) instead of
Quantum XP32150 SCSI disk (big speed difference) client will boot to
multi-user OK.  Server panics later when client attempts to build
kernel on NFS mounted Quantum disk.  Server has no problem using
Quantum in other intensive ways (full build + www server.)

kernel: page fault trap, code=0
 _thread_sleep+0x1c: movl %edx,0xe8(%eax)

db> t
_thread_sleep(f824910c,f824910c,0) at _thread_sleep+0x1c
_lock_write(f824910c,1,1,f81b5008,1fff) at _lock_write+0x53
_kmem_malloc(f8249108,1000,0,0,10328) at _kmem_malloc+0x53
_malloc(80,1,1,474,f86ef580) at _malloc+0x237
_sbappendaddr(f86f3830,f81a237c,f8755500,0) at _sbappendaddr+0x79
_udp_input(f8755500,1c) at _udp_input+0x3cd
_ipintr(f8ca0010,10,7,f86f2500,f7bffb40) at _ipintr+0x394
Bad frame pointer: 0xf7bffad0 (you ate the stack you monster, how could you!?!)
db> ps
  pid proc     addr     uid  ppid  pgrp  flag  stat em      comm         wchan
  162 f8743600 f9b9b000 333   159   142  004184  3  netbsd  xload        select f81a9840
  161 f8743c00 f9b98000 333   142   142  004084  3  netbsd  FvwmPager    select f81a9840
  160 f8701200 f9b95000 333   158   142  004084  3  netbsd  xclock       select f81a9840
  159 f8701100 f9b92000 333   142   142  004084  3  netbsd  sh           wait f8701100
  158 f8740f00 f9b8b000 333   142   142  004084  3  netbsd  sh		 wait f8740f00
  157 f8740000 f9b88000 333   142   142  004084  3  netbsd  GoodStuff	 select f81a9840
  152 f86fea00 f9b82000 333   151   142  004084  3  netbsd  xearth	 pause f9b8210c
  151 f86ffd00 f9b5c000 333   142   142  000084  3  netbsd  sh		 wait f86ffd00
  142 f86fe600 f9b38000 333   125   142  004084  3  netbsd  fvwm	 select f81a9840
  132 f86ebe00 f9b7f000   0     1   130  000084  3  netbsd  xconsole	 select f81a9840
  126 f8730000 f9b5f000   0     1   126  000084  3  netbsd  syslogd	 select f81a9840
  125 f872ee00 f9b7b000   0   119   125  000084  3  netbsd  xdm		 wait f872ee00
  124 f872c700 f9b59000   0     1   124  004086  3  netbsd  getty	 ttyin f86b9600
  123 f872cd00 f9b35000   0   119   123  004184  3  netbsd  XF86_W32	 select f81a9840
  119 f872a300 f9b78000   0     1   119  000085  3  netbsd  xdm		 select f81a9840
  107 f8725c00 f9b71000   0     1   107  000084  3  netbsd  rarpd	 select f81a9840
  104 f871a000 f9b74000   0     1   104  000084  3  netbsd  inetd	 select f81a9840
  100 f8716f00 f9b6e000   0     1   100  000084  3  netbsd  lpd		 select f81a9840
   96 f8716d00 f9b6b000   0     1    96  000084  3  netbsd  routed	 select f81a9840
   92 f8716700 f9b68000   0     1    92  000084  3  netbsd  cron	 pause f9b6810c
   90 f8714300 f9b65000   0     1    90  000084  3  netbsd  update	 pause f9b6510c
   76 f86f7c00 f9b62000   0     1    76  000084  3  netbsd  timed	 select f81a9840
   68 f86f3000 f9b56000   0     1    68  000084  3  netbsd  rpc.bootparamd   select f81a9840
   64 f86f3d00 f9b53000   0    59    59  000084  3  netbsd  nfsd	 nfsd f86ea000
   63 f86f2500 f9b50000   0    59    59  000004  3  netbsd  nfsd	 thrd_sleep f824910c
   62 f86f0f00 f9b4d000   0    59    59  000084  3  netbsd  nfsd	 nfsd f86ea400
   61 f86f2000 f9b4a000   0    59    59  000084  3  netbsd  nfsd	 nfsd f86ea800
   59 f86f2b00 f9b47000   0     1    59  000084  3  netbsd  nfsd	 netcon f86f2122
   57 f86ebc00 f9b44000   0     1    57  000084  3  netbsd  mountd	 select f81a9840
   52 f86f0a00 f9b3b000   0     1    52  000084  3  netbsd  portmap	 select f81a9840
   23 f86c5400 f9b41000   0     1    23  000084  3  netbsd  mount_mfs	 mfsidl f86c7d80
   21 f86c5f00 f9b3e000   0     1    21  000084  3  netbsd  mount_portal select f81a9840
    2 f86b6200 f9b32000   0     0     0  000204  3  netbsd  pagedaemon   thrd_sleep f81b01f4
    1 f86b6500 f9b2e000   0     0     1  004084  3  netbsd  init	 wait f86b6500
    0 f81b18f8 f81ce000   0    -1     0  000204  3  netbsd  swapper	 scheduler f81b18f8
>Fix:
If only I knew how...
	
>Audit-Trail:
>Unformatted: