From owner-freebsd-ports@FreeBSD.ORG Wed Feb 22 09:20:54 2012 Return-Path: Delivered-To: freebsd-ports@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id AF96A1065673; Wed, 22 Feb 2012 09:20:54 +0000 (UTC) (envelope-from avg@FreeBSD.org) Received: from citadel.icyb.net.ua (citadel.icyb.net.ua [212.40.38.140]) by mx1.freebsd.org (Postfix) with ESMTP id 606488FC0C; Wed, 22 Feb 2012 09:20:52 +0000 (UTC) Received: from porto.starpoint.kiev.ua (porto-e.starpoint.kiev.ua [212.40.38.100]) by citadel.icyb.net.ua (8.8.8p3/ICyb-2.3exp) with ESMTP id LAA22974; Wed, 22 Feb 2012 11:20:51 +0200 (EET) (envelope-from avg@FreeBSD.org) Received: from localhost ([127.0.0.1]) by porto.starpoint.kiev.ua with esmtp (Exim 4.34 (FreeBSD)) id 1S08NX-000PQf-6K; Wed, 22 Feb 2012 11:20:51 +0200 Message-ID: <4F44B362.7000103@FreeBSD.org> Date: Wed, 22 Feb 2012 11:20:34 +0200 From: Andriy Gapon User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:10.0.2) Gecko/20120218 Thunderbird/10.0.2 MIME-Version: 1.0 To: Doug Barton References: <4F44147C.8050905@FreeBSD.org> <4F442E1E.4010501@FreeBSD.org> <4F446391.4070101@FreeBSD.org> In-Reply-To: <4F446391.4070101@FreeBSD.org> X-Enigmail-Version: 1.3.5 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: freebsd-emulation@FreeBSD.org, decke@FreeBSD.org, FreeBSD ports list Subject: Re: Virtualbox 4.1.8 vboxdrv instantly panics on 8-stable i386 X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 22 Feb 2012 09:20:54 -0000 on 22/02/2012 05:40 Doug Barton said the following: > On 02/21/2012 15:51, Andriy Gapon wrote: >> Could you please substitute the attached patch file for the corresponding file >> in the port and re-test the port? > > Good news, the kernel didn't panic. Bad news: > > supdrvGipCreate: failed to allocate the GIP page. rc=-8 > vboxdrv: supdrvInitDevExt failed, rc=-8 > module_register_init: MOD_LOAD (vboxdrv, 0xc66f33e0, 0) error 12 Yeah, I kind of expected something like this, because the original panic was in a memory allocation failure path. As to why the memory allocation fails I have no immediate insights. Maybe you genuinely don't have enough contiguous pages below 4GB boundary... Perhaps you can add a printf in src/VBox/Runtime/r0drv/freebsd/memobj-r0drv-freebsd.c right after the vm_phys_alloc_contig() call to examine/validate its input parameters and return value. > and although kldstat shows the module as loaded, and the control panel > starts, when I try to launch a vm I get this: It's a long standing general FreeBSD issue that there is a disconnect between module loading and module initialization errors. > Kernel driver not installed (rc=-1908) > Make sure the kernel module has been loaded successfully. -- Andriy Gapon