Subject: Re: serious bug / panic with nfsd/softdep (ubc?) (kern/11906?)
To: None <current-users@netbsd.org>
From: Izumi Tsutsui <tsutsui@ceres.dti.ne.jp>
List: current-users
Date: 03/11/2001 05:06:27
In <200103101916.f2AJGEJ19513@mirage.ceres.dti.ne.jp>
I wrote:

> In <15018.30367.475936.397147@gaia.radiologie.rad.klinikum.rwth-aachen.de>
> kilbi@rad.rwth-aachen.de wrote:

> >   panic: softdep-pageiodone: resid < 0, vp 0xe5dd98d4 lbn pcbp 0xe5c9108
> >   Stopped in pid 143 (nfsd) at    cpu_Debugger+0x04:       leave
> 
> I got the same panic several times on 1.5S/arm32 under heavy nfs load.
> The filesystem is mounted with softdep but does not use raidframe.

I've got the panic again. The kernel is build from today's source tree.
I cannot get crash dump, but DDB stack trace is here:

panic: softdep_pageiodone: resid < 0, vp 0xf3a96610 lbn 0x1 pcbp 0xf3ac21a0
Stopped in pid 168 (nfsd) at	_cpu_Debugger+0x10:	ldmdb	r11, {r11, r13, r15}
db> trace
_cpu_Debugger(_cpu_Debugger+0x10)
_panic(_panic+0x14)
_softdep_pageiodone(_softdep_pageiodone+0x10)
_genfs_putpages(_genfs_putpages+0x10)
_VOP_PUTPAGES(_VOP_PUTPAGES+0x10)
_uvn_attach(uvn_attach_0xdfc)
_uvm_pager_put(_uvm_pager_put+0x10)
_uvn_attach(_uvn_attach+0x374)
_ffs_write(_ffs_write+0x10)
_VOP_WRITE(_VOP_WRITE+0x10)
_nfsrv_write(_nfsrv_write+0x10)
_nfssvc_nfsd(_nfssvc_nfsd+0x10)
_sys_nfssvc(_sys_nfssvc+0x10)
_syscall(_syscall+0x10)
db> c
boot: howto=00000100 curproc=0xf3a71008
syncing disks... panic: lockmgr: locking against myself
Stopped in pid 168 (nfsd) at	_cpu_Debugger+0x10:	ldmdb	r11, {r11, r13, r15}
db> c
boot: howto=00000104 curproc=0xf3a71008

dumping to dev 16,1 offset 181392
dump 0 panic: pmap_remove_pv: lost entry
Stopped in pid 168 (nfsd) at	_cpu_Debugger+0x10:	ldmdb	r11, {r11, r13, r15}
db> trace
_cpu_Debugger(_cpu_Debugger+0x10)
_panic(_panic+0x14)
_pmap_remove_pv(_pmap_remove_pv+0x10)
_pmap_enter(_pmap_enter+0x10)
_dumpsys(_dumpsys+0x10)
_cpu_reboot(_cpu_reboot+0x10)
_panic(_panic+0x14)
_lockmgr(_lockmgr+0x10)
_genfs_lock(_genfs_lock+0x10)
_VOP_LOCK(_VOP_LOCK+0x10)
_vn_lock(_vn_lock+0x10)
_vget(_vget+0x10)
_ffs_sync(_ffs_sync+0x10)
_sys_sync(_sys_sync+0x10)
_vfs_shutdown(_vfs_shutdown+0x10)
_bootsync(_bootsync+0x10)
_cpu_reboot(_cpu_reboot_0x10)
_panic(_panic+0x14)
_softdep_pageiodone(_softdep_pageiodone+0x10)
 :

---
Izumi Tsutsui
tsutsui@ceres.dti.ne.jp