From owner-freebsd-emulation@FreeBSD.ORG Fri Jan 14 01:42:24 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 009D01065672 for ; Fri, 14 Jan 2011 01:42:24 +0000 (UTC) (envelope-from woodshop2300@gmail.com) Received: from mail-iy0-f182.google.com (mail-iy0-f182.google.com [209.85.210.182]) by mx1.freebsd.org (Postfix) with ESMTP id BABA48FC1E for ; Fri, 14 Jan 2011 01:42:23 +0000 (UTC) Received: by iyb26 with SMTP id 26so2176885iyb.13 for ; Thu, 13 Jan 2011 17:42:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:from:content-type:content-transfer-encoding :subject:date:message-id:to:mime-version:x-mailer; bh=IsoQKsR/8hPVVLbRCbiGdkPGKXKlUsJRY5naV5o0Byo=; b=n/F88EYdnnH6OFVf3qVadOMx+LLzF8EGIpWkiu+iT0ukql0+1ETT+ooqdtABspA4NJ 5AUbsXHZutLf/0KjywLpkD6qne4DLDycrj2L0BtyHRFket+is4xJ2LiU9UecEfunc+Mf XJestqxNqJg9IcaT636DWvR+hhwzd8xMISGyI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:content-type:content-transfer-encoding:subject:date:message-id :to:mime-version:x-mailer; b=gKJVjnPK+qJEUAp/3O9acQL/mc7aKRbSpjSyjTgYXW198ahAwSZ7Q67kwmUYdZ11on GCaMl7OC0+LGyVAdVi4PSpU+DweUjqAmK1OQRXlw7B4Y2qhhrEOtEAIEhcrsHskOn/Xw Z3Q/Biur7pXq5jNcIkk8Jy9H64oP77UsGbUCY= Received: by 10.42.164.71 with SMTP id f7mr157632icy.168.1294967843127; Thu, 13 Jan 2011 17:17:23 -0800 (PST) Received: from [192.200.0.248] (cpe-173-89-38-154.wi.res.rr.com [173.89.38.154]) by mx.google.com with ESMTPS id u5sm412356ics.18.2011.01.13.17.17.22 (version=TLSv1/SSLv3 cipher=RC4-MD5); Thu, 13 Jan 2011 17:17:22 -0800 (PST) From: Alex Anagnos Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Date: Thu, 13 Jan 2011 19:17:22 -0600 Message-Id: <4FB8F3A5-D455-4F55-AC14-24ADC7A38DA2@gmail.com> To: freebsd-emulation@freebsd.org Mime-Version: 1.0 (Apple Message framework v1082) X-Mailer: Apple Mail (2.1082) Subject: Debugging virtualbox "bus error: 10" ? X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list 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 01:42:24 -0000 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=20 "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..