Subject: panics with netbsd-2(-0) branch kernels
To: None <current-users@netbsd.org, netbsd-users@netbsd.org>
From: Markus W Kilbinger <kilbi@rad.rwth-aachen.de>
List: current-users
Date: 01/29/2005 22:31:46
Hi!

On one of our servers (i386) I see quite regularly kernel panics with
netbsd-2 and netbsd-2-0 branch kernels (same kernel configs):

  panic: lockmgr: locking against myself
  Stopped in pid 27878.1 (imapd) at       netbsd:cpu_Debugger+0x4:        popl    %
  ebp
  db> bt
  cpu_Debugger(c0416ea3,ce7ec4c8,c0296269,c04a92d8,c1af3a00) at netbsd:cpu_Debugge
  r+0x4
  panic(c0430540,0,ce7ec4fc,c0310433,c04b23c0) at netbsd:panic+0x12b
  lockmgr(ce4a66b4,2,0,201,c0ca3ec0) at netbsd:lockmgr+0x205
  nfs_doio_write(c2174c74,ce7ec5e4,ffffffff,0,40000) at netbsd:nfs_doio_write+0x17
  2
  nfs_doio(c2174c74,ce8b3b38,ce7ec66c,c2174c74,0) at netbsd:nfs_doio+0x91
  nfs_strategy(ce7ec654,d2092300,2,0,c03c1840) at netbsd:nfs_strategy+0x64
  VOP_STRATEGY(d2092300,c2174c74,0,ce7ec6e0,ce7ec6e4) at netbsd:VOP_STRATEGY+0x2a
  genfs_gop_write(d2092300,ce7ec72c,10000,0,ce7ec730) at netbsd:genfs_gop_write+0x
  457
  genfs_putpages(ce7ec884,c1f3d880,0,0,c03c1c00) at netbsd:genfs_putpages+0x8ef
  VOP_PUTPAGES(d2092300,0,0,0,0) at netbsd:VOP_PUTPAGES+0x42
  nfs_loadattrcache(ce7ec9a0,c1a19334,0,0,ce7ec92c) at netbsd:nfs_loadattrcache+0x
  318
  nfsm_loadattrcache(ce7ec9a0,ce7ec9bc,ce7ec9c0,0,0) at netbsd:nfsm_loadattrcache+
  0x90
  nfs_commit(d2092300,0,0,88000,ce8b3b38) at netbsd:nfs_commit+0x398
  nfs_doio_write(c2174e54,ce7ecac4,ffffffff,0,40000) at netbsd:nfs_doio_write+0x2f
  f
  nfs_doio(c2174e54,ce8b3b38,ce7ecb4c,c2174e54,0) at netbsd:nfs_doio+0x91
  nfs_strategy(ce7ecb34,d2092300,0,0,c03c1840) at netbsd:nfs_strategy+0x64
  VOP_STRATEGY(d2092300,c2174e54,0,ce7ecbc0,ce7ecbc4) at netbsd:VOP_STRATEGY+0x2a
  genfs_gop_write(d2092300,ce7ecc0c,10000,0,ce7ecc30) at netbsd:genfs_gop_write+0x
  457
  genfs_putpages(ce7ecd64,ffffffff,80001,0,c03c1c00) at netbsd:genfs_putpages+0x8e
  f
  VOP_PUTPAGES(d2092300,0,0,0,0) at netbsd:VOP_PUTPAGES+0x42
  vinvalbuf(d2092300,1,c1f3d880,ce8b3b38,100) at netbsd:vinvalbuf+0x3b
  nfs_vinvalbuf(d2092300,1,c1f3d880,ce8b3b38,1) at netbsd:nfs_vinvalbuf+0xf7
  nfs_setattr(ce7ece64,d2092300,ce7ece8c,c02d38a3,c03c1200) at netbsd:nfs_setattr+
  0xfb
  VOP_SETATTR(d2092300,ce7eceb4,c1f3d880,ce8b3b38,ce7eceb4) at netbsd:VOP_SETATTR+
  0x36
  sys_ftruncate(ce8a7df8,ce7ecf64,ce7ecf5c,ce8b3b38,1) at netbsd:sys_ftruncate+0x1
  9a
  syscall_plain() at netbsd:syscall_plain+0x85
  --- syscall (number 201) ---
  0xbd97e2da:
  db> 

Is this a know problem with recent netbsd-2(-0) changes? I cannot
remember seeing these pancis with a stock 2.0 kernel...

Markus.