Subject: Crash when compiling xenkernel3 on 4.99.45 i386 XEN3_DOM0
To: Current Users <current-users@netbsd.org>
From: Juraj Hercek <nbsd@hck.sk>
List: current-users
Date: 12/30/2007 17:29:01
Hi,

this is my second attempt to send message to mailing list. First one 
didn't reach the list - maybe because of attached crash screen shot in 
previous e-mail?

Anyways, I got the crash (mutex error) 2 times (one 1 day before 
yesterday, another one yesterday) when compiling xenkernel3 from pkgsrc. 
The crash is happening on current xen3 dom0 kernel (slightly adjusted 
config file) built on Thu Dec 27 12:41:54 CET 2007. This was the last 
line of pkgsrc's xenkernel3 build before crash:

./boot/mkelf32
/pkg_comp/obj/pkgsrc/sysutils/xenkernel3/default/xen-3.1.0-src/xen/xen-syms
/pkg_comp/obj/pkgsrc/sysutils/xenkernel3/default/xen-3.1.0-src/xen/xen
0x100000 \
         `nm -nr
/pkg_comp/obj/pkgsrc/sysutils/xenkernel3/default/xen-3.1.0-src/xen/xen-syms
| head -n 1 | sed -e 's/^\([^ ]*\).*/0x\1/'`

The hand rewritten crash screenshot:

Mutex error: mutex_vector_exit: assertion failed: 
MUTEX_OWNER(mtx->mtx_owner) == curthread

lock address : 0x00000000cca6bd00
current cpu  :                  0
current lwp  : 0x00000000ce8565c0
owner field  : 000000000000000000 wait/spin:        0/0

panic: lock error
Stopped in pid 10322.1 (nm) at netbsd:breakpoint+0x1: ret
db> bt
breakpoint(c08fb339,c08f78e3,c0777e30,c08f79ec,cca6bd00)
at netbsd:breakpoint+0x1
lockdebug_abort(cca6bd00,c0969bf8,c0777e30,c08f79ec,c0a1b56c)
at netbsd:lockdebug_abort+0x61
mutex_abort(cca6bd00,c0777e30,c08f79ec,c16fc1d0,d286ca58)
at netbsd:mutex_abort+0x34
mutex_vector_exit(cca6bd00,4,2,c16fc1d0,2)
at netbsd:mutex_vector_exit+0xcf
pipe_write(ccee87c0,ccee87ec,ccbffbac,d1883840,1)
at netbsd:pipe_write+0x1a0
dofilewrite(1,ccee87c0,bb922000,4000,ccee87ec)
at netbsd:dofilewrite+0x74
sys_write(ce8565c0,ccbffc30,ccbffc58,bb925000,bb925000)
at netbsd:sys_write+0xa3
syscall(ccbffc78,1f,1f,1f,1f)
at netbsd:syscall+0x125
db>


Hope that helps.

-- Juraj