From owner-freebsd-ports@freebsd.org Wed Jan 25 09:00:59 2017 Return-Path: Delivered-To: freebsd-ports@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 8759BCC14A9 for ; Wed, 25 Jan 2017 09:00:59 +0000 (UTC) (envelope-from graham@menhennitt.com.au) Received: from homiemail-a69.g.dreamhost.com (sub5.mail.dreamhost.com [208.113.200.129]) (using TLSv1.1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 6ADB81F25; Wed, 25 Jan 2017 09:00:58 +0000 (UTC) (envelope-from graham@menhennitt.com.au) Received: from homiemail-a69.g.dreamhost.com (localhost [127.0.0.1]) by homiemail-a69.g.dreamhost.com (Postfix) with ESMTP id 1D36A48000B35; Wed, 25 Jan 2017 01:00:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=menhennitt.com.au; h= subject:to:references:cc:from:message-id:date:mime-version :in-reply-to:content-type:content-transfer-encoding; s= menhennitt.com.au; bh=QHE1ooHnN9/488f33nMZi60OD0c=; b=CY3sgAPh1R FXrYTNndD6AO/d3Z/GHCOHk3mx1+39ScIbBY5v1mimRtzw3rEQ/6u6S5YO+H/NBV j0vAT7M5y4zZ9l396EvDZlJGR1h8uFIFoK47kC4845pLHgn5P3+XAea/Tfpufaha +fjyecUiGNUJK2kR/wcm8l3nuGWnbJpCc= Received: from [203.2.73.68] (c122-107-214-88.mckinn3.vic.optusnet.com.au [122.107.214.88]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: graham@menhennitt.com.au) by homiemail-a69.g.dreamhost.com (Postfix) with ESMTPSA id E599A48000B33; Wed, 25 Jan 2017 01:00:50 -0800 (PST) Subject: Re: VirtualBox port not working with USB To: Hans Petter Selasky , Alfred Perlstein References: <49a336e6-3954-1536-6a59-150bb63e667a@menhennitt.com.au> <442573a6-27f9-2eb3-39ef-334a61dbce1b@freebsd.org> <8e7ce173-63d9-4466-6f33-d96d4f17f48e@selasky.org> <4688B879-09A3-40FC-8018-F25A41ECA426@freebsd.org> Cc: vbox@FreeBSD.org, jkim@freebsd.org, freebsd-ports@freebsd.org From: Graham Menhennitt Message-ID: <29d063b6-1f47-8540-36a9-44508ad7a0e1@menhennitt.com.au> Date: Wed, 25 Jan 2017 20:00:49 +1100 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:45.0) Gecko/20100101 Thunderbird/45.6.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 25 Jan 2017 09:00:59 -0000 On 25/01/2017 00:43, Hans Petter Selasky wrote: > On 01/24/17 12:03, Graham Menhennitt wrote: >> On 24/01/2017 04:19, Alfred Perlstein wrote: >>> Graham, can you follow what Hans is asking and report back please? >>> >>> >>>> On Jan 23, 2017, at 8:14 AM, Hans Petter Selasky >>>> wrote: >>>> >>>> >>>> There hasn't been any big changes in the FreeBSD userspace interfaces >>>> used by virtualbox for a while. Maybe you can try to collect output >>>> from "usbdump -i usbusX -f Y -s 65536 > log.txt" where X and Y are >>>> the numbers after ugenX.Y for the device in question. I'll give >>>> virtualbox from FreeBSD ports a spin and see if there is something >>>> obvious broken. >>>> >> > > > Can you compile VirtualBox with full debugging enabled (make config > and add all debug flags before building) and capture the resulting > debug log(s) and send to me? > > There are some debug prints in "USBProxyBackendFreeBSD.cpp" and > "USBProxyDevice-freebsd.cpp" which I need to see and you should see > them too when you add/remove USB devices. Hans, I think that this is what you're after. If not, I can have another go. But it dies pretty quickly so I'm not sure what more I can do. Thanks, Graham Log created: 2017-01-25T08:38:42.439099000Z Executable: /usr/local/lib/virtualbox/VBoxSVC Arg[0]: /usr/local/lib/virtualbox/VBoxSVC Arg[1]: --auto-shutdown !!Assertion Failed!! Expression: mUniState == kHostUSBDeviceState_DetachingFromVM || (mUniState == kHostUSBDeviceState_UsedByVM && aAbnormal) Location : /usr/ports_build/usr/data/FreeBSD/ports/emulators/virtualbox-ose/work/VirtualBox-5.1.14/src/VBox/Main/src-server/HostUSBDeviceImpl.cpp(671) nsresult HostUSBDevice::i_onDetachFromVM(SessionMachine *, bool, bool *, bool) {EPSON EPSON Scanner} CapturingForVM !!Assertion Failed!! Expression: aReason == Uninit::Abnormal Location : /usr/ports_build/usr/data/FreeBSD/ports/emulators/virtualbox-ose/work/VirtualBox-5.1.14/src/VBox/Main/src-server/MachineImpl.cpp(12749) void SessionMachine::uninit(Uninit::Reason) !!Assertion Failed!! Expression: SUCCEEDED(rc) Location : /usr/ports_build/usr/data/FreeBSD/ports/emulators/virtualbox-ose/work/VirtualBox-5.1.14/src/VBox/Main/glue/initterm.cpp(636) nsresult com::Shutdown() COM RC = NS_ERROR_UNEXPECTED (0x8000FFFF)