Subject: kern/36296: LFS kernel panic
To: None <,,>
From: None <>
List: netbsd-bugs
Date: 05/08/2007 10:10:00
>Number:         36296
>Category:       kern
>Synopsis:       LFS kernel panic
>Confidential:   no
>Severity:       critical
>Priority:       medium
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue May 08 10:10:00 +0000 2007
>Originator:     Alaric Snell-Pym
>Release:        NetBSD 4.0_BETA2 (lfs_segment.c rel 1.195)
   System: NetBSD curiosity 4.0_BETA2 NetBSD 4.0_BETA2 (CURIOSITY) #2: Mon Apr 30 1
   9:18:37 BST 2007 root@curiosity:/usr/obj/sys/arch/i386/compile/CURIOSITY i386
   Architecture: i386
   Machine: i386 

   Running an NFS server on top of LFS, in Xen DOM0, then in DOMU doing pkgsrc
   builds from said NFS mount, when building security/sudo, it gets to:

   ===> Extracting for libtool-base-1.5.22nb4

   Then dom0 panics:

   panic: kernel diagnostic assertion "LIST_FIRST(&vp->v_dirtyblkhd) == NULL" faile
   d: file "/usr/src/sys/ufs/lfs/lfs_segment.c", line 479

   I painstakingly hand-copied the ddb backtrace (hope I didn't make any typos!):

   lfs_vflush(c8d65d80,0,0,1,0) at netbsd:lfs_vflush+0xe90
   lfs_fsync(c65cd868,8000,c65cd88c,c04387e1,c65cd878) at netbsd:lfs_fsync+0xb2
   VOP_FSYNC(c65cd868,c8ace0cc,1,8000,0_ at netbsd:VOP_FSYNC+0x49
   nfsrv_commit(c8cadd5c,c0aa7400,c8d2f008,c65cdab4,c07ff048) at netbsd:nfsrv_commi
   nfssvc_nfsd(c65cdb0c,804a2c0,c8d2f008,4,3) at netbsd:nfssvc_nfsd+0x5b1


   Running "pkg_chk -a" in my domU. It starts on security/sudo,
   which depends on libtool-base, and dies on extraction thereof.


   No idea yet :-(