From owner-freebsd-emulation@FreeBSD.ORG Fri Jan 14 18:46:11 2011 Return-Path: Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 78E6610656CD for ; Fri, 14 Jan 2011 18:46:11 +0000 (UTC) (envelope-from rnejdl@ringofsaturn.com) Received: from tethys.ringofsaturn.com (tethys.ringofsaturn.com [71.252.219.43]) by mx1.freebsd.org (Postfix) with ESMTP id 4CB7E8FC08 for ; Fri, 14 Jan 2011 18:46:10 +0000 (UTC) Received: from ASSP.nospam (tethys [71.252.219.43]) (authenticated bits=0) by tethys.ringofsaturn.com (8.14.4/8.14.4) with ESMTP id p0EIXioS023915 for ; Fri, 14 Jan 2011 12:33:45 -0600 (CST) (envelope-from rnejdl@ringofsaturn.com) Received: from mail.ringofsaturn.com ([71.252.219.43] helo=mail.ringofsaturn.com) with IPv4:25 by ASSP.nospam; 14 Jan 2011 12:33:44 -0600 MIME-Version: 1.0 Date: Fri, 14 Jan 2011 12:33:44 -0600 From: Rusty Nejdl To: Mail-Reply-To: In-Reply-To: <4FB8F3A5-D455-4F55-AC14-24ADC7A38DA2@gmail.com> References: <4FB8F3A5-D455-4F55-AC14-24ADC7A38DA2@gmail.com> Message-ID: <12c45790b6d0030a53555fcc3c56cde8@ringofsaturn.com> X-Sender: rnejdl@ringofsaturn.com User-Agent: Roundcube Webmail/0.6-svn Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: Re: Debugging virtualbox "bus error: 10" ? X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: rnejdl@ringofsaturn.com List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 14 Jan 2011 18:46:11 -0000 On Thu, 13 Jan 2011 19:17:22 -0600, Alex Anagnos wrote: > I have VirtualBox OSE 3.2.12 and FreeBSD 8.0-RELEASE. > > This situation is rather unique. > The system setup uses "likewise" to provide Windows Domain auth/login, that is working fine. > > My problem is then when i log in using a domain account and try to start VirtualBox (via command line: $VirtualBox). > All the output i get is > "Bus error: 10" > and for a small small fraction of a second the beginning of a GUI window.. > > If i log into the box with a local account (non domain), everything works just fine. > > Both accounts are in the vboxusers group and the group rights are working correctly. > > In my efforts to figure out why things don't work i've tried starting VirtualBox in gdb, only to find that the VirtualBox executable uses the set uid flag to get an euid of 0. > gdb strips that flag for security reasons, thus all i get is an euid error out of virtualbox, joy.. > > Doing a su to root and trying that way makes it fail to find X11 display. > But since this is probably something permissions wise, i'd hazard running a root would fix it anyway, not something that would help.. > > next up i tried tress, that didn't care about the set uid flag so i got some info out of it. > sadly there was nothing in there that looked erroneous that wasn't present in a tress from the working account.. > > Since VirtualBox i was giving a "Bus error: 10" i looked though the man pages and found the default action for "Bus error" is to make a core dump. > Looking through the entire harddrive i've failed to find any *.core files.. > Looking back at the tress, i can see the VirtualBox is exiting with status 0, i guess that is why i don't get a core dump. > > Trying other things i found that everything that does not use a GUI looks to be working.. > I can start a VM using Headless, and vboxmanage works so long as i don't try to "startvm". > > Since it is a buss error, and at least according to syslog that message came from the kernel. > All i can think of left to try is to enable KTRACE in my kernel and hope that will point me somewhere.. > But i'm thinking it won't, since the GUI is not even starting all the way. > I'd hazard a guess that VirtualBox does not even begin to make use of vboxdrv until you actually start a VM, which works in headless.. > > _______________________________________________ > freebsd-emulation@freebsd.org [1] mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-emulation [2] > To unsubscribe, send any mail to "freebsd-emulation-unsubscribe@freebsd.org [3]" The only thing I could come up with was permissions since many of the VBox binaries are SUID. However, I cannot find any difference externally for the headless binary and the others. Other thoughts have to do with permissions to the X process that you are granted when you log on to the domain. Rusty Nejdl Links: ------ [1] mailto:freebsd-emulation@freebsd.org [2] http://lists.freebsd.org/mailman/listinfo/freebsd-emulation [3] mailto:freebsd-emulation-unsubscribe@freebsd.org