From nobody@FreeBSD.org  Mon May 31 15:45:19 2010
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 55C61106566C
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 31 May 2010 15:45:19 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21])
	by mx1.freebsd.org (Postfix) with ESMTP id 2C15C8FC14
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 31 May 2010 15:45:19 +0000 (UTC)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.14.3/8.14.3) with ESMTP id o4VFjJoi090535
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 31 May 2010 15:45:19 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.14.3/8.14.3/Submit) id o4VFjIPv090534;
	Mon, 31 May 2010 15:45:18 GMT
	(envelope-from nobody)
Message-Id: <201005311545.o4VFjIPv090534@www.freebsd.org>
Date: Mon, 31 May 2010 15:45:18 GMT
From: Yuriy Kohut <ykohut@onapp.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: 8.0-RELEASE-p3 i386 Xen DomU kernel panic at xen_machdep.c
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         147250
>Category:       kern
>Synopsis:       8.0-RELEASE-p3 i386 Xen DomU kernel panic at xen_machdep.c
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon May 31 15:50:01 UTC 2010
>Closed-Date:    Mon May 31 17:52:26 UTC 2010
>Last-Modified:  Mon May 31 17:52:26 UTC 2010
>Originator:     Yuriy Kohut
>Release:        8.0-RELEASE-p3
>Organization:
UK2
>Environment:
FreeBSD freebsd 8.0-RELEASE-p3 FreeBSD 8.0-RELEASE-p3 #1: Mon May 31 20:17:57 EEST 2010     root@fbsd.devel:/mnt/usr/src/sys/XEN  i386
>Description:
panic: mutex vm page queue mutex not owned at /usr/src/sys/i386/xen/xen_machdep.c:409
cpuid = 0
KDB: enter: panic
[thread pid 7893 tid 100049 ]
Stopped at      kdb_enter+0x3a: movl    $0,kdb_why
db> where
Tracing pid 7893 tid 100049 td 0xc184d900
kdb_enter(c035e1a4,c035e1a4,c035c895,cc7efae0,0,...) at kdb_enter+0x3a
panic(c035c895,c03642bc,c038935d,199,cc7efb14,...) at panic+0x136
_mtx_assert(c054c044,4,c038935d,199,0,...) at _mtx_assert+0x87
_xen_queue_pt_update(31552320,1,328ab000,1,c038a9dd,...) at _xen_queue_pt_update+0x4c
pmap_extract(c19f4288,28202000,4,c035c91d,c19f4288,...) at pmap_extract+0x251
vm_fault_unwire(c19f41d8,28202000,28203000,0,0,...) at vm_fault_unwire+0x32
vm_map_delete(c19f41d8,1000,bf800000,1,c19f41d8,...) at vm_map_delete+0x16f
vm_map_remove(c19f41d8,1000,bf800000,0,c186d000,...) at vm_map_remove+0x51
vmspace_exit(c184d900,0,c0359432,12d,cc7efc90,...) at vmspace_exit+0xbf
exit1(c184d900,0,cc7efd3c,c03348a3,c184d900,...) at exit1+0x5db
sys_exit(c184d900,cc7efd08,4,c03649b8,c039cc9c,...) at sys_exit+0x1d
syscall(cc7efd48) at syscall+0x2a3
Xint0x80_syscall() at Xint0x80_syscall+0x22
--- syscall (1, FreeBSD ELF32, sys_exit), eip = 0x281000af, esp = 0xbf7fe74c, ebp = 0xbf7fe758 ---

>How-To-Repeat:
1. Install FreeBSD paravirtualized DomU according to the HOWTO at:
http://forums.freebsd.org/showthread.php?t=10268


2. The only difference from the original HOWTO is guest disk based on real Linux LVM volume instead of file image.


3. Xen and Dom0 details
Linux xen0.vps 2.6.18-164.15.1.el5xen #1 SMP Wed Mar 17 12:04:23 EDT 2010 x86_64 x86_64 x86_64 GNU/Linux

CentOS release 5.4 (Final)

Xen version: 3.4.2


4. Log into FreeBSd DomU via ssh and run 'sysinstall' to install ports collection.


5. Enter /usr/ports/lang/ghc and run 'make'


6. The last STDOUT message is the following 'configure' string:
--
checking whether mlock is broken...
--

7. Check FreeBSD main console output
>Fix:


>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: linimon 
State-Changed-When: Mon May 31 17:52:05 UTC 2010 
State-Changed-Why:  
Duplicate of kern/147248. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=147250 
>Unformatted:
