Subject: `panic: lockmgr' while running compat netbsd32 binaries
To: NetBSD amd64 <>
From: Nicolas Joly <>
List: port-amd64
Date: 12/01/2003 15:15:14

I just got a kernel crash while testing compat netbsd32 on our

The problem arise with this small program, compiled on i386 and run on
amd64 with compat netbsd32 :

#include <stdio.h>

int foo() { return 0; }

int main(int argc, char **argv) {

  printf("Hello World\n");

  exit(0); }

njoly@calimero [~]> while true; do ./a32.out; done
Hello World
Hello World
Hello World
Hello World
panic: lockmgr: processor 0, not exclusive lock holder 1 unlocking
Stopped at      netbsd:cpu_Debugger+0x1:
db{0}> bt
cpu_Debugger() at netbsd:cpu_Debugger+0x1
kernel: page fault trap, code=0
Faulted in DDB; continuing...

This is a GENERIC.MP kernel with the following 2 lines for the kernel
debugger :

options DDB
options DDB_ONPANIC=1

NetBSD 1.6ZF (CALIMERO) #1: Mon Dec  1 13:58:49 CET 2003

Thanks in advance,

Nicolas Joly

Biological Software and Databanks.
Institut Pasteur, Paris.