Subject: Re: nfs crash
To: None <current-users@netbsd.org>
From: Matt Fredette <fredette@theory.lcs.mit.edu>
List: current-users
Date: 05/21/2002 12:21:28
Getting back to the "nfs crash" current-users thread from February
(see http://mail-index.netbsd.org/source-changes/2002/02/19/0024.html )

I think I'm still seeing this problem.  I'm working on the hp700 again, 
starting with a fresh checkout from May 14.

panic: kernel diagnostic assertion "cred != NULL" failed: file "/data/union-hp700-a/src/sys/nfs/nfs_socket.c", line 931

In case anyone could use more details, I'll leave the machine in kgdb 
for a couple of hours.  Here's the kgdb backtrace and the panic frame 
(ignore the dbl_fmpy symbol, it's just a kgdb/symbol table hiccup):

(gdb) where
#0  kgdb_connect (verbose=0x1)
    at /data/union-hp700-a/src/sys/arch/hppa/hppa/kgdb_hppa.c:259
#1  0x00207790 in kgdb_panic ()
    at /data/union-hp700-a/src/sys/arch/hppa/hppa/kgdb_hppa.c:274
#2  0x0014e204 in panic (
    fmt=0x27eaa4 "kernel %sassertion \"%s\" failed: file \"%s\", line %d\n")
    at /data/union-hp700-a/src/sys/kern/subr_prf.c:229
#3  0x0027eb28 in dbl_fmpy (srcptr1=0xc2d68, srcptr2=0xc2d74, dstptr=0x3a3, 
    status=0xc2da4) at /data/union-hp700-a/src/sys/lib/libkern/__assert.c:47
#4  0x000c2ea0 in nfs_request (vp=0x5ded9a0, mrest=0xb35200, procnum=0x7, 
    procp=0x5db9cb8, cred=0x0, mrp=0x5df1b3c, mdp=0x5df1b40, dposp=0x5df1b30)
    at /data/union-hp700-a/src/sys/nfs/nfs_socket.c:931
#5  0x000ddf7c in nfs_writerpc (vp=0x5ded9a0, uiop=0x5df19e8, 
    iomode=0x5df19dc, must_commit=0x5df19e0)
    at /data/union-hp700-a/src/sys/nfs/nfs_vnops.c:1253
#6  0x000b6bcc in nfs_doio (bp=0xb38000, p=0x5db9cb8)
    at /data/union-hp700-a/src/sys/nfs/nfs_bio.c:1052
#7  0x000f6000 in nfs_strategy (v=0x5df18c0)
    at /data/union-hp700-a/src/sys/nfs/nfs_vnops.c:2844
#8  0x001957e0 in VOP_STRATEGY (bp=0xb38000)
    at /data/union-hp700-a/src/sys/kern/vnode_if.c:102
#9  0x0019c848 in genfs_gop_write (vp=0x5ded9a0, pgs=0x5df16b0, npages=0x4, 
    flags=0x13) at /data/union-hp700-a/src/sys/miscfs/genfs/genfs_vnops.c:1413
#10 0x000bc674 in nfs_gop_write (vp=0x5ded9a0, pgs=0x5df16b0, npages=0x4, 
    flags=0x13) at /data/union-hp700-a/src/sys/nfs/nfs_node.c:336
#11 0x0019bef0 in genfs_putpages (v=0x5df1478)
    at /data/union-hp700-a/src/sys/miscfs/genfs/genfs_vnops.c:1247
#12 0x001974d0 in VOP_PUTPAGES (vp=0x5ded9a0, offlo=0x0, offhi=0x0, flags=0x13)
    at /data/union-hp700-a/src/sys/kern/vnode_if.c:1636
#13 0x000f60fc in nfs_flush (vp=0x5ded9a0, cred=0xb0af00, waitfor=0x0, 
    p=0x5db9cb8, commit=0x1)
    at /data/union-hp700-a/src/sys/nfs/nfs_vnops.c:2887
#14 0x000f607c in nfs_fsync (v=0x5df12f8)
    at /data/union-hp700-a/src/sys/nfs/nfs_vnops.c:2866
#15 0x00196264 in VOP_FSYNC (vp=0x5ded9a0, cred=0xb0af00, flags=0x0, 
    offlo=0x0, offhi=0x0, p=0x5db9cb8)
    at /data/union-hp700-a/src/sys/kern/vnode_if.c:662
#16 0x000d4150 in nfs_sync (mp=0xb31c00, waitfor=0x2, cred=0xb0af00, 
    p=0x5db9cb8) at /data/union-hp700-a/src/sys/nfs/nfs_vfsops.c:897
#17 0x0018d5dc in sys_sync (p=0x5db9cb8, v=0x5df1104, retval=0x5df1190)
    at /data/union-hp700-a/src/sys/kern/vfs_syscalls.c:581
#18 0x0020d90c in syscall (frame=0x5df1000, args=0x5df1104)
    at /data/union-hp700-a/src/sys/arch/hppa/hppa/trap.c:1006
(gdb) frame 4
#4  0x000c2ea0 in nfs_request (vp=0x5ded9a0, mrest=0xb35200, procnum=0x7, 
    procp=0x5db9cb8, cred=0x0, mrp=0x5df1b3c, mdp=0x5df1b40, dposp=0x5df1b30)
    at /data/union-hp700-a/src/sys/nfs/nfs_socket.c:931
931             KASSERT(cred != NULL);

Matt

-- 
Matt Fredette