Subject: i386 kernel crash "cksum: out of data"
To: None <current-users@NetBSD.ORG>
From: Luke Mewburn <lukem@telstra.com.au>
List: current-users
Date: 05/01/1995 11:02:20
Whilst upgrading a machine to the sources of the last sup (950430),
I had a kernel fault. (Actually, I've had at least another a few days
ago, but back then I didn't have a console open to see the output of
the crash; I only had the db> prompt.)

[ I'm running on serial console & serial boot blocks. For a long time I
  had serial console just via the lack of the 'pc0' or 'vt0' device, but
  I recently defined COMCONSOLE=0 to get the 'break jumps into ddb'
  functionality, but that isn't working (see associated send-pr) ]

Anyway, this time I actually had the serial console open so
I managed to get acopy of the error.  The output of some DDB
commands follows. If (in the future) I have another problem, is
there any other commands or output that may be useful in helping
people trace the problem?

Also, this is just a pure cut-n-paste. The machine was sitting at the
prompt when the message was written. There wasn't any major disk
activity at the time (the compile I started in an xterm remote logged
in had finished way before the crash occurred...)

--- cut here --- file: netbsd.crash
root@karybdis 20 /usr/src# cksum: out of data
vm_fault(f86e6a00, beefd000, 1, 0) -> 1
kernel: page fault trap, code=0
Stopped at      _end+0x51fc02:  lodsl   (%esi)
db> 

db> trace  
_end(f8713400,f8714e00,f7bfff18,f8713400,f7bfff18) at _end+0x51fc02
_ufs_lookup(f7bffd80,f8681780,f7bfff18,f7bffef4,f86e2020) at _ufs_lookup+0xc06
_lookup(f7bffef4,0,f7bffef4,1,f871d3d9) at _lookup+0x257
_namei(f7bffef4,0,2938,f8775680,f8776000) at _namei+0x16b
_vn_open(f7bffef4,1,1a4,c,f86e4200) at _vn_open+0x188
_open(f86e4200,f7bfff98,f7bfff90,0,10076934) at _open+0x91
_syscall() at _syscall+0x1e6
--- syscall (number 5) ---
0x10053313:

db> ps
  pid proc     addr     uid  ppid  pgrp  flag stat em  comm         wchan
  129 f8744300 f982c000   0     1   129  004086  3  netbsd  tcsh   ttyin f868f1
00
  117 f873ce00 f985f000   0     1   117  000084  3  netbsd  rpc.bootparamd   se
lect f81b5d4c
  114 f8736a00 f985c000   0     1   114  000084  3  netbsd  rarpd   select f81b
5d4c
  111 f8725100 f9859000   0     1   111  000084  3  netbsd  inetd   select f81b
5d4c
  108 f8725800 f9853000   0     1   108  000084  3  netbsd  sendmail   netcon f
873c422
  104 f870ea00 f9850000   0     1   104  000084  3  netbsd  lpd   select f81b5d
4c
  100 f870c400 f984d000   0     1   100  000084  3  netbsd  routed   select f81
b5d4c
   96 f870cc00 f984a000   0     1    96  000084  3  netbsd  cron   pause f984a1
0c
   94 f870ca00 f9847000   0     1    94  000084  3  netbsd  update   pause f984
710c
   79 f86e4200 f9844000   0     1    79  000004  2  netbsd  syslogd
   73 f86e9500 f9841000   0     1    69  000084  3  netbsd  nfsiod   nfsidl f81
b58ec
   72 f86e9800 f983e000   0     1    69  000084  3  netbsd  nfsiod   nfsidl f81
b58e8      
   71 f86e9b00 f983b000   0     1    69  000084  3  netbsd  nfsiod   nfsidl f81
b58e4
   70 f86e9e00 f982f000   0     1    69  000084  3  netbsd  nfsiod   nfsidl f81
b58e0
   64 f86e6200 f9832000   0     1    64  000084  3  netbsd  portmap   select f8
1b5d4c
   21 f8694000 f9835000   0     1    21  000084  3  netbsd  mount_mfs   mfsidl f
8697a00
    2 f868fd00 f9829000   0     0     0  000204  3  netbsd  pagedaemon   thrd_s
leep f81bafe8
    1 f8688000 f9825000   0     0     1  004084  3  netbsd  init   wait f868800
0
    0 f81bcad4 f81da000   0    -1     0  000204  3  netbsd  swapper   scheduler
 f81bcad4

db> continue
vm_fault(f86e6a00, beefd000, 1, 0) -> 1
kernel: page fault trap, code=0
Stopped at      _end+0x51fc02:  lodsl   (%esi)

--- cut here ---

-- 
Luke Mewburn, <lukem@telstra.com.au>
`Think of it as Evolution in Action.' - "Oath of Fealty", Niven & Pournelle