Subject: Re: ddb sync ... panic: lockmgr: locking against myself
To: Pavel Cahyna , Nicolas Joly <njoly@pasteur.fr>
From: Nicolas Joly <njoly@pasteur.fr>
List: current-users
Date: 08/11/2006 23:02:41
On Fri, Aug 11, 2006 at 10:24:47AM +0200, Pavel Cahyna wrote:
> On Fri, Aug 11, 2006 at 12:45:02AM +0200, Nicolas Joly wrote:
> > 
> > Hi,
> > 
> > While playing with SVN head ScummVM emulator, i'm experiencing kernel
> > panics. This is on my i386 laptop running -current 4.99.1, and this
> > host is currently missing a serial port ... no remote console.
> > 
> > The problem is that blindly typing `sync', from X, does not do
> > anything. I have to issue it twice to get the expected kernel core
> > file. The first call seems to produce another panic (panic: lockmgr:
> > locking against myself) which hide the real problem ...
> > 
> > Any hint to get around this problem ?
> 
> reboot 0x104
> 
> please do also "bt/l" before to save the backtrace.
> 
> Or you can use sysctl -w ddb.tee_msgbuf=1.

Thanks, that did the trick.

I'm now getting the following backtrace:

uvm_fault(0xc07325a0, 0, 1) -> 0xe
kernel: supervisor trap page fault, code=0
Stopped in pid 1298.2 (scummvm) at    netbsd:uvm_rb_insert+0x2b:      movl    0x20(%eax),%eax

uvm_rb_insert(c07143e0,cb99006c,cb941000,cb91eab0,20) at netbsd:uvm_rb_insert+0x2b
uvm_unmap_remove(c07143e0,cb941000,cb942000,cb91eabc,cb91eab0) at netbsd:uvm_unmap_remove+0x280
uvm_unmap1(c07143e0,cb941000,cb942000,2800000,cb93e668) at netbsd:uvm_unmap1+0xa7
kmem_backend_free(0,cb941000,1000,c0381c4c,cb93e668) at netbsd:kmem_backend_free+0x19
kmem_free(cb941000,32c,0,cb8c3ed0,cb8c3ed0) at netbsd:kmem_free+0x17
amap_free(cb93e668,0,cb,0,cb8e7690) at netbsd:amap_free+0x34
uvm_unmap_detach(cb8c5e70,0,cb91eb8c,c0371349,cb8e7690) at netbsd:uvm_unmap_detach+0x2f
uvmspace_free(cb870544,ca77be90,0,ca77be90,cb91ebe0) at netbsd:uvmspace_free+0x94
exit1(cb8397a8,0,cb8c4064,cb8397a8,0) at netbsd:exit1+0x1a1
sys_exit(cb8397a8,cb91ec48,cb91ec68,0,cb91ec40) at netbsd:sys_exit+0x31
syscall_plain() at netbsd:syscall_plain+0x155
--- syscall (number 1) ---

-- 
Nicolas Joly

Biological Software and Databanks.
Institut Pasteur, Paris.