From nobody@FreeBSD.org  Thu Jun 12 14:38:05 2008
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 5E0EC1065670
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 12 Jun 2008 14:38:05 +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 516778FC21
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 12 Jun 2008 14:38:05 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.14.2/8.14.2) with ESMTP id m5CEc4aW087250
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 12 Jun 2008 14:38:04 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.14.2/8.14.1/Submit) id m5CEc4T4087249;
	Thu, 12 Jun 2008 14:38:04 GMT
	(envelope-from nobody)
Message-Id: <200806121438.m5CEc4T4087249@www.freebsd.org>
Date: Thu, 12 Jun 2008 14:38:04 GMT
From: David Markey <admin@dmarkey.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: FreeBSD-CURRENT Xen Kernel Segfaults when configuring apache
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         124516
>Category:       i386
>Synopsis:       [xen] FreeBSD-CURRENT Xen Kernel Segfaults when configuring apache
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-xen
>State:          feedback
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Jun 12 14:40:03 UTC 2008
>Closed-Date:    
>Last-Modified:  Mon Nov 29 05:30:12 UTC 2010
>Originator:     David Markey
>Release:        8-CURRENT
>Organization:
IBM
>Environment:
FreeBSD freebsd.dmarkey.com 8.0-CURRENT FreeBSD 8.0-CURRENT #0: Thu May 29 21:49:44 IST 2008     root@freebsd.dmarkey.com:/usr/obj/usr/src/projects/sys/XEN  i386

>Description:
I have built a Xen PAE kernel from cvsup10. The kernel performs OK until when i try to  make apache2 from ports, It gets to this stage:

checking for va_copy... yes
checking whether stdint.h conforms to C99... yes
checking whether strstr works in linear time...  


Then the Kernel segfaults with:

Freebsd kernel: SIGSEGV: pmap=0xc191ecac p=conftest va=0x0 ftype=0x1 eip=0x2814efb4 err=4 *pte=0x0000000000000000



The system then locks up totally.

Xen Config:

name = 'freebsd'
memory = '256'
vif  = [ 'mac=00:16:3e:00:93:01,bridge=br0' ]
disk = [ 'file:/mnt/vmachines/freebsd.filesystem,hdb1,w' ]
on_shutdown = 'destroy'
on_reboot = 'restart'
on_crash = 'destroy'
kernel = '/xen/freebsd/kernelbig'
extra += ",vfs.root.mountfrom=ufs:/dev/xbd833s1a"
extra += ",kern.hz=100"



My Dom0 is Opensuse 10.3 with xen 3.2, AMD64



>How-To-Repeat:
Build/Boot a FreeBSD Xen kernel, Try to build Apache2 from ports.
>Fix:


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-i386->kmacy 
Responsible-Changed-By: remko 
Responsible-Changed-When: Thu Jun 12 15:00:08 UTC 2008 
Responsible-Changed-Why:  
Hi Kip, would this something for you to investigate? eventhough we do xen work in p4? 

http://www.freebsd.org/cgi/query-pr.cgi?pr=124516 
Responsible-Changed-From-To: kmacy->freebsd-xen 
Responsible-Changed-By: cperciva 
Responsible-Changed-When: Mon Nov 29 05:20:40 UTC 2010 
Responsible-Changed-Why:  
Reassign to freebsd-xen since kmacy is inactive. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=124516 
State-Changed-From-To: open->feedback 
State-Changed-By: cperciva 
State-Changed-When: Mon Nov 29 05:23:44 UTC 2010 
State-Changed-Why:  
Place into feedback state awaiting confirmation of whether this 
problem still exists. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=124516 

From: Colin Percival <cperciva@freebsd.org>
To: bug-followup@FreeBSD.org, admin@dmarkey.com
Cc:  
Subject: Re: i386/124516: [xen] FreeBSD-CURRENT Xen Kernel Segfaults when
 configuring apache
Date: Sun, 28 Nov 2010 21:23:40 -0800

 Hi David,
 
 Are you still seeing this problem?  I've been able to build apache on a
 FreeBSD i386/PAE Xen/PV system recently.
 
 -- 
 Colin Percival
 Security Officer, FreeBSD | freebsd.org | The power to serve
 Founder / author, Tarsnap | tarsnap.com | Online backups for the truly paranoid
>Unformatted:
