Subject: Re: ddb sync ... panic: lockmgr: locking against myself
To: Christos Zoulas <christos@astron.com>
From: Nicolas Joly <njoly@pasteur.fr>
List: current-users
Date: 08/11/2006 22:57:35
On Fri, Aug 11, 2006 at 02:52:05AM +0000, Christos Zoulas wrote:
> In article <20060810224502.GA89041@medusa.sis.pasteur.fr>,
> Nicolas Joly  <njoly@pasteur.fr> 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 ?
> >
> No hint, but I have not been able to sync from ddb on my mp machine...

In the mean time, i recompiled my kernel with DIAGNOSTIC, DEBUG and
LOCKDEBUG options. And this time i got another panic, related to APM
emulation under ACPI ...

simplelock: uninitialized lock
lock: 0xc076c420, currently at: /local/src/NetBSD/src/sys/kern/kern_lock.c:561
uvm_fault(0xc078c0a0, 0, 1) -> 0xe
kernel: supervisor trap page fault, code=0
stopped in ppid 0.1 (swapper) at netbsd:db_read_bytes+0x2f: movl 0(%esi),%eax

[...]
apm0 at acpi0: Power Management spec V1.2
uvm_fault(0xc078c0a0, 0, 1) -> 0xe
db_read_bytes(2,4,c084a6cc,246,c084a6ec) at netbsd:db_read_bytes+0x2f
db_get_value(2,4,0,c04249cd,2) at netbsd:db_get_value+0x18
db_numargs(2,c084a764,c084a71c,0,6372732f) at netbsd:db_numargs+0x12
db_stack_trace_print(c084a7bc,1,ffff,c06b81e7,c0380574) at netbsd:db_stack_trace_print+0x262
_simple_lock(c076c420,c06dc6a8,231,0,0) at netbsd:_simple_lock+0xc6
_lockmgr(c076c420,2,0,c06bd2fc,b4) at netbsd:_lockmgr+0x47
sysmonioctl_envsys(0,c0204502,c084a8e8,0,0) at netbsd:sysmonioctl_envsys+0x142
acpiapm_get_powstat(c0ec4500,0,c084a93c,0,c0e93800) at netbsd:acpiapm_get_powstat+0xb9
apm_attach(c0e93800,c0e93800,0,0,c0ec4500) at netbsd:apm_attach+0x111
config_attach_loc(c0ec4500,c070c0d8,0,0,0) at netbsd:config_attach_loc+0x307
config_found_ia(c0ec4500,c0684840,0,0,c0df1ea0) at netbsd:config_found_ia+0x1b
acpi_attach(c0e47f80,c0ec4500,c084ab18,0,c0e47f80) at netbsd:acpi_attach+0x27d
config_attach_loc(c0e47f80,c070c708,0,c084ab18,0) at netbsd:config_attach_loc+0x307
config_found_ia(c0e47f80,c068488c,c084ab18,0,c0716b94) at netbsd:config_found_ia+0x1b
mainbus_attach(0,c0e47f80,0,c039df59,c078c7c0) at netbsd:mainbus_attach+0x1d3
config_attach_loc(0,c070b838,0,0,0) at netbsd:config_attach_loc+0x307
config_attach(0,c070b838,0,0,c0847010) at netbsd:config_attach+0x19
config_rootfound(c0684225,0,c084ac38,c0423112,847000) at netbsd:config_rootfound+0x27
cpu_configure(0,c0847010,c084ac78,c036d7aa,0) at netbsd:cpu_configure+0x29
configure(0,0,0,0,0) at netbsd:configure+0x2b

-- 
Nicolas Joly

Biological Software and Databanks.
Institut Pasteur, Paris.