From owner-freebsd-emulation@FreeBSD.ORG Sun Apr 8 06:48:36 2012 Return-Path: Delivered-To: emulation@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id ED4CD106566B for ; Sun, 8 Apr 2012 06:48:36 +0000 (UTC) (envelope-from decke@bluelife.at) Received: from groupware.itac.at (groupware.itac.at [91.205.172.99]) by mx1.freebsd.org (Postfix) with ESMTP id 7F5998FC08 for ; Sun, 8 Apr 2012 06:48:36 +0000 (UTC) Received: from [46.74.90.223] (46.74.90.223) by groupware.itac.at (Axigen) with (CAMELLIA256-SHA encrypted) ESMTPSA id 18E563; Sun, 8 Apr 2012 08:48:34 +0200 From: Bernhard =?ISO-8859-1?Q?Fr=F6hlich?= To: Scott Ballantyne , emulation@freebsd.org X-Mailer: Modest 3.90.7 References: <20120407195537.67611.qmail@irelay.ssr.com> In-Reply-To: <20120407195537.67611.qmail@irelay.ssr.com> Content-Type: text/plain; charset=utf-8 Content-ID: <1333867710.17811.1.camel@Nokia-N900-42-11> Date: Sun, 08 Apr 2012 08:48:31 +0200 Message-Id: <1333867711.17811.2.camel@Nokia-N900-42-11> Mime-Version: 1.0 Content-Transfer-Encoding: 8bit X-AxigenSpam-Level: 1 X-CTCH-RefID: str=0001.0A0B020D.4F8134BD.0029,ss=1,fgs=0 X-CTCH-VOD: Unknown X-CTCH-Spam: Unknown Cc: Subject: Re: Problems building Virtualbox on 9.0 X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Bernhard =?ISO-8859-1?Q?Fr=F6hlich?= List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 08 Apr 2012 06:48:37 -0000 On Sa.,  7. Apr. 2012 21:55:37 CEST, Scott Ballantyne wrote: > Hi, > > Just for your information... > > This is a new install on Freebsd 9.0. > > I kept running afoul of 'pw' errors. The install bailed saying > > > Creating group `vboxusers' with gid `920'. > > Creating user `vboxusers' with uid `920'. > > pw: user 'vboxusers' disappeared during update > > *** Error code 67 > > but checking the /etc/group and /etc/master.passwd and /etc/passwd > files showed that both were created. > > So I continued the build, ending with: > > > ===>  Installing for virtualbox-ose-4.1.10 > > ===>    Generating temporary packing list > > ===>  Checking if emulators/virtualbox-ose already installed > > ===> Creating users and/or groups. > > Using existing group `vboxusers'. > > Creating user `vboxusers' with uid `920'. > > pw: user 'vboxusers' already exists > > *** Error code 74 > > > > Stop in /usr/ports/emulators/virtualbox-ose. > > *** Error code 1 > > > Stop in /usr/ports/emulators/virtualbox-ose. > > Simply removing the vboxusers user allowed the build to complete. > > Thanks for virtualbox - I'm looking forward to using it. That just means you messed up your shadow password database. pwd_mkdb is what you need. From owner-freebsd-emulation@FreeBSD.ORG Sun Apr 8 06:56:04 2012 Return-Path: Delivered-To: emulation@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B4C5C106566B for ; Sun, 8 Apr 2012 06:56:04 +0000 (UTC) (envelope-from decke@bluelife.at) Received: from groupware.itac.at (groupware.itac.at [91.205.172.99]) by mx1.freebsd.org (Postfix) with ESMTP id 0B11D8FC1B for ; Sun, 8 Apr 2012 06:56:04 +0000 (UTC) Received: from [46.74.90.223] (46.74.90.223) by groupware.itac.at (Axigen) with (CAMELLIA256-SHA encrypted) ESMTPSA id 20960A; Sun, 8 Apr 2012 08:56:08 +0200 From: Bernhard =?ISO-8859-1?Q?Fr=F6hlich?= To: Scott Ballantyne , emulation@freebsd.org X-Mailer: Modest 3.90.7 References: <20120407212604.2285.qmail@irelay.ssr.com> In-Reply-To: <20120407212604.2285.qmail@irelay.ssr.com> Content-Type: text/plain; charset=utf-8 Content-ID: <1333868164.17811.4.camel@Nokia-N900-42-11> Date: Sun, 08 Apr 2012 08:56:05 +0200 Message-Id: <1333868165.17811.5.camel@Nokia-N900-42-11> Mime-Version: 1.0 Content-Transfer-Encoding: 8bit X-AxigenSpam-Level: 1 X-CTCH-RefID: str=0001.0A0B0207.4F813682.00F5,ss=1,fgs=0 X-CTCH-VOD: Unknown X-CTCH-Spam: Unknown Cc: Subject: Re: Can't install Windows 7 X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Bernhard =?ISO-8859-1?Q?Fr=F6hlich?= List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 08 Apr 2012 06:56:04 -0000 On Sa.,  7. Apr. 2012 23:26:04 CEST, Scott Ballantyne wrote: > Hi again, > > Trying to install windows 7 from the DVD, I keep getting the following > error: > > -------------------------- > Failed to open a session for the virtual machine Windows7. > > Cannot open host device '/dev/cd0' for readonly access. Check the > permissions of that device (VERR_ACCESS_DENIED). > > Result Code: NS_ERROR_FAILURE (0x80004005) > Component: Console > Interface: IConsole {1968b7d3-e3bf-4ceb-99e0-cb7c913317bb} > -------------------- > > And: > > $ ls -l /dev/cd0 /dev/xpt0 /dev/pass0 > crw-rw----  1 root  operator      0, 112 Apr  7 17:08 /dev/cd0 > crw-rw----  1 root  operator      0, 108 Apr  7 17:08 /dev/pass0 > crw-rw----  1 root  operator      0,  76 Apr  7 17:08 /dev/xpt0 > > $ id > uid=103(sdb) gid=20(staff) > groups=20(staff),0(wheel),5(operator),32(texuser),920(vboxusers) > > So there should not be a permission problem.  The DVD drive is fine, > and the DVD is fine. Either follow http://wiki.freebsd.org/VirtualBox on how to correctly setup cd/dvd passthrough or create a disk image from /dev/cd0 with dd and use that in vbox. > I can't use "mount_udf" to mount it on FreeBSD, not sure why, but I > can read it on a windows machine.  However, I can mount other UDF > discs. The FreeBSD udf implementation doesn't support the latest udf specification. From owner-freebsd-emulation@FreeBSD.ORG Sun Apr 8 08:38:52 2012 Return-Path: Delivered-To: emulation@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id C6B251065676 for ; Sun, 8 Apr 2012 08:38:52 +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 1B05D8FC15 for ; Sun, 8 Apr 2012 08:38:51 +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 LAA12319; Sun, 08 Apr 2012 11:38:41 +0300 (EEST) (envelope-from avg@FreeBSD.org) Received: from localhost ([127.0.0.1]) by porto.starpoint.kiev.ua with esmtp (Exim 4.34 (FreeBSD)) id 1SGndx-000B9v-IV; Sun, 08 Apr 2012 11:38:41 +0300 Message-ID: <4F814E8E.8000308@FreeBSD.org> Date: Sun, 08 Apr 2012 11:38:38 +0300 From: Andriy Gapon User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:10.0.3) Gecko/20120317 Thunderbird/10.0.3 MIME-Version: 1.0 To: =?UTF-8?B?QmVybmhhcmQgRnLDtmhsaWNo?= , Scott Ballantyne References: <20120407195537.67611.qmail@irelay.ssr.com> <1333867711.17811.2.camel@Nokia-N900-42-11> In-Reply-To: <1333867711.17811.2.camel@Nokia-N900-42-11> X-Enigmail-Version: 1.4 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: emulation@FreeBSD.org Subject: Re: Problems building Virtualbox on 9.0 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: Sun, 08 Apr 2012 08:38:52 -0000 on 08/04/2012 09:48 Bernhard Fröhlich said the following: > On Sa., 7. Apr. 2012 21:55:37 CEST, Scott Ballantyne wrote: > >> Hi, >> >> Just for your information... >> >> This is a new install on Freebsd 9.0. >> >> I kept running afoul of 'pw' errors. The install bailed saying >> >>> Creating group `vboxusers' with gid `920'. >>> Creating user `vboxusers' with uid `920'. >>> pw: user 'vboxusers' disappeared during update >>> *** Error code 67 >> >> but checking the /etc/group and /etc/master.passwd and /etc/passwd >> files showed that both were created. >> >> So I continued the build, ending with: >> >>> ===> Installing for virtualbox-ose-4.1.10 >>> ===> Generating temporary packing list >>> ===> Checking if emulators/virtualbox-ose already installed >>> ===> Creating users and/or groups. >>> Using existing group `vboxusers'. >>> Creating user `vboxusers' with uid `920'. >>> pw: user 'vboxusers' already exists >>> *** Error code 74 >>> >>> Stop in /usr/ports/emulators/virtualbox-ose. >>> *** Error code 1 >> >>> Stop in /usr/ports/emulators/virtualbox-ose. >> >> Simply removing the vboxusers user allowed the build to complete. >> >> Thanks for virtualbox - I'm looking forward to using it. > > That just means you messed up your shadow password database. pwd_mkdb is what you need. This looks more like a nscd bug. -- Andriy Gapon From owner-freebsd-emulation@FreeBSD.ORG Sun Apr 8 14:07:18 2012 Return-Path: Delivered-To: emulation@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0FF911065673 for ; Sun, 8 Apr 2012 14:07:18 +0000 (UTC) (envelope-from sdb@ssr.com) Received: from mailhost.ssr.com (mailhost.ssr.com [199.4.235.5]) by mx1.freebsd.org (Postfix) with SMTP id C09C98FC12 for ; Sun, 8 Apr 2012 14:07:17 +0000 (UTC) Received: (qmail 38065 invoked from network); 8 Apr 2012 14:00:48 -0000 Received: from pool-72-89-112-74.nycmny.east.verizon.net (HELO irelay.ssr.com) (sdb@72.89.112.74) by 199.4.235.5 with SMTP; 8 Apr 2012 14:00:48 -0000 Received: (qmail 7281 invoked by uid 103); 8 Apr 2012 13:44:25 -0000 Date: 8 Apr 2012 13:44:25 -0000 Message-ID: <20120408134425.7280.qmail@irelay.ssr.com> From: Scott Ballantyne To: Bernhard =?utf-8?Q?Fr=C3=B6hlich?= In-reply-to: <1333868165.17811.5.camel@Nokia-N900-42-11> (message from Bernhard =?utf-8?Q?Fr=C3=B6hlich?= on Sun, 08 Apr 2012 08:56:05 +0200) References: <20120407212604.2285.qmail@irelay.ssr.com> <1333868165.17811.5.camel@Nokia-N900-42-11> MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Cc: emulation@freebsd.org Subject: Re: Can't install Windows 7 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: Sun, 08 Apr 2012 14:07:18 -0000 Hi Bernhard, > > > > So there should not be a permission problem.  The DVD drive is fine, > > and the DVD is fine. > > Either follow http://wiki.freebsd.org/VirtualBox on how to correctly setup cd/dvd passthrough or create a disk image from /dev/cd0 with dd and use that in vbox. I did follow the wiki before writing: atapicam_load="YES" in /boot/loader.conf hald_enable="YES" in /etc/rc.conf and hald is running. Plus the permissions are correct for cd0, xpt0 and pass0. And I am running with the generic kernel. Thanks, Scott -- sdb@ssr.com From owner-freebsd-emulation@FreeBSD.ORG Sun Apr 8 14:32:32 2012 Return-Path: Delivered-To: emulation@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 28C36106566C for ; Sun, 8 Apr 2012 14:32:32 +0000 (UTC) (envelope-from sdb@ssr.com) Received: from mailhost.ssr.com (mailhost.ssr.com [199.4.235.5]) by mx1.freebsd.org (Postfix) with SMTP id D05668FC0A for ; Sun, 8 Apr 2012 14:32:31 +0000 (UTC) Received: (qmail 44749 invoked from network); 8 Apr 2012 14:26:02 -0000 Received: from pool-72-89-112-74.nycmny.east.verizon.net (HELO irelay.ssr.com) (sdb@72.89.112.74) by 199.4.235.5 with SMTP; 8 Apr 2012 14:26:02 -0000 Received: (qmail 7575 invoked by uid 103); 8 Apr 2012 14:09:40 -0000 Date: 8 Apr 2012 14:09:40 -0000 Message-ID: <20120408140940.7574.qmail@irelay.ssr.com> From: Scott Ballantyne To: emulation@freebsd.org In-reply-to: <1333867711.17811.2.camel@Nokia-N900-42-11> (message from Bernhard =?utf-8?Q?Fr=C3=B6hlich?= on Sun, 08 Apr 2012 08:48:31 +0200) References: <20120407195537.67611.qmail@irelay.ssr.com> <1333867711.17811.2.camel@Nokia-N900-42-11> MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Cc: Subject: Re: Problems building Virtualbox on 9.0 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: Sun, 08 Apr 2012 14:32:32 -0000 Hi Bernhard, > > > Using existing group `vboxusers'. > > > Creating user `vboxusers' with uid `920'. > > > pw: user 'vboxusers' already exists > > > *** Error code 74 > > > > > > Stop in /usr/ports/emulators/virtualbox-ose. > > > *** Error code 1 > > > > > Stop in /usr/ports/emulators/virtualbox-ose. > > > > Simply removing the vboxusers user allowed the build to complete. > > > > Thanks for virtualbox - I'm looking forward to using it. > > That just means you messed up your shadow password database. pwd_mkdb is what you need. I suppose that is possible, but I always use vipw, which runs pwd_mkdb. In any case, during the build, the vboxusers was first created, and then later on complained that vboxusers was already created and terminated the build. That seems a bit conflicted to me :) Thanks, Scott -- sdb@ssr.com From owner-freebsd-emulation@FreeBSD.ORG Sun Apr 8 20:30:18 2012 Return-Path: Delivered-To: emulation@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 043EC1065670 for ; Sun, 8 Apr 2012 20:30:18 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id E41A98FC08 for ; Sun, 8 Apr 2012 20:30:17 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id q38KUHp2089274 for ; Sun, 8 Apr 2012 20:30:17 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id q38KUH5h089271; Sun, 8 Apr 2012 20:30:17 GMT (envelope-from gnats) Date: Sun, 8 Apr 2012 20:30:17 GMT Message-Id: <201204082030.q38KUH5h089271@freefall.freebsd.org> To: emulation@FreeBSD.org From: Volodymyr Kostyrko Cc: Subject: Re: ports/166485: www/linux-f10-flashplugin11 is vulnerable X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Volodymyr Kostyrko List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 08 Apr 2012 20:30:18 -0000 The following reply was made to PR ports/166485; it has been noted by GNATS. From: Volodymyr Kostyrko To: bug-followup@FreeBSD.org, turutani@scphys.kyoto-u.ac.jp Cc: Subject: Re: ports/166485: www/linux-f10-flashplugin11 is vulnerable Date: Sun, 08 Apr 2012 23:20:57 +0300 Hi all. This patch results in unusable plugin on my machine. When running flash it quickly drops with: *** NSPlugin Wrapper *** ERROR: NPP_New() wait for reply: Connection closed *** NSPlugin Wrapper *** WARNING:(/tmp/ports/usr/ports/www/nspluginwrapper/work/nspluginwrapper-1.4.4/src/npw-wrapper.c:2150):invoke_NPP_Destroy: assertion failed: (rpc_method_invoke_possible(plugin->connection)) FreeBSD limbo.lan 9.0-STABLE FreeBSD 9.0-STABLE #0 r233753: Sun Apr 1 19:06:58 EEST 2012 arcade@limbo.lan:/usr/obj/usr/src/sys/MINIMALx32 i386 World was built with clang. Previous version worked like a charm with chromium and seamonkey, this one fails for both. -- Sphinx of black quartz judge my vow. From owner-freebsd-emulation@FreeBSD.ORG Sun Apr 8 23:33:18 2012 Return-Path: Delivered-To: emulation@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 18547106566B for ; Sun, 8 Apr 2012 23:33:18 +0000 (UTC) (envelope-from daichi@freebsd.org) Received: from natial.ongs.co.jp (natial.ongs.co.jp [202.216.246.90]) by mx1.freebsd.org (Postfix) with ESMTP id DDC328FC0A for ; Sun, 8 Apr 2012 23:33:17 +0000 (UTC) Received: from parancell.ongs.co.jp (dullmdaler.ongs.co.jp [202.216.246.94]) by natial.ongs.co.jp (Postfix) with ESMTPSA id 91F7312543B for ; Mon, 9 Apr 2012 08:33:16 +0900 (JST) Date: Mon, 9 Apr 2012 08:33:15 +0900 From: Daichi GOTO To: emulation@freebsd.org Message-Id: <20120409083315.abf1f2ad.daichi@freebsd.org> Organization: FreeBSD Project X-Mailer: Sylpheed 3.1.3 (GTK+ 2.24.6; amd64-portbld-freebsd9.9) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: Subject: VirtualBox-4.1.12 build failed on 10-CURRENT 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: Sun, 08 Apr 2012 23:33:18 -0000 VirtualBox-4.1.12 build failed on 10-CURRENT: # uname -a FreeBSD parancell.ongs.co.jp 10.0-CURRENT FreeBSD 10.0-CURRENT #17 r233718: Sat Mar 31 09:41:56 JST 2012 root@parancell.ongs.co.jp:/usr/obj/usr/src/sys/PARANCELL amd64 # make .... kBuild: Compiling VBoxRT - /home/ports-build/usr/ports/emulators/virtualbox-ose/work/VirtualBox-4.1.12/src/VBox/Runtime/r3/posix/process-creation-posix.cpp kBuild: Compiling VBoxRT - /home/ports-build/usr/ports/emulators/virtualbox-ose/work/VirtualBox-4.1.12/src/VBox/Runtime/r3/posix/rand-posix.cpp kBuild: Compiling VBoxRT - /home/ports-build/usr/ports/emulators/virtualbox-ose/work/VirtualBox-4.1.12/src/VBox/Runtime/r3/posix/semevent-posix.cpp *** [do-build] Signal 11 Stop in /usr/ports/emulators/virtualbox-ose. # Someone has any ideas? -- Daichi GOTO (daichi) FreeBSD Committer, http://www.FreeBSD.org The Power To Serve From owner-freebsd-emulation@FreeBSD.ORG Mon Apr 9 01:40:14 2012 Return-Path: Delivered-To: emulation@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C35FC106566B for ; Mon, 9 Apr 2012 01:40:14 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id AE5078FC0A for ; Mon, 9 Apr 2012 01:40:14 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id q391eERV081985 for ; Mon, 9 Apr 2012 01:40:14 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id q391eEqN081984; Mon, 9 Apr 2012 01:40:14 GMT (envelope-from gnats) Date: Mon, 9 Apr 2012 01:40:14 GMT Message-Id: <201204090140.q391eEqN081984@freefall.freebsd.org> To: emulation@FreeBSD.org From: Tsurutani Naoki Cc: Subject: Re: ports/166485: www/linux-f10-flashplugin11 is vulnerable X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Tsurutani Naoki List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 09 Apr 2012 01:40:14 -0000 The following reply was made to PR ports/166485; it has been noted by GNATS. From: Tsurutani Naoki To: Volodymyr Kostyrko Cc: bug-followup@FreeBSD.org Subject: Re: ports/166485: www/linux-f10-flashplugin11 is vulnerable Date: Mon, 09 Apr 2012 10:31:50 +0900 Volodymyr Kostyrko wrote: I cannot reproduce this trouble on my host with chromium and firefox. h120 % uname -a FreeBSD h120.65.226.10.32118.vlan.kuins.net 8.2-PRERELEASE FreeBSD 8.2-PRERELEASE #25: Mon Jan 24 10:37:18 JST 2011 turutani@h120.65.226.10.32118.vlan.kuins.net:usr/obj/usr/src/sys/POLYMER i386 Does running "nspluginwrapper -a -v -i" help it ? > Hi all. > > This patch results in unusable plugin on my machine. When running flash > it quickly drops with: > > *** NSPlugin Wrapper *** ERROR: NPP_New() wait for reply: Connection closed > *** NSPlugin Wrapper *** > WARNING:(/tmp/ports/usr/ports/www/nspluginwrapper/work/nspluginwrapper-1.4.4/src/npw- wrapper.c:2150):invoke_NPP_Destroy: > assertion failed: (rpc_method_invoke_possible(plugin->connection)) > > FreeBSD limbo.lan 9.0-STABLE FreeBSD 9.0-STABLE #0 r233753: Sun Apr 1 > 19:06:58 EEST 2012 arcade@limbo.lan:/usr/obj/usr/src/sys/MINIMALx32 > i386 > > World was built with clang. Previous version worked like a charm with > chromium and seamonkey, this one fails for both. --- Tsurutani Naoki turutani@scphys.kyoto-u.ac.jp From owner-freebsd-emulation@FreeBSD.ORG Mon Apr 9 03:08:55 2012 Return-Path: Delivered-To: emulation@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 91465106564A; Mon, 9 Apr 2012 03:08:55 +0000 (UTC) (envelope-from jamesbrandongooch@gmail.com) Received: from mail-ob0-f182.google.com (mail-ob0-f182.google.com [209.85.214.182]) by mx1.freebsd.org (Postfix) with ESMTP id 484BE8FC08; Mon, 9 Apr 2012 03:08:55 +0000 (UTC) Received: by obbwc18 with SMTP id wc18so7015827obb.13 for ; Sun, 08 Apr 2012 20:08:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=WBxbbpG06d0H63poDi3pB/ZGkorWZjqCem9XiUGXYLQ=; b=IKS5QZ3nlwf+ZkRgnQBU67CJY2D0tKiyD7eOzmbkkRUDenFiPN35YoOz9Vg0VlGjQC 0h/J2XrINilV3HHuJA2Q9nc6sTnTNxJOhDsbTPrESzvUvZuHHjDPCMakFv9BxFhT6p1P w4iH2aVX7a29hnEPKHeDFl1X7tdTpO0zkGM/U9M7CPK5LcdQvliESrhQDHw0txTVXOdj 0Z2olrjjDqic8R5ZIlxVadGXrAzRBcG24NiQ5XjvuhzAHr7GVRKxe1rs2StkjK0I142D J7/vYQLcvfFA3eX1MmH/vm6wLtAr8V686xejHUnU0hErbfdiYUTcYSq8a6kUJ1+a2PNI sKlA== MIME-Version: 1.0 Received: by 10.182.169.41 with SMTP id ab9mr7960387obc.4.1333940929073; Sun, 08 Apr 2012 20:08:49 -0700 (PDT) Received: by 10.60.9.101 with HTTP; Sun, 8 Apr 2012 20:08:49 -0700 (PDT) In-Reply-To: <20120409083315.abf1f2ad.daichi@freebsd.org> References: <20120409083315.abf1f2ad.daichi@freebsd.org> Date: Sun, 8 Apr 2012 22:08:49 -0500 Message-ID: From: Brandon Gooch To: Daichi GOTO Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: emulation@freebsd.org Subject: Re: VirtualBox-4.1.12 build failed on 10-CURRENT 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: Mon, 09 Apr 2012 03:08:55 -0000 On Sun, Apr 8, 2012 at 6:33 PM, Daichi GOTO wrote: > VirtualBox-4.1.12 build failed on 10-CURRENT: > > # uname -a > FreeBSD parancell.ongs.co.jp 10.0-CURRENT FreeBSD 10.0-CURRENT #17 r23371= 8: Sat Mar 31 09:41:56 JST 2012 =A0 =A0 root@parancell.ongs.co.jp:/usr/obj/= usr/src/sys/PARANCELL =A0amd64 > # make > .... > kBuild: Compiling VBoxRT - /home/ports-build/usr/ports/emulators/virtualb= ox-ose/work/VirtualBox-4.1.12/src/VBox/Runtime/r3/posix/process-creation-po= six.cpp > kBuild: Compiling VBoxRT - /home/ports-build/usr/ports/emulators/virtualb= ox-ose/work/VirtualBox-4.1.12/src/VBox/Runtime/r3/posix/rand-posix.cpp > kBuild: Compiling VBoxRT - /home/ports-build/usr/ports/emulators/virtualb= ox-ose/work/VirtualBox-4.1.12/src/VBox/Runtime/r3/posix/semevent-posix.cpp > *** [do-build] Signal 11 > > Stop in /usr/ports/emulators/virtualbox-ose. > # > > Someone has any ideas? > > -- > Daichi GOTO (daichi) > FreeBSD Committer, http://www.FreeBSD.org The Power To Serve So it's segfaulting at some point in the build, but the actual error isn't captured in your output snippet. You'll need to search the build output for the actual issue. I built the same version of VirtualBox today, but I'm at a later rev: $ uname -a FreeBSD m6500.local 10.0-CURRENT FreeBSD 10.0-CURRENT #0 r233963: Fri Apr 6 18:25:42 CDT 2012 root@m6500.local:/usr/obj/usr/src/sys/DELL_M6500 amd64 -Brandon From owner-freebsd-emulation@FreeBSD.ORG Mon Apr 9 03:18:57 2012 Return-Path: Delivered-To: emulation@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 380C01065670 for ; Mon, 9 Apr 2012 03:18:57 +0000 (UTC) (envelope-from yuri@rawbw.com) Received: from shell0.rawbw.com (shell0.rawbw.com [198.144.192.45]) by mx1.freebsd.org (Postfix) with ESMTP id 1F14F8FC0C for ; Mon, 9 Apr 2012 03:18:57 +0000 (UTC) Received: from eagle.yuri.org (stunnel@localhost [127.0.0.1]) (authenticated bits=0) by shell0.rawbw.com (8.14.4/8.14.4) with ESMTP id q393IoXV012655 for ; Sun, 8 Apr 2012 20:18:51 -0700 (PDT) (envelope-from yuri@rawbw.com) Message-ID: <4F82551A.9040206@rawbw.com> Date: Sun, 08 Apr 2012 20:18:50 -0700 From: Yuri User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:10.0.3) Gecko/20120316 Thunderbird/10.0.3 MIME-Version: 1.0 To: emulation@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: Subject: NFS from virtualbox guest is much slower than NFS from another machine 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: Mon, 09 Apr 2012 03:18:57 -0000 I have 6.5GB chromium debug build directory shared through NFS. When I try building it on FreeBSD i386 guest running on the same host where NFS server is, it takes 11 sec of intense NFS before it begins to compile. But when I try building the same directory from another FreeBSD i386 machine on the 100Mb LAN, it begins to build after only 3 sec of intense NFS. Same NFS operations take 11 sec from the local vbox guest and 3 sec from the remote host over 100Mb link. This is very strange, local NFS should be blazing fast, and I see the opposite picture. For some reason local NFS is crippled. Anybody can explain why is this happening? 9.0 STABLE vbox-4.1.12 Yuri PS I removed lockf operation from the Makefile since lockf fails over NFS From owner-freebsd-emulation@FreeBSD.ORG Mon Apr 9 03:22:12 2012 Return-Path: Delivered-To: emulation@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9B083106564A for ; Mon, 9 Apr 2012 03:22:12 +0000 (UTC) (envelope-from vivek@khera.org) Received: from mail-ob0-f182.google.com (mail-ob0-f182.google.com [209.85.214.182]) by mx1.freebsd.org (Postfix) with ESMTP id 592A28FC0C for ; Mon, 9 Apr 2012 03:22:12 +0000 (UTC) Received: by obbwc18 with SMTP id wc18so7028356obb.13 for ; Sun, 08 Apr 2012 20:22:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=khera.org; s=google11; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=YEy/TiZQOWLJj6Dt+KA0swEQ+AHT/fZLRIID8He4Xms=; b=FBj7NXqzh9B9VFVXv/dADSfZwWZA1hn+/DkrlytIxJcahQGTRAZ1Oxltf7aeVV5UEt gqKZl1Bb2MIRC1ojM4OS0DzJ4A8nXzdC8CnqS8xdpDhrsyUy6r/CKShqan9/cE9cA4li FpPDiJyvFuqDjqTfwjt18uBujG3AnEz/5CUSI= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:x-gm-message-state; bh=YEy/TiZQOWLJj6Dt+KA0swEQ+AHT/fZLRIID8He4Xms=; b=RnlAOv5v4wrbuom8bbGh1se9AiusbjsJkdcd09YvZ+25wDZUBXJKBnuYX1xw8wcBPQ ZlG/c4+VehrML46no2r0ZEZdyz7ERkSY1NAjE7rJrcliANBPwcuSGX3nT89jlFexHdAE Gdy72aS+f5+zMSwBmiaFPrhHrGao2UTJyjGzCQfthk/fkCSb+QkozGXwcWb6xaA9JXic Y1lKdENobMWBjtk0ueKafIol/MRKGkkT+K2sH8T4F8ktzJQApECIBaaathmM7dDBlRcu 54jcaOOrinf/d0Xx4VaJmi1DtKob4gd5qJh+x+zTeLaAzWRWYI5cFz+whNwhMa/5glu1 UhJQ== MIME-Version: 1.0 Received: by 10.182.53.106 with SMTP id a10mr7724751obp.43.1333941731986; Sun, 08 Apr 2012 20:22:11 -0700 (PDT) Received: by 10.182.175.41 with HTTP; Sun, 8 Apr 2012 20:22:11 -0700 (PDT) In-Reply-To: <4F82551A.9040206@rawbw.com> References: <4F82551A.9040206@rawbw.com> Date: Sun, 8 Apr 2012 23:22:11 -0400 Message-ID: From: Vick Khera To: emulation@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 X-Gm-Message-State: ALoCoQlnaEkiHgXuGD8UTTtEfOpPugPPDvQmq+e0/hGjX0zwd1qJF+xLD3Qa4C9XdBG1EL8Cdg1j Cc: Subject: Re: NFS from virtualbox guest is much slower than NFS from another machine 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: Mon, 09 Apr 2012 03:22:12 -0000 On Sun, Apr 8, 2012 at 11:18 PM, Yuri wrote: > This is very strange, local NFS should be blazing fast, and I see the > opposite picture. For some reason local NFS is crippled. In my tests of virtual box late last year, I found the network layer extremely slow. I was running a freebsd 9 guest in a freebsd 9 host. Using the virtual network driver was practically zero improvement over emulating the em device. It was this reason I reverted to using jails for my needs for now. From owner-freebsd-emulation@FreeBSD.ORG Mon Apr 9 03:43:18 2012 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 CDE7D106566B for ; Mon, 9 Apr 2012 03:43:18 +0000 (UTC) (envelope-from yuri@rawbw.com) Received: from shell0.rawbw.com (shell0.rawbw.com [198.144.192.45]) by mx1.freebsd.org (Postfix) with ESMTP id 9CE4A8FC0C for ; Mon, 9 Apr 2012 03:43:18 +0000 (UTC) Received: from eagle.yuri.org (stunnel@localhost [127.0.0.1]) (authenticated bits=0) by shell0.rawbw.com (8.14.4/8.14.4) with ESMTP id q393hIXp015176 for ; Sun, 8 Apr 2012 20:43:18 -0700 (PDT) (envelope-from yuri@rawbw.com) Message-ID: <4F825AD5.6040609@rawbw.com> Date: Sun, 08 Apr 2012 20:43:17 -0700 From: Yuri User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:10.0.3) Gecko/20120316 Thunderbird/10.0.3 MIME-Version: 1.0 To: freebsd-emulation@freebsd.org References: <4F82551A.9040206@rawbw.com> In-Reply-To: <4F82551A.9040206@rawbw.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: NFS from virtualbox guest is much slower than NFS from another machine 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: Mon, 09 Apr 2012 03:43:18 -0000 On 04/08/2012 20:18, Yuri wrote: > Same NFS operations take 11 sec from the local vbox guest and 3 sec > from the remote host over 100Mb link. During build, top in guest shows <3% CPU load on average (during intense NFS), but top on the host shows that VirtualBox process consumes 50% CPU. Looks like somewhere somebody does some processing byte by byte. Yuri From owner-freebsd-emulation@FreeBSD.ORG Mon Apr 9 04:25:44 2012 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 04182106566C for ; Mon, 9 Apr 2012 04:25:44 +0000 (UTC) (envelope-from amvandemore@gmail.com) Received: from mail-wi0-f178.google.com (mail-wi0-f178.google.com [209.85.212.178]) by mx1.freebsd.org (Postfix) with ESMTP id 899708FC14 for ; Mon, 9 Apr 2012 04:25:43 +0000 (UTC) Received: by wibhq7 with SMTP id hq7so1800593wib.13 for ; Sun, 08 Apr 2012 21:25:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=QeONjceELyLBOOAiQd3ExXss81TT5iJun4y/fcH+I20=; b=GoeEsvi0O5IQwE9dZPlDTiEMP3crALr0iTw2I+Q1VC59rtt+cKc+NgR5X0EkZ4GXm7 fEXI2GG7DxwZ2k8FghQfR2JrHlXwqlpYTrAo219OUiUp0nTWh68PCWobc4dCjrx781oT weR2weDa+3U4bx/SLImY5xOQAuV3tcpCF5DtFwX37E/IRPn5IhHKVsx0JlfMuCb8xdSu EfqxnfAEUAlr1+XCjQLrG5GcAdoOUUKQBzPRmjzAiC20sO5l6oRbHiN8iBHAqkff2gu8 QXeeVPUygX+pGw6KJcl9R+sKINykdzFGJwsZO2EqDz66809fiNE7Hpbb1tiuFABiDbQW 6wIg== MIME-Version: 1.0 Received: by 10.180.24.35 with SMTP id r3mr13077958wif.7.1333945542523; Sun, 08 Apr 2012 21:25:42 -0700 (PDT) Received: by 10.223.94.73 with HTTP; Sun, 8 Apr 2012 21:25:42 -0700 (PDT) In-Reply-To: <4F825AD5.6040609@rawbw.com> References: <4F82551A.9040206@rawbw.com> <4F825AD5.6040609@rawbw.com> Date: Sun, 8 Apr 2012 23:25:42 -0500 Message-ID: From: Adam Vande More To: Yuri Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-emulation@freebsd.org Subject: Re: NFS from virtualbox guest is much slower than NFS from another machine 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: Mon, 09 Apr 2012 04:25:44 -0000 On Sun, Apr 8, 2012 at 10:43 PM, Yuri wrote: > On 04/08/2012 20:18, Yuri wrote: > >> Same NFS operations take 11 sec from the local vbox guest and 3 sec from >> the remote host over 100Mb link. >> > > During build, top in guest shows <3% CPU load on average (during intense > NFS), but top on the host shows that VirtualBox process consumes 50% CPU. > Looks like somewhere somebody does some processing byte by byte. > Virtualizated NIC's are slow, regardless of hypervisor, although some are better than others. Hi performance in something like XEN/KVM/Virtualbox requires pci-pass-thru, but I don't think FreeBSD supports this yet. You can use /usr/ports/emulators/virtio-kmod which will help a little. Otherwise use a jail. -- Adam Vande More From owner-freebsd-emulation@FreeBSD.ORG Mon Apr 9 04:40:14 2012 Return-Path: Delivered-To: emulation@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id C9050106566B for ; Mon, 9 Apr 2012 04:40:14 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id B3FFF8FC0C for ; Mon, 9 Apr 2012 04:40:14 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id q394eEYX048218 for ; Mon, 9 Apr 2012 04:40:14 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id q394eErR048217; Mon, 9 Apr 2012 04:40:14 GMT (envelope-from gnats) Date: Mon, 9 Apr 2012 04:40:14 GMT Message-Id: <201204090440.q394eErR048217@freefall.freebsd.org> To: emulation@FreeBSD.org From: Volodymyr Kostyrko Cc: Subject: Re: ports/166485: www/linux-f10-flashplugin11 is vulnerable X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Volodymyr Kostyrko List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 09 Apr 2012 04:40:14 -0000 The following reply was made to PR ports/166485; it has been noted by GNATS. From: Volodymyr Kostyrko To: Tsurutani Naoki Cc: bug-followup@FreeBSD.org Subject: Re: ports/166485: www/linux-f10-flashplugin11 is vulnerable Date: Mon, 09 Apr 2012 07:30:29 +0300 Tsurutani Naoki wrote: > I cannot reproduce this trouble on my host with chromium and firefox. > > h120 % uname -a > FreeBSD h120.65.226.10.32118.vlan.kuins.net 8.2-PRERELEASE FreeBSD 8.2-PRERELEASE #25: Mon > Jan 24 10:37:18 JST 2011 turutani@h120.65.226.10.32118.vlan.kuins.net:usr/obj/usr/src/sys/POLYMER i386 > > Does running "nspluginwrapper -a -v -i" help it ? No, nothing changes. Installing previous version fixes things. I'll try to recheck and rebuild everything close to nspluginwrapper. However I have already checked that there are no unresolved symbols in libraries under /usr/local. -- Sphinx of black quartz judge my vow. From owner-freebsd-emulation@FreeBSD.ORG Mon Apr 9 08:47:02 2012 Return-Path: Delivered-To: emulation@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9DE0B1065670 for ; Mon, 9 Apr 2012 08:47:02 +0000 (UTC) (envelope-from daichi@freebsd.org) Received: from natial.ongs.co.jp (natial.ongs.co.jp [202.216.246.90]) by mx1.freebsd.org (Postfix) with ESMTP id 6B5C08FC17 for ; Mon, 9 Apr 2012 08:47:02 +0000 (UTC) Received: from parancell.ongs.co.jp (dullmdaler.ongs.co.jp [202.216.246.94]) by natial.ongs.co.jp (Postfix) with ESMTPSA id 88E7B12543B; Mon, 9 Apr 2012 17:47:01 +0900 (JST) Date: Mon, 9 Apr 2012 17:47:01 +0900 From: Daichi GOTO To: Brandon Gooch Message-Id: <20120409174701.623427fe.daichi@freebsd.org> In-Reply-To: References: <20120409083315.abf1f2ad.daichi@freebsd.org> Organization: FreeBSD Project X-Mailer: Sylpheed 3.1.3 (GTK+ 2.24.6; amd64-portbld-freebsd9.9) Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: emulation@freebsd.org Subject: Re: VirtualBox-4.1.12 build failed on 10-CURRENT 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: Mon, 09 Apr 2012 08:47:02 -0000 Thanks Brandon, I tried to build VBox 4.1.12 on new kernel/userland without Dtrace feature, and it worked well ;) On Sun, 8 Apr 2012 22:08:49 -0500 Brandon Gooch wrote: > On Sun, Apr 8, 2012 at 6:33 PM, Daichi GOTO wrote: > > VirtualBox-4.1.12 build failed on 10-CURRENT: > > > > # uname -a > > FreeBSD parancell.ongs.co.jp 10.0-CURRENT FreeBSD 10.0-CURRENT #17 r233718: Sat Mar 31 09:41:56 JST 2012     root@parancell.ongs.co.jp:/usr/obj/usr/src/sys/PARANCELL  amd64 > > # make > > .... > > kBuild: Compiling VBoxRT - /home/ports-build/usr/ports/emulators/virtualbox-ose/work/VirtualBox-4.1.12/src/VBox/Runtime/r3/posix/process-creation-posix.cpp > > kBuild: Compiling VBoxRT - /home/ports-build/usr/ports/emulators/virtualbox-ose/work/VirtualBox-4.1.12/src/VBox/Runtime/r3/posix/rand-posix.cpp > > kBuild: Compiling VBoxRT - /home/ports-build/usr/ports/emulators/virtualbox-ose/work/VirtualBox-4.1.12/src/VBox/Runtime/r3/posix/semevent-posix.cpp > > *** [do-build] Signal 11 > > > > Stop in /usr/ports/emulators/virtualbox-ose. > > # > > > > Someone has any ideas? > > > > -- > > Daichi GOTO (daichi) > > FreeBSD Committer, http://www.FreeBSD.org The Power To Serve > > So it's segfaulting at some point in the build, but the actual error > isn't captured in your output snippet. You'll need to search the > build output for the actual issue. > > I built the same version of VirtualBox today, but I'm at a later rev: > > $ uname -a > FreeBSD m6500.local 10.0-CURRENT FreeBSD 10.0-CURRENT #0 r233963: Fri > Apr 6 18:25:42 CDT 2012 > root@m6500.local:/usr/obj/usr/src/sys/DELL_M6500 amd64 > > -Brandon > _______________________________________________ > freebsd-emulation@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-emulation > To unsubscribe, send any mail to "freebsd-emulation-unsubscribe@freebsd.org" -- Daichi GOTO (daichi) FreeBSD Committer, http://www.FreeBSD.org The Power To Serve From owner-freebsd-emulation@FreeBSD.ORG Mon Apr 9 10:40:16 2012 Return-Path: Delivered-To: emulation@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E68B1106564A for ; Mon, 9 Apr 2012 10:40:16 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id B94F28FC0C for ; Mon, 9 Apr 2012 10:40:16 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id q39AeGub012689 for ; Mon, 9 Apr 2012 10:40:16 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id q39AeGFQ012688; Mon, 9 Apr 2012 10:40:16 GMT (envelope-from gnats) Date: Mon, 9 Apr 2012 10:40:16 GMT Message-Id: <201204091040.q39AeGFQ012688@freefall.freebsd.org> To: emulation@FreeBSD.org From: Volodymyr Kostyrko Cc: Subject: Re: ports/166485: www/linux-f10-flashplugin11 is vulnerable X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Volodymyr Kostyrko List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 09 Apr 2012 10:40:17 -0000 The following reply was made to PR ports/166485; it has been noted by GNATS. From: Volodymyr Kostyrko To: bug-followup@FreeBSD.org, turutani@scphys.kyoto-u.ac.jp Cc: Subject: Re: ports/166485: www/linux-f10-flashplugin11 is vulnerable Date: Mon, 09 Apr 2012 13:37:39 +0300 On my other desktop everything works fine. FreeBSD green.tandem.local 9.0-STABLE FreeBSD 9.0-STABLE #1 r234052: Mon Apr 9 11:22:31 EEST 2012 arcade@green.tandem.local:/usr/obj/usr/src/sys/MINIMAL amd64 -- Sphinx of black quartz judge my vow. From owner-freebsd-emulation@FreeBSD.ORG Mon Apr 9 11:07:02 2012 Return-Path: Delivered-To: emulation@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 961631065689 for ; Mon, 9 Apr 2012 11:07:02 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 67B0C8FC16 for ; Mon, 9 Apr 2012 11:07:02 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id q39B72J1039472 for ; Mon, 9 Apr 2012 11:07:02 GMT (envelope-from owner-bugmaster@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id q39B71Gc039470 for emulation@FreeBSD.org; Mon, 9 Apr 2012 11:07:01 GMT (envelope-from owner-bugmaster@FreeBSD.org) Date: Mon, 9 Apr 2012 11:07:01 GMT Message-Id: <201204091107.q39B71Gc039470@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: gnats set sender to owner-bugmaster@FreeBSD.org using -f From: FreeBSD bugmaster To: emulation@FreeBSD.org Cc: Subject: Current problem reports assigned to emulation@FreeBSD.org 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: Mon, 09 Apr 2012 11:07:02 -0000 Note: to view an individual PR, use: http://www.freebsd.org/cgi/query-pr.cgi?pr=(number). The following is a listing of current problems submitted by FreeBSD users. These represent problem reports covering all versions including experimental development code and obsolete releases. S Tracker Resp. Description -------------------------------------------------------------------------------- o ports/166485 emulation www/linux-f10-flashplugin11 is vulnerable 1 problem total. From owner-freebsd-emulation@FreeBSD.ORG Mon Apr 9 11:07:10 2012 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 093BA106566B for ; Mon, 9 Apr 2012 11:07:10 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id CB2E98FC08 for ; Mon, 9 Apr 2012 11:07:09 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id q39B79C0039572 for ; Mon, 9 Apr 2012 11:07:09 GMT (envelope-from owner-bugmaster@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id q39B79Nw039570 for freebsd-emulation@FreeBSD.org; Mon, 9 Apr 2012 11:07:09 GMT (envelope-from owner-bugmaster@FreeBSD.org) Date: Mon, 9 Apr 2012 11:07:09 GMT Message-Id: <201204091107.q39B79Nw039570@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: gnats set sender to owner-bugmaster@FreeBSD.org using -f From: FreeBSD bugmaster To: freebsd-emulation@FreeBSD.org Cc: Subject: Current problem reports assigned to freebsd-emulation@FreeBSD.org 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: Mon, 09 Apr 2012 11:07:10 -0000 Note: to view an individual PR, use: http://www.freebsd.org/cgi/query-pr.cgi?pr=(number). The following is a listing of current problems submitted by FreeBSD users. These represent problem reports covering all versions including experimental development code and obsolete releases. S Tracker Resp. Description -------------------------------------------------------------------------------- o kern/159646 emulation [linux] [patch] bump Linux version in linuxulator f kern/156691 emulation [vmware] [panic] panic when using hard disks as RAW de o kern/156353 emulation [ibcs2] ibcs2 binaries that execute on 4.x not working o kern/155577 emulation [boot] BTX halted after install. Reboot during install o kern/155040 emulation [linux] [patch] Linux recvfrom doesn't handle proto fa o kern/153990 emulation [hyper-v]: Will not install into Hyper-V on Server 200 o kern/153887 emulation [linux] Linux emulator not understand STB_GNU_UNIQUE b o kern/153243 emulation [ibcs2] Seg fault whne running COFF binary using iBCS2 o kern/151714 emulation [linux] print/acroread9 not usable due to lack of supp a bin/150262 emulation [patch] truss(1) -f doesn't follow descendants of the a kern/150186 emulation [parallels] [panic] Parallels Desktop: CDROM disconnec o ports/148097 emulation [patch] suggested addition to linux_base-* packages to o ports/148096 emulation emulators/linux_base-* can not be built from ports on o kern/147793 emulation [vmware] [panic] cdrom handling, panic, possible race o kern/146237 emulation [linux] Linux binaries not reading directories mounted p kern/144584 emulation [linprocfs][patch] bogus values in linprocfs o ports/142837 emulation [patch] emulators/linux_base-* packages fails to insta o kern/140156 emulation [linux] cdparanoia fails to read drive data f kern/138944 emulation [parallels] [regression] Parallels no longer works in o kern/138880 emulation [linux] munmap segfaults after linux_mmap2 stresstest o ports/135337 emulation [PATCH] emulators/linux_base-f10: incorrect bash usage s kern/133144 emulation [linux] linuxulator 2.6 crashes with nvidias libGL.so. o kern/129169 emulation [linux] [patch] Linux Emulation ENOTCONN error using n o kern/126232 emulation [linux] Linux ioctl TCGETS (0x5401) always fails o kern/86619 emulation [linux] linux emulator interacts oddly with cp a kern/72920 emulation [linux] path "prefixing" is not done on unix domain so o kern/41543 emulation [patch] [request] easier wine/w23 support o kern/39201 emulation [linux] [patch] ptrace(2) and rfork(RFLINUXTHPN) confu o kern/36952 emulation [patch] [linux] ldd(1) command of linux does not work o kern/11165 emulation [ibcs2] IBCS2 doesn't work correctly with PID_MAX 9999 30 problems total. From owner-freebsd-emulation@FreeBSD.ORG Mon Apr 9 19:20:18 2012 Return-Path: Delivered-To: emulation@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 259931065688 for ; Mon, 9 Apr 2012 19:20:18 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 119988FC14 for ; Mon, 9 Apr 2012 19:20:18 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id q39JKHhd097951 for ; Mon, 9 Apr 2012 19:20:17 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id q39JKHan097950; Mon, 9 Apr 2012 19:20:17 GMT (envelope-from gnats) Date: Mon, 9 Apr 2012 19:20:17 GMT Message-Id: <201204091920.q39JKHan097950@freefall.freebsd.org> To: emulation@FreeBSD.org From: Volodymyr Kostyrko Cc: Subject: Re: ports/166485: www/linux-f10-flashplugin11 is vulnerable X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Volodymyr Kostyrko List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 09 Apr 2012 19:20:18 -0000 The following reply was made to PR ports/166485; it has been noted by GNATS. From: Volodymyr Kostyrko To: bug-followup@FreeBSD.org, turutani@scphys.kyoto-u.ac.jp Cc: Subject: Re: ports/166485: www/linux-f10-flashplugin11 is vulnerable Date: Mon, 09 Apr 2012 22:19:53 +0300 Geez, I missed one thing that possibly explains this situation: Apr 8 21:43:24 limbo kernel: pid 6571 (npviewer.bin), uid 1001: exited on signal 4 (core dumped) My machine is not SSE2 capable. CPU: AMD Athlon(tm) (1750.59-MHz 686-class CPU) Origin = "AuthenticAMD" Id = 0x6a0 Family = 6 Model = a Stepping = 0 Features=0x383fbff AMD Features=0xc0400800 Windows version on the same machine works. It seems I should bug Adobe about that... -- Sphinx of black quartz judge my vow. From owner-freebsd-emulation@FreeBSD.ORG Mon Apr 9 22:10:50 2012 Return-Path: Delivered-To: emulation@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D2223106566B; Mon, 9 Apr 2012 22:10:50 +0000 (UTC) (envelope-from eadler@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id A5F568FC08; Mon, 9 Apr 2012 22:10:50 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id q39MAoCA059544; Mon, 9 Apr 2012 22:10:50 GMT (envelope-from eadler@freefall.freebsd.org) Received: (from eadler@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id q39MAoZk059534; Mon, 9 Apr 2012 22:10:50 GMT (envelope-from eadler) Date: Mon, 9 Apr 2012 22:10:50 GMT Message-Id: <201204092210.q39MAoZk059534@freefall.freebsd.org> To: eadler@FreeBSD.org, emulation@FreeBSD.org, eadler@FreeBSD.org From: eadler@FreeBSD.org Cc: Subject: Re: ports/166485: www/linux-f10-flashplugin11 is vulnerable 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: Mon, 09 Apr 2012 22:10:50 -0000 Synopsis: www/linux-f10-flashplugin11 is vulnerable Responsible-Changed-From-To: emulation->eadler Responsible-Changed-By: eadler Responsible-Changed-When: Mon Apr 9 22:10:50 UTC 2012 Responsible-Changed-Why: take as flash maintainer http://www.freebsd.org/cgi/query-pr.cgi?pr=166485 From owner-freebsd-emulation@FreeBSD.ORG Tue Apr 10 22:56:58 2012 Return-Path: Delivered-To: freebsd-emulation@FreeBSD.org Received: from [127.0.0.1] (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by hub.freebsd.org (Postfix) with ESMTP id E7513106564A for ; Tue, 10 Apr 2012 22:56:57 +0000 (UTC) (envelope-from jkim@FreeBSD.org) From: Jung-uk Kim To: freebsd-emulation@FreeBSD.org Date: Tue, 10 Apr 2012 18:56:43 -0400 User-Agent: KMail/1.6.2 MIME-Version: 1.0 Content-Disposition: inline Content-Type: Multipart/Mixed; boundary="Boundary-00=_uqLhPoic5tB/c6n" Message-Id: <201204101856.46591.jkim@FreeBSD.org> Cc: Subject: [PATCH] pipe2 for Linuxulator 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: Tue, 10 Apr 2012 22:56:58 -0000 --Boundary-00=_uqLhPoic5tB/c6n Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Th attached patch implements pipe2 syscall for Linuxulator, which is quite trivial. Although it was added in Linux 2.6.27 (thanks, netchild!), it is often used by popular Linux applications, e.g., Adobe Flash plugin. Please note linux_pipe() was moved from MD files to sys/compat/linux/linux_file.c because both amd64 and i386 versions looked the same and I failed to see any reason. I also changed file descriptor argument from l_ulong * to l_int *, which seemed more appropriate. Any objections? Thanks! Jung-uk Kim * PS: This patch is also available from here: http://people.freebsd.org/~jkim/linux_pipe2.diff --Boundary-00=_uqLhPoic5tB/c6n Content-Type: text/plain; charset="iso-8859-1"; name="linux_pipe2.diff" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="linux_pipe2.diff" Index: sys/amd64/linux32/linux32_machdep.c =================================================================== --- sys/amd64/linux32/linux32_machdep.c (revision 234112) +++ sys/amd64/linux32/linux32_machdep.c (working copy) @@ -698,25 +698,6 @@ linux_iopl(struct thread *td, struct linux_iopl_ar } int -linux_pipe(struct thread *td, struct linux_pipe_args *args) -{ - int error; - int fildes[2]; - -#ifdef DEBUG - if (ldebug(pipe)) - printf(ARGS(pipe, "*")); -#endif - - error = kern_pipe(td, fildes); - if (error) - return (error); - - /* XXX: Close descriptors on error. */ - return (copyout(fildes, args->pipefds, sizeof fildes)); -} - -int linux_sigaction(struct thread *td, struct linux_sigaction_args *args) { l_osigaction_t osa; Index: sys/amd64/linux32/linux32_systrace_args.c =================================================================== --- sys/amd64/linux32/linux32_systrace_args.c (revision 234112) +++ sys/amd64/linux32/linux32_systrace_args.c (working copy) @@ -287,7 +287,7 @@ systrace_args(int sysnum, void *params, uint64_t * /* linux_pipe */ case 42: { struct linux_pipe_args *p = params; - uarg[0] = (intptr_t) p->pipefds; /* l_ulong * */ + uarg[0] = (intptr_t) p->pipefds; /* l_int * */ *n_args = 1; break; } @@ -2172,7 +2172,10 @@ systrace_args(int sysnum, void *params, uint64_t * } /* linux_pipe2 */ case 331: { - *n_args = 0; + struct linux_pipe2_args *p = params; + uarg[0] = (intptr_t) p->pipefds; /* l_int * */ + iarg[1] = p->flags; /* l_int */ + *n_args = 2; break; } /* linux_inotify_init1 */ @@ -2689,7 +2692,7 @@ systrace_entry_setargdesc(int sysnum, int ndx, cha case 42: switch(ndx) { case 0: - p = "l_ulong *"; + p = "l_int *"; break; default: break; @@ -5368,6 +5371,16 @@ systrace_entry_setargdesc(int sysnum, int ndx, cha break; /* linux_pipe2 */ case 331: + switch(ndx) { + case 0: + p = "l_int *"; + break; + case 1: + p = "l_int"; + break; + default: + break; + }; break; /* linux_inotify_init1 */ case 332: @@ -6621,6 +6634,9 @@ systrace_return_setargdesc(int sysnum, int ndx, ch case 330: /* linux_pipe2 */ case 331: + if (ndx == 0 || ndx == 1) + p = "int"; + break; /* linux_inotify_init1 */ case 332: /* linux_preadv */ Index: sys/amd64/linux32/syscalls.master =================================================================== --- sys/amd64/linux32/syscalls.master (revision 234112) +++ sys/amd64/linux32/syscalls.master (working copy) @@ -95,7 +95,7 @@ 39 AUE_MKDIR STD { int linux_mkdir(char *path, l_int mode); } 40 AUE_RMDIR STD { int linux_rmdir(char *path); } 41 AUE_DUP NOPROTO { int dup(u_int fd); } -42 AUE_PIPE STD { int linux_pipe(l_ulong *pipefds); } +42 AUE_PIPE STD { int linux_pipe(l_int *pipefds); } 43 AUE_NULL STD { int linux_times(struct l_times_argv *buf); } 44 AUE_NULL UNIMPL prof 45 AUE_NULL STD { int linux_brk(l_ulong dsend); } @@ -536,7 +536,7 @@ 328 AUE_NULL STD { int linux_eventfd2(void); } 329 AUE_NULL STD { int linux_epoll_create1(void); } 330 AUE_NULL STD { int linux_dup3(void); } -331 AUE_NULL STD { int linux_pipe2(void); } +331 AUE_NULL STD { int linux_pipe2(l_int *pipefds, l_int flags); } 332 AUE_NULL STD { int linux_inotify_init1(void); } ; linux 2.6.30: 333 AUE_NULL STD { int linux_preadv(void); } Index: sys/amd64/linux32/linux32_sysent.c =================================================================== --- sys/amd64/linux32/linux32_sysent.c (revision 234112) +++ sys/amd64/linux32/linux32_sysent.c (working copy) @@ -350,7 +350,7 @@ struct sysent linux_sysent[] = { { 0, (sy_call_t *)linux_eventfd2, AUE_NULL, NULL, 0, 0, 0, SY_THR_STATIC }, /* 328 = linux_eventfd2 */ { 0, (sy_call_t *)linux_epoll_create1, AUE_NULL, NULL, 0, 0, 0, SY_THR_STATIC }, /* 329 = linux_epoll_create1 */ { 0, (sy_call_t *)linux_dup3, AUE_NULL, NULL, 0, 0, 0, SY_THR_STATIC }, /* 330 = linux_dup3 */ - { 0, (sy_call_t *)linux_pipe2, AUE_NULL, NULL, 0, 0, 0, SY_THR_STATIC }, /* 331 = linux_pipe2 */ + { AS(linux_pipe2_args), (sy_call_t *)linux_pipe2, AUE_NULL, NULL, 0, 0, 0, SY_THR_STATIC }, /* 331 = linux_pipe2 */ { 0, (sy_call_t *)linux_inotify_init1, AUE_NULL, NULL, 0, 0, 0, SY_THR_STATIC }, /* 332 = linux_inotify_init1 */ { 0, (sy_call_t *)linux_preadv, AUE_NULL, NULL, 0, 0, 0, SY_THR_STATIC }, /* 333 = linux_preadv */ { 0, (sy_call_t *)linux_pwritev, AUE_NULL, NULL, 0, 0, 0, SY_THR_STATIC }, /* 334 = linux_pwritev */ Index: sys/amd64/linux32/linux32_dummy.c =================================================================== --- sys/amd64/linux32/linux32_dummy.c (revision 234112) +++ sys/amd64/linux32/linux32_dummy.c (working copy) @@ -122,7 +122,6 @@ DUMMY(signalfd4); DUMMY(eventfd2); DUMMY(epoll_create1); DUMMY(dup3); -DUMMY(pipe2); DUMMY(inotify_init1); /* linux 2.6.30: */ DUMMY(preadv); Index: sys/amd64/linux32/linux32_proto.h =================================================================== --- sys/amd64/linux32/linux32_proto.h (revision 234112) +++ sys/amd64/linux32/linux32_proto.h (working copy) @@ -153,7 +153,7 @@ struct linux_rmdir_args { char path_l_[PADL_(char *)]; char * path; char path_r_[PADR_(char *)]; }; struct linux_pipe_args { - char pipefds_l_[PADL_(l_ulong *)]; l_ulong * pipefds; char pipefds_r_[PADR_(l_ulong *)]; + char pipefds_l_[PADL_(l_int *)]; l_int * pipefds; char pipefds_r_[PADR_(l_int *)]; }; struct linux_times_args { char buf_l_[PADL_(struct l_times_argv *)]; struct l_times_argv * buf; char buf_r_[PADR_(struct l_times_argv *)]; @@ -1046,7 +1046,8 @@ struct linux_dup3_args { register_t dummy; }; struct linux_pipe2_args { - register_t dummy; + char pipefds_l_[PADL_(l_int *)]; l_int * pipefds; char pipefds_r_[PADR_(l_int *)]; + char flags_l_[PADL_(l_int)]; l_int flags; char flags_r_[PADR_(l_int)]; }; struct linux_inotify_init1_args { register_t dummy; Index: sys/compat/linux/linux_file.c =================================================================== --- sys/compat/linux/linux_file.c (revision 234112) +++ sys/compat/linux/linux_file.c (working copy) @@ -69,6 +69,8 @@ __FBSDID("$FreeBSD$"); #include #include +extern int do_pipe(struct thread *td, int fildes[2], int flags); + int linux_creat(struct thread *td, struct linux_creat_args *args) { @@ -1575,3 +1577,49 @@ linux_fadvise64_64(struct thread *td, struct linux return (kern_posix_fadvise(td, args->fd, args->offset, args->len, advice)); } + +int +linux_pipe(struct thread *td, struct linux_pipe_args *args) +{ + int fildes[2]; + int error; + +#ifdef DEBUG + if (ldebug(pipe)) + printf(ARGS(pipe, "*")); +#endif + + error = kern_pipe(td, fildes); + if (error) + return (error); + + /* XXX: Close descriptors on error. */ + return (copyout(fildes, args->pipefds, sizeof(fildes))); +} + +int +linux_pipe2(struct thread *td, struct linux_pipe2_args *args) +{ + int fildes[2]; + int error, flags; + +#ifdef DEBUG + if (ldebug(pipe2)) + printf(ARGS(pipe2, "*, %d"), args->flags); +#endif + + if ((args->flags & ~(LINUX_O_NONBLOCK | LINUX_O_CLOEXEC)) != 0) + return (EINVAL); + + flags = 0; + if ((args->flags & LINUX_O_NONBLOCK) != 0) + flags |= O_NONBLOCK; + if ((args->flags & LINUX_O_CLOEXEC) != 0) + flags |= O_CLOEXEC; + error = do_pipe(td, fildes, flags); + if (error) + return (error); + + /* XXX: Close descriptors on error. */ + return (copyout(fildes, args->pipefds, sizeof(fildes))); +} Index: sys/i386/linux/linux_sysent.c =================================================================== --- sys/i386/linux/linux_sysent.c (revision 234112) +++ sys/i386/linux/linux_sysent.c (working copy) @@ -349,7 +349,7 @@ struct sysent linux_sysent[] = { { 0, (sy_call_t *)linux_eventfd2, AUE_NULL, NULL, 0, 0, 0, SY_THR_STATIC }, /* 328 = linux_eventfd2 */ { 0, (sy_call_t *)linux_epoll_create1, AUE_NULL, NULL, 0, 0, 0, SY_THR_STATIC }, /* 329 = linux_epoll_create1 */ { 0, (sy_call_t *)linux_dup3, AUE_NULL, NULL, 0, 0, 0, SY_THR_STATIC }, /* 330 = linux_dup3 */ - { 0, (sy_call_t *)linux_pipe2, AUE_NULL, NULL, 0, 0, 0, SY_THR_STATIC }, /* 331 = linux_pipe2 */ + { AS(linux_pipe2_args), (sy_call_t *)linux_pipe2, AUE_NULL, NULL, 0, 0, 0, SY_THR_STATIC }, /* 331 = linux_pipe2 */ { 0, (sy_call_t *)linux_inotify_init1, AUE_NULL, NULL, 0, 0, 0, SY_THR_STATIC }, /* 332 = linux_inotify_init1 */ { 0, (sy_call_t *)linux_preadv, AUE_NULL, NULL, 0, 0, 0, SY_THR_STATIC }, /* 333 = linux_preadv */ { 0, (sy_call_t *)linux_pwritev, AUE_NULL, NULL, 0, 0, 0, SY_THR_STATIC }, /* 334 = linux_pwritev */ Index: sys/i386/linux/linux_machdep.c =================================================================== --- sys/i386/linux/linux_machdep.c (revision 234112) +++ sys/i386/linux/linux_machdep.c (working copy) @@ -587,25 +587,6 @@ linux_mprotect(struct thread *td, struct linux_mpr } int -linux_pipe(struct thread *td, struct linux_pipe_args *args) -{ - int error; - int fildes[2]; - -#ifdef DEBUG - if (ldebug(pipe)) - printf(ARGS(pipe, "*")); -#endif - - error = kern_pipe(td, fildes); - if (error) - return (error); - - /* XXX: Close descriptors on error. */ - return (copyout(fildes, args->pipefds, sizeof fildes)); -} - -int linux_ioperm(struct thread *td, struct linux_ioperm_args *args) { int error; Index: sys/i386/linux/linux_systrace_args.c =================================================================== --- sys/i386/linux/linux_systrace_args.c (revision 234112) +++ sys/i386/linux/linux_systrace_args.c (working copy) @@ -295,7 +295,7 @@ systrace_args(int sysnum, void *params, uint64_t * /* linux_pipe */ case 42: { struct linux_pipe_args *p = params; - uarg[0] = (intptr_t) p->pipefds; /* l_ulong * */ + uarg[0] = (intptr_t) p->pipefds; /* l_int * */ *n_args = 1; break; } @@ -2263,7 +2263,10 @@ systrace_args(int sysnum, void *params, uint64_t * } /* linux_pipe2 */ case 331: { - *n_args = 0; + struct linux_pipe2_args *p = params; + uarg[0] = (intptr_t) p->pipefds; /* l_int * */ + iarg[1] = p->flags; /* l_int */ + *n_args = 2; break; } /* linux_inotify_init1 */ @@ -2793,7 +2796,7 @@ systrace_entry_setargdesc(int sysnum, int ndx, cha case 42: switch(ndx) { case 0: - p = "l_ulong *"; + p = "l_int *"; break; default: break; @@ -5664,6 +5667,16 @@ systrace_entry_setargdesc(int sysnum, int ndx, cha break; /* linux_pipe2 */ case 331: + switch(ndx) { + case 0: + p = "l_int *"; + break; + case 1: + p = "l_int"; + break; + default: + break; + }; break; /* linux_inotify_init1 */ case 332: @@ -6979,6 +6992,9 @@ systrace_return_setargdesc(int sysnum, int ndx, ch case 330: /* linux_pipe2 */ case 331: + if (ndx == 0 || ndx == 1) + p = "int"; + break; /* linux_inotify_init1 */ case 332: /* linux_preadv */ Index: sys/i386/linux/syscalls.master =================================================================== --- sys/i386/linux/syscalls.master (revision 234112) +++ sys/i386/linux/syscalls.master (working copy) @@ -95,7 +95,7 @@ 39 AUE_MKDIR STD { int linux_mkdir(char *path, l_int mode); } 40 AUE_RMDIR STD { int linux_rmdir(char *path); } 41 AUE_DUP NOPROTO { int dup(u_int fd); } -42 AUE_PIPE STD { int linux_pipe(l_ulong *pipefds); } +42 AUE_PIPE STD { int linux_pipe(l_int *pipefds); } 43 AUE_NULL STD { int linux_times(struct l_times_argv *buf); } 44 AUE_NULL UNIMPL prof 45 AUE_NULL STD { int linux_brk(l_ulong dsend); } @@ -546,7 +546,7 @@ 328 AUE_NULL STD { int linux_eventfd2(void); } 329 AUE_NULL STD { int linux_epoll_create1(void); } 330 AUE_NULL STD { int linux_dup3(void); } -331 AUE_NULL STD { int linux_pipe2(void); } +331 AUE_NULL STD { int linux_pipe2(l_int *pipefds, l_int flags); } 332 AUE_NULL STD { int linux_inotify_init1(void); } ; linux 2.6.30: 333 AUE_NULL STD { int linux_preadv(void); } Index: sys/i386/linux/linux_dummy.c =================================================================== --- sys/i386/linux/linux_dummy.c (revision 234112) +++ sys/i386/linux/linux_dummy.c (working copy) @@ -113,7 +113,6 @@ DUMMY(signalfd4); DUMMY(eventfd2); DUMMY(epoll_create1); DUMMY(dup3); -DUMMY(pipe2); DUMMY(inotify_init1); /* linux 2.6.30: */ DUMMY(preadv); Index: sys/i386/linux/linux_proto.h =================================================================== --- sys/i386/linux/linux_proto.h (revision 234112) +++ sys/i386/linux/linux_proto.h (working copy) @@ -157,7 +157,7 @@ struct linux_rmdir_args { char path_l_[PADL_(char *)]; char * path; char path_r_[PADR_(char *)]; }; struct linux_pipe_args { - char pipefds_l_[PADL_(l_ulong *)]; l_ulong * pipefds; char pipefds_r_[PADR_(l_ulong *)]; + char pipefds_l_[PADL_(l_int *)]; l_int * pipefds; char pipefds_r_[PADR_(l_int *)]; }; struct linux_times_args { char buf_l_[PADL_(struct l_times_argv *)]; struct l_times_argv * buf; char buf_r_[PADR_(struct l_times_argv *)]; @@ -1065,7 +1065,8 @@ struct linux_dup3_args { register_t dummy; }; struct linux_pipe2_args { - register_t dummy; + char pipefds_l_[PADL_(l_int *)]; l_int * pipefds; char pipefds_r_[PADR_(l_int *)]; + char flags_l_[PADL_(l_int)]; l_int flags; char flags_r_[PADR_(l_int)]; }; struct linux_inotify_init1_args { register_t dummy; Index: sys/kern/sys_pipe.c =================================================================== --- sys/kern/sys_pipe.c (revision 234112) +++ sys/kern/sys_pipe.c (working copy) @@ -129,6 +129,8 @@ __FBSDID("$FreeBSD$"); #include #include +int do_pipe(struct thread *td, int fildes[2], int flags); + /* * Use this define if you want to disable *fancy* VM things. Expect an * approx 30% decrease in transfer rate. This could be useful for @@ -405,6 +407,13 @@ pipe_dtor(struct pipe *dpipe) int kern_pipe(struct thread *td, int fildes[2]) { + + return (do_pipe(td, fildes, 0)); +} + +int +do_pipe(struct thread *td, int fildes[2], int flags) +{ struct filedesc *fdp; struct file *rf, *wf; struct pipe *rpipe, *wpipe; @@ -417,7 +426,7 @@ kern_pipe(struct thread *td, int fildes[2]) return (error); rpipe = &pp->pp_rpipe; wpipe = &pp->pp_wpipe; - error = falloc(td, &rf, &fd, 0); + error = falloc(td, &rf, &fd, flags); if (error) { pipeclose(rpipe); pipeclose(wpipe); @@ -433,7 +442,7 @@ kern_pipe(struct thread *td, int fildes[2]) * side while we are blocked trying to allocate the write side. */ finit(rf, FREAD | FWRITE, DTYPE_PIPE, rpipe, &pipeops); - error = falloc(td, &wf, &fd, 0); + error = falloc(td, &wf, &fd, flags); if (error) { fdclose(fdp, rf, fildes[0], td); fdrop(rf, td); --Boundary-00=_uqLhPoic5tB/c6n-- From owner-freebsd-emulation@FreeBSD.ORG Tue Apr 10 23:39:42 2012 Return-Path: Delivered-To: freebsd-emulation@FreeBSD.org Received: from [127.0.0.1] (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by hub.freebsd.org (Postfix) with ESMTP id 49E74106564A for ; Tue, 10 Apr 2012 23:39:42 +0000 (UTC) (envelope-from jkim@FreeBSD.org) From: Jung-uk Kim To: freebsd-emulation@FreeBSD.org Date: Tue, 10 Apr 2012 19:39:31 -0400 User-Agent: KMail/1.6.2 References: <201204101856.46591.jkim@FreeBSD.org> In-Reply-To: <201204101856.46591.jkim@FreeBSD.org> MIME-Version: 1.0 Content-Disposition: inline Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201204101939.33201.jkim@FreeBSD.org> Cc: Subject: Re: [PATCH] pipe2 for Linuxulator 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: Tue, 10 Apr 2012 23:39:42 -0000 On Tuesday 10 April 2012 06:56 pm, Jung-uk Kim wrote: > Th attached patch implements pipe2 syscall for Linuxulator, which > is quite trivial. Although it was added in Linux 2.6.27 (thanks, > netchild!), it is often used by popular Linux applications, e.g., > Adobe Flash plugin. Please note linux_pipe() was moved from MD > files to sys/compat/linux/linux_file.c because both amd64 and i386 > versions looked the same and I failed to see any reason. I also > changed file descriptor argument from l_ulong * to l_int *, which > seemed more appropriate. Any objections? Oops, I missed a patch for sys/kern/kern_descript.c: Index: sys/kern/kern_descrip.c =================================================================== --- sys/kern/kern_descrip.c (revision 234112) +++ sys/kern/kern_descrip.c (working copy) @@ -1681,6 +1681,8 @@ finstall(struct thread *td, struct file *fp, int * } fhold(fp); fdp->fd_ofiles[*fd] = fp; + if ((flags & O_NONBLOCK) != 0) + fp->f_flag |= FNONBLOCK; if ((flags & O_CLOEXEC) != 0) fdp->fd_ofileflags[*fd] |= UF_EXCLOSE; FILEDESC_XUNLOCK(fdp); > * PS: This patch is also available from here: > > http://people.freebsd.org/~jkim/linux_pipe2.diff This patch is updated with it. Sorry, Jung-uk Kim From owner-freebsd-emulation@FreeBSD.ORG Wed Apr 11 00:27:50 2012 Return-Path: Delivered-To: freebsd-emulation@FreeBSD.org Received: from [127.0.0.1] (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by hub.freebsd.org (Postfix) with ESMTP id 0632B106564A for ; Wed, 11 Apr 2012 00:27:50 +0000 (UTC) (envelope-from jkim@FreeBSD.org) From: Jung-uk Kim To: freebsd-emulation@FreeBSD.org Date: Tue, 10 Apr 2012 20:27:40 -0400 User-Agent: KMail/1.6.2 References: <201204101856.46591.jkim@FreeBSD.org> <201204101939.33201.jkim@FreeBSD.org> In-Reply-To: <201204101939.33201.jkim@FreeBSD.org> MIME-Version: 1.0 Content-Disposition: inline Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201204102027.42344.jkim@FreeBSD.org> Cc: Subject: Re: [PATCH] pipe2 for Linuxulator 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: Wed, 11 Apr 2012 00:27:50 -0000 On Tuesday 10 April 2012 07:39 pm, Jung-uk Kim wrote: > On Tuesday 10 April 2012 06:56 pm, Jung-uk Kim wrote: > > Th attached patch implements pipe2 syscall for Linuxulator, which > > is quite trivial. Although it was added in Linux 2.6.27 (thanks, > > netchild!), it is often used by popular Linux applications, e.g., > > Adobe Flash plugin. Please note linux_pipe() was moved from MD > > files to sys/compat/linux/linux_file.c because both amd64 and > > i386 versions looked the same and I failed to see any reason. I > > also changed file descriptor argument from l_ulong * to l_int *, > > which seemed more appropriate. Any objections? > > Oops, I missed a patch for sys/kern/kern_descript.c: > > Index: sys/kern/kern_descrip.c > =================================================================== > --- sys/kern/kern_descrip.c (revision 234112) > +++ sys/kern/kern_descrip.c (working copy) > @@ -1681,6 +1681,8 @@ finstall(struct thread *td, struct file *fp, > int * > } > fhold(fp); > fdp->fd_ofiles[*fd] = fp; > + if ((flags & O_NONBLOCK) != 0) > + fp->f_flag |= FNONBLOCK; > if ((flags & O_CLOEXEC) != 0) > fdp->fd_ofileflags[*fd] |= UF_EXCLOSE; > FILEDESC_XUNLOCK(fdp); > > > * PS: This patch is also available from here: > > > > http://people.freebsd.org/~jkim/linux_pipe2.diff > > This patch is updated with it. Oops, oops... I found that non-blocking does not really work because finit() resets the flag later. The patch was re-done to set the non-blocking flag correctly. I'm really sorry about the mess. Jung-uk Kim From owner-freebsd-emulation@FreeBSD.ORG Fri Apr 13 12:20:22 2012 Return-Path: Delivered-To: emulation@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 4DDA0106566C; Fri, 13 Apr 2012 12:20:22 +0000 (UTC) (envelope-from edwin@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 2135A8FC17; Fri, 13 Apr 2012 12:20:22 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id q3DCKMTJ045339; Fri, 13 Apr 2012 12:20:22 GMT (envelope-from edwin@freefall.freebsd.org) Received: (from edwin@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id q3DCKM6a045335; Fri, 13 Apr 2012 12:20:22 GMT (envelope-from edwin) Date: Fri, 13 Apr 2012 12:20:22 GMT Message-Id: <201204131220.q3DCKM6a045335@freefall.freebsd.org> To: edwin@FreeBSD.org, freebsd-ports-bugs@FreeBSD.org, emulation@FreeBSD.org From: edwin@FreeBSD.org Cc: Subject: Re: ports/166907: repocopy: emulators/linux_base-f10 -> emulators/linux_base-c6 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, 13 Apr 2012 12:20:22 -0000 Synopsis: repocopy: emulators/linux_base-f10 -> emulators/linux_base-c6 Responsible-Changed-From-To: freebsd-ports-bugs->emulation Responsible-Changed-By: edwin Responsible-Changed-When: Fri Apr 13 12:20:21 UTC 2012 Responsible-Changed-Why: Over to maintainer (via the GNATS Auto Assign Tool) http://www.freebsd.org/cgi/query-pr.cgi?pr=166907 From owner-freebsd-emulation@FreeBSD.ORG Fri Apr 13 18:52:01 2012 Return-Path: Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 9A66F1065673 for ; Fri, 13 Apr 2012 18:52:01 +0000 (UTC) (envelope-from landonf@plausible.coop) Received: from web1.plausible.coop (web1.plausible.coop [173.45.236.101]) by mx1.freebsd.org (Postfix) with ESMTP id 69F1E8FC0A for ; Fri, 13 Apr 2012 18:52:01 +0000 (UTC) Received: from smtp.office.plausible.coop (c-24-5-85-69.hsd1.ca.comcast.net [24.5.85.69]) by web1.plausible.coop (Postfix) with ESMTP id 679D4C6C335 for ; Fri, 13 Apr 2012 11:52:36 -0700 (PDT) Received: by smtp.office.plausible.coop (Postfix, from userid 65534) id 1FC777B4409; Fri, 13 Apr 2012 11:51:55 -0700 (PDT) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail1.office.plausiblelabs.com X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED autolearn=unavailable version=3.3.1 Received: from [192.168.1.176] (rrcs-50-74-162-234.nyc.biz.rr.com [50.74.162.234]) by smtp.office.plausible.coop (Postfix) with ESMTPSA id AA0307B4401 for ; Fri, 13 Apr 2012 11:51:52 -0700 (PDT) From: Landon J Fuller Content-Type: multipart/mixed; boundary="Apple-Mail=_6B83BA87-1108-4832-B016-1EF6DA3DFC93" Date: Fri, 13 Apr 2012 14:51:49 -0400 Message-Id: <6BCC0BDE-C9FD-47F0-96AE-88F797EFB074@plausible.coop> To: freebsd-emulation@freebsd.org Mime-Version: 1.0 (Apple Message framework v1257) X-Mailer: Apple Mail (2.1257) Subject: [PATCH] VLAN trunking support in VirtualBox vboxnetflt 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, 13 Apr 2012 18:52:01 -0000 --Apple-Mail=_6B83BA87-1108-4832-B016-1EF6DA3DFC93 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii Howdy, I was looking into trunking VLANs into a virtual machine via bridging, = and noted that transmit of 802.1q tagged packets worked from the guest = VM, but upon reception, the VLAN tag seemed to be stripped before the = packets hit the guest's interface. Taking a look at the netgraph-based bridging implementation, it looks = like the VLAN tag is not being re-inserted at the head of the ethernet = frame prior to handing off the to VirtualBox, and VBox doesn't seem to = have an equivalent 'ether_vtag' field in its INTNETSG struct to handle = this. Thus, to preserve the VLAN tag, I modified vboxNetFltFreeBSDMBufToSG() = to ether_vlanencap() to insert the VLAN tag before handing off to VBox. = With this in place, I was able to successfully trunk VLANs to a virtual = machine.=20 Some caveats: - If using virtio-kmod's if_vtnet, you must set vlanhwfilter (or = promisc) flags on the guest interface before virtualbox will pass the = VLAN tagged packets through. Otherwise, the VBox virtio-net device = implementation will filter out the incoming packets before handing them = to the VM hardware. - VBox's em(4) host implementation does not appear to support = 'hardware' VLAN tagging, but it does declare it. If using a em(4) = virtualized NIC, you must set -vlanhwtag on the guest interface. I welcome someone(s) with more experience than I eyeballing the (tiny) = attached patch. I'm also especially concerned as to whether this should = be considered supported functionality in VBox, or I'm just getting lucky = with the virtio-net code path. Thanks, Landon --Apple-Mail=_6B83BA87-1108-4832-B016-1EF6DA3DFC93 Content-Disposition: attachment; filename*0=patch-src-VBox-HostDrivers-VBoxNetFlt-freebsd-VBoxNetFlt-freebsd; filename*1=.c Content-Type: application/octet-stream; name="patch-src-VBox-HostDrivers-VBoxNetFlt-freebsd-VBoxNetFlt-freebsd.c" Content-Transfer-Encoding: 7bit --- src/VBox/./HostDrivers/VBoxNetFlt/freebsd/VBoxNetFlt-freebsd.c.orig 2012-04-12 17:27:56.035382846 -0400 +++ src/VBox/./HostDrivers/VBoxNetFlt/freebsd/VBoxNetFlt-freebsd.c 2012-04-12 17:30:13.038601065 -0400 @@ -439,6 +439,16 @@ if (m == NULL) break; + /* Preprend a VLAN header for consumption by the virtual switch */ + if (m->m_flags & M_VLANTAG) { + m = ether_vlanencap(m, m->m_pkthdr.ether_vtag); + if (m == NULL) { + printf("vboxflt: unable to prepend VLAN header\n"); + break; + } + m->m_flags &= ~M_VLANTAG; + } + for (m0 = m; m0 != NULL; m0 = m0->m_next) if (m0->m_len > 0) cSegs++; --Apple-Mail=_6B83BA87-1108-4832-B016-1EF6DA3DFC93-- From owner-freebsd-emulation@FreeBSD.ORG Fri Apr 13 20:32:22 2012 Return-Path: Delivered-To: freebsd-emulation@FreeBSD.org Received: by hub.freebsd.org (Postfix, from userid 1233) id 17E69106566B; Fri, 13 Apr 2012 20:32:22 +0000 (UTC) Date: Fri, 13 Apr 2012 20:32:22 +0000 From: Alexander Best To: Jung-uk Kim Message-ID: <20120413203222.GA80646@freebsd.org> References: <201204101856.46591.jkim@FreeBSD.org> <201204101939.33201.jkim@FreeBSD.org> <201204102027.42344.jkim@FreeBSD.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <201204102027.42344.jkim@FreeBSD.org> Cc: freebsd-emulation@FreeBSD.org Subject: Re: [PATCH] pipe2 for Linuxulator 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, 13 Apr 2012 20:32:22 -0000 On Tue Apr 10 12, Jung-uk Kim wrote: > On Tuesday 10 April 2012 07:39 pm, Jung-uk Kim wrote: > > On Tuesday 10 April 2012 06:56 pm, Jung-uk Kim wrote: > > > Th attached patch implements pipe2 syscall for Linuxulator, which > > > is quite trivial. Although it was added in Linux 2.6.27 (thanks, > > > netchild!), it is often used by popular Linux applications, e.g., > > > Adobe Flash plugin. Please note linux_pipe() was moved from MD > > > files to sys/compat/linux/linux_file.c because both amd64 and > > > i386 versions looked the same and I failed to see any reason. I > > > also changed file descriptor argument from l_ulong * to l_int *, > > > which seemed more appropriate. Any objections? > > > > Oops, I missed a patch for sys/kern/kern_descript.c: > > > > Index: sys/kern/kern_descrip.c > > =================================================================== > > --- sys/kern/kern_descrip.c (revision 234112) > > +++ sys/kern/kern_descrip.c (working copy) > > @@ -1681,6 +1681,8 @@ finstall(struct thread *td, struct file *fp, > > int * > > } > > fhold(fp); > > fdp->fd_ofiles[*fd] = fp; > > + if ((flags & O_NONBLOCK) != 0) > > + fp->f_flag |= FNONBLOCK; > > if ((flags & O_CLOEXEC) != 0) > > fdp->fd_ofileflags[*fd] |= UF_EXCLOSE; > > FILEDESC_XUNLOCK(fdp); > > > > > * PS: This patch is also available from here: > > > > > > http://people.freebsd.org/~jkim/linux_pipe2.diff > > > > This patch is updated with it. > > Oops, oops... I found that non-blocking does not really work because > finit() resets the flag later. The patch was re-done to set the > non-blocking flag correctly. > > I'm really sorry about the mess. i'm having problems with the patch. beforehand, playing music from www.mixcloud.com worked. now the flash based player is initialising forever. 'ps alx' says the following about the npviewer.bin task: UID PID PPID CPU PRI NI VSZ RSS MWCHAN STAT TT TIME COMMAND 1001 1044 1034 0 40 0 0 0 - Z - 0:00,05 and procstat -a says: PID PPID PGID SID TSID THR LOGIN WCHAN EMUL COMM 0 0 0 0 0 11 - - - kernel 1 0 1 1 0 1 root wait FreeBSD ELF64 init 2 0 0 0 0 1 - ccb_scan - xpt_thrd 3 0 0 0 0 1 - psleep - pagedaemon 4 0 0 0 0 1 - psleep - vmdaemon 5 0 0 0 0 1 - pgzero - pagezero 6 0 0 0 0 1 - psleep - bufdaemon 7 0 0 0 0 1 - syncer - syncer 8 0 0 0 0 1 - vlruwt - vnlru 9 0 0 0 0 1 - sdflush - softdepflush 10 0 0 0 0 2 - - - idle 11 0 0 0 0 15 - - - intr 12 0 0 0 0 3 - - - geom 13 0 0 0 0 1 - - - yarrow 14 0 0 0 0 32 - - - usb 15 0 0 0 0 1 - - - schedcpu 325 1 325 325 0 1 root select FreeBSD ELF64 wpa_supplicant 429 1 429 429 0 1 root select FreeBSD ELF64 devd 616 1 616 616 0 1 root select FreeBSD ELF64 syslogd 680 1 680 680 0 1 root select FreeBSD ELF64 powerd 708 1 707 707 0 1 root nanslp FreeBSD ELF64 smartd 713 1 713 713 0 1 root select FreeBSD ELF64 dbus-daemon 725 1 725 725 0 3 root uwait FreeBSD ELF64 musicpd 730 1 730 730 0 1 root select FreeBSD ELF64 mpdscribble 771 1 771 771 0 1 root select FreeBSD ELF64 sendmail 774 1 774 774 0 1 root pause FreeBSD ELF64 sendmail 778 1 778 778 0 1 root nanslp FreeBSD ELF64 cron 788 1 788 788 0 1 root select FreeBSD ELF64 identd 816 1 816 816 816 1 arundel wait FreeBSD ELF64 login 817 1 817 817 817 1 root ttyin FreeBSD ELF64 getty 818 1 818 818 818 1 root ttyin FreeBSD ELF64 getty 819 1 819 819 819 1 root ttyin FreeBSD ELF64 getty 820 1 820 820 820 1 root ttyin FreeBSD ELF64 getty 821 1 821 821 821 1 root ttyin FreeBSD ELF64 getty 822 1 822 822 822 1 root ttyin FreeBSD ELF64 getty 823 1 823 823 823 1 root ttyin FreeBSD ELF64 getty 828 1 828 828 0 2 root piperd FreeBSD ELF64 hald 830 1 713 713 0 18 root waitvt FreeBSD ELF64 console-kit-daemon 832 1 713 713 0 2 root select FreeBSD ELF64 polkitd 834 1 833 833 0 1 root select FreeBSD ELF64 gam_server 835 828 828 828 0 1 root select FreeBSD ELF64 hald-runner 866 835 828 828 0 1 root kqread FreeBSD ELF64 hald-addon-mouse-sy 886 835 828 828 0 1 root select FreeBSD ELF64 hald-addon-storage 902 816 902 816 816 1 arundel pause FreeBSD ELF64 zsh 930 1 930 930 0 1 arundel select FreeBSD ELF64 ssh-agent 950 902 950 816 816 1 arundel wait FreeBSD ELF64 sh 968 950 950 816 816 1 arundel wait FreeBSD ELF64 xinit 969 968 969 816 816 1 arundel select FreeBSD ELF64 Xorg 972 968 972 816 816 1 arundel wait FreeBSD ELF64 sh 973 972 972 816 816 1 arundel kqread FreeBSD ELF64 awesome 977 1 972 816 816 1 arundel select FreeBSD ELF64 dbus-launch 978 1 978 978 0 1 arundel select FreeBSD ELF64 dbus-daemon 982 1 982 982 0 2 arundel piperd FreeBSD ELF64 sakura 983 982 982 982 0 1 arundel sbwait FreeBSD ELF64 gnome-pty-helper 984 982 984 984 984 1 arundel pause FreeBSD ELF64 zsh 986 1 986 986 0 1 arundel select FreeBSD ELF64 pidgin 989 984 989 984 984 1 arundel select FreeBSD ELF64 ssh 991 1 991 991 0 18 arundel uwait FreeBSD ELF64 chrome 992 991 991 991 0 1 arundel select FreeBSD ELF64 chrome 993 991 991 991 0 1 arundel sbwait FreeBSD ELF64 chrome 996 993 991 991 0 4 arundel usem FreeBSD ELF64 chrome 997 993 991 991 0 4 arundel usem FreeBSD ELF64 chrome 998 993 991 991 0 4 arundel usem FreeBSD ELF64 chrome 1000 993 991 991 0 4 arundel usem FreeBSD ELF64 chrome 1001 993 991 991 0 4 arundel usem FreeBSD ELF64 chrome 1003 993 991 991 0 4 arundel usem FreeBSD ELF64 chrome 1004 993 991 991 0 4 arundel usem FreeBSD ELF64 chrome 1007 993 991 991 0 4 arundel usem FreeBSD ELF64 chrome 1008 993 991 991 0 4 arundel usem FreeBSD ELF64 chrome 1009 993 991 991 0 4 arundel usem FreeBSD ELF64 chrome 1010 993 991 991 0 4 arundel usem FreeBSD ELF64 chrome 1011 993 991 991 0 4 arundel usem FreeBSD ELF64 chrome 1012 993 991 991 0 4 arundel usem FreeBSD ELF64 chrome 1034 991 991 991 0 2 arundel kqread FreeBSD ELF64 chrome 1044 1034 991 991 0 1 arundel - Linux ELF32 npviewer.bin 1053 993 991 991 0 4 arundel usem FreeBSD ELF64 chrome 1062 982 1062 1062 1062 1 arundel pause FreeBSD ELF64 zsh 1096 982 1096 1096 1096 1 arundel ttyin FreeBSD ELF64 zsh 1139 1062 1139 1062 1062 1 arundel - FreeBSD ELF64 procstat process 1044 was not killable via 'kill -9'. i had to wait for about a minute, until eventually some timeout was hit and the process was ended. eventually i managed to get the flash player to work. this might be related to your patch or it might have been a bug in the linux futex implementation, which has also caused some problems before your patch. now that the flash player is running 'procstat -a' reports: PID PPID PGID SID TSID THR LOGIN WCHAN EMUL COMM 0 0 0 0 0 11 - - - kernel 1 0 1 1 0 1 root wait FreeBSD ELF64 init 2 0 0 0 0 1 - ccb_scan - xpt_thrd 3 0 0 0 0 1 - psleep - pagedaemon 4 0 0 0 0 1 - psleep - vmdaemon 5 0 0 0 0 1 - pgzero - pagezero 6 0 0 0 0 1 - psleep - bufdaemon 7 0 0 0 0 1 - syncer - syncer 8 0 0 0 0 1 - vlruwt - vnlru 9 0 0 0 0 1 - sdflush - softdepflush 10 0 0 0 0 2 - - - idle 11 0 0 0 0 15 - - - intr 12 0 0 0 0 3 - - - geom 13 0 0 0 0 1 - - - yarrow 14 0 0 0 0 32 - - - usb 15 0 0 0 0 1 - - - schedcpu 325 1 325 325 0 1 root select FreeBSD ELF64 wpa_supplicant 429 1 429 429 0 1 root select FreeBSD ELF64 devd 616 1 616 616 0 1 root select FreeBSD ELF64 syslogd 680 1 680 680 0 1 root select FreeBSD ELF64 powerd 708 1 707 707 0 1 root nanslp FreeBSD ELF64 smartd 713 1 713 713 0 1 root select FreeBSD ELF64 dbus-daemon 725 1 725 725 0 3 root uwait FreeBSD ELF64 musicpd 730 1 730 730 0 1 root select FreeBSD ELF64 mpdscribble 771 1 771 771 0 1 root select FreeBSD ELF64 sendmail 774 1 774 774 0 1 root pause FreeBSD ELF64 sendmail 778 1 778 778 0 1 root nanslp FreeBSD ELF64 cron 788 1 788 788 0 1 root select FreeBSD ELF64 identd 816 1 816 816 816 1 arundel wait FreeBSD ELF64 login 817 1 817 817 817 1 root ttyin FreeBSD ELF64 getty 818 1 818 818 818 1 root ttyin FreeBSD ELF64 getty 819 1 819 819 819 1 root ttyin FreeBSD ELF64 getty 820 1 820 820 820 1 root ttyin FreeBSD ELF64 getty 821 1 821 821 821 1 root ttyin FreeBSD ELF64 getty 822 1 822 822 822 1 root ttyin FreeBSD ELF64 getty 823 1 823 823 823 1 root ttyin FreeBSD ELF64 getty 828 1 828 828 0 2 root piperd FreeBSD ELF64 hald 830 1 713 713 0 18 root waitvt FreeBSD ELF64 console-kit-daemon 832 1 713 713 0 2 root select FreeBSD ELF64 polkitd 834 1 833 833 0 1 root select FreeBSD ELF64 gam_server 835 828 828 828 0 1 root select FreeBSD ELF64 hald-runner 866 835 828 828 0 1 root kqread FreeBSD ELF64 hald-addon-mouse-sy 886 835 828 828 0 1 root select FreeBSD ELF64 hald-addon-storage 902 816 902 816 816 1 arundel pause FreeBSD ELF64 zsh 930 1 930 930 0 1 arundel select FreeBSD ELF64 ssh-agent 950 902 950 816 816 1 arundel wait FreeBSD ELF64 sh 968 950 950 816 816 1 arundel wait FreeBSD ELF64 xinit 969 968 969 816 816 1 arundel select FreeBSD ELF64 Xorg 972 968 972 816 816 1 arundel wait FreeBSD ELF64 sh 973 972 972 816 816 1 arundel kqread FreeBSD ELF64 awesome 977 1 972 816 816 1 arundel select FreeBSD ELF64 dbus-launch 978 1 978 978 0 1 arundel select FreeBSD ELF64 dbus-daemon 982 1 982 982 0 2 arundel piperd FreeBSD ELF64 sakura 983 982 982 982 0 1 arundel sbwait FreeBSD ELF64 gnome-pty-helper 984 982 984 984 984 1 arundel pause FreeBSD ELF64 zsh 986 1 986 986 0 1 arundel select FreeBSD ELF64 pidgin 989 984 989 984 984 1 arundel select FreeBSD ELF64 ssh 991 1 991 991 0 21 arundel uwait FreeBSD ELF64 chrome 992 991 991 991 0 1 arundel select FreeBSD ELF64 chrome 993 991 991 991 0 1 arundel sbwait FreeBSD ELF64 chrome 996 993 991 991 0 4 arundel usem FreeBSD ELF64 chrome 997 993 991 991 0 4 arundel usem FreeBSD ELF64 chrome 998 993 991 991 0 4 arundel usem FreeBSD ELF64 chrome 1000 993 991 991 0 4 arundel usem FreeBSD ELF64 chrome 1001 993 991 991 0 4 arundel usem FreeBSD ELF64 chrome 1003 993 991 991 0 4 arundel usem FreeBSD ELF64 chrome 1004 993 991 991 0 4 arundel usem FreeBSD ELF64 chrome 1007 993 991 991 0 4 arundel usem FreeBSD ELF64 chrome 1008 993 991 991 0 4 arundel usem FreeBSD ELF64 chrome 1009 993 991 991 0 4 arundel usem FreeBSD ELF64 chrome 1010 993 991 991 0 4 arundel usem FreeBSD ELF64 chrome 1011 993 991 991 0 4 arundel usem FreeBSD ELF64 chrome 1012 993 991 991 0 4 arundel usem FreeBSD ELF64 chrome 1053 993 991 991 0 4 arundel usem FreeBSD ELF64 chrome 1062 982 1062 1062 1062 1 arundel pause FreeBSD ELF64 zsh 1096 982 1096 1096 1096 1 arundel ttyin FreeBSD ELF64 zsh 1197 991 991 991 0 2 arundel kqread FreeBSD ELF64 chrome 1207 1197 991 991 0 1 arundel select Linux ELF32 npviewer.bin 1234 1197 991 991 0 1 arundel futex Linux ELF32 npviewer.bin 1235 1197 991 991 0 1 arundel futex Linux ELF32 npviewer.bin 1236 1197 991 991 0 1 arundel futex Linux ELF32 npviewer.bin 1237 1197 991 991 0 1 arundel futex Linux ELF32 npviewer.bin 1238 1197 991 991 0 1 arundel futex Linux ELF32 npviewer.bin 1240 1197 991 991 0 1 arundel pcmwrv Linux ELF32 npviewer.bin 1246 1062 1246 1062 1062 1 arundel - FreeBSD ELF64 procstat just drop me a note with exact instructions and i can give you more verbose information or debugging stats. again: this issue might be futex related and not a result of your patch. cheers. alex > > Jung-uk Kim From owner-freebsd-emulation@FreeBSD.ORG Sat Apr 14 13:37:35 2012 Return-Path: Delivered-To: emulation@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 24B3210656D7; Sat, 14 Apr 2012 13:37:35 +0000 (UTC) (envelope-from netchild@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id EC6698FC17; Sat, 14 Apr 2012 13:37:34 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id q3EDbY7V096133; Sat, 14 Apr 2012 13:37:34 GMT (envelope-from netchild@freefall.freebsd.org) Received: (from netchild@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id q3EDbYwU096129; Sat, 14 Apr 2012 13:37:34 GMT (envelope-from netchild) Date: Sat, 14 Apr 2012 13:37:34 GMT Message-Id: <201204141337.q3EDbYwU096129@freefall.freebsd.org> To: netchild@FreeBSD.org, emulation@FreeBSD.org, portmgr@FreeBSD.org From: netchild@FreeBSD.org Cc: Subject: Re: ports/166907: repocopy: emulators/linux_base-f10 -> emulators/linux_base-c6 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: Sat, 14 Apr 2012 13:37:35 -0000 Synopsis: repocopy: emulators/linux_base-f10 -> emulators/linux_base-c6 Responsible-Changed-From-To: emulation->portmgr Responsible-Changed-By: netchild Responsible-Changed-When: Sat Apr 14 13:36:50 UTC 2012 Responsible-Changed-Why: Over to portmgr for action. http://www.freebsd.org/cgi/query-pr.cgi?pr=166907 From owner-freebsd-emulation@FreeBSD.ORG Sat Apr 14 13:51:30 2012 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 271AF106564A; Sat, 14 Apr 2012 13:51:30 +0000 (UTC) (envelope-from alexander@leidinger.net) Received: from mail.ebusiness-leidinger.de (mail.ebusiness-leidinger.de [217.11.53.44]) by mx1.freebsd.org (Postfix) with ESMTP id D42298FC0A; Sat, 14 Apr 2012 13:51:29 +0000 (UTC) Received: from outgoing.leidinger.net (p5796CBEB.dip.t-dialin.net [87.150.203.235]) by mail.ebusiness-leidinger.de (Postfix) with ESMTPSA id 3B4598440A3; Sat, 14 Apr 2012 15:51:09 +0200 (CEST) Received: from unknown (IO.Leidinger.net [192.168.1.12]) by outgoing.leidinger.net (Postfix) with ESMTPS id 826C82DE4; Sat, 14 Apr 2012 15:51:06 +0200 (CEST) Date: Sat, 14 Apr 2012 15:51:05 +0200 From: Alexander Leidinger To: Jung-uk Kim Message-ID: <20120414155105.00002183@unknown> In-Reply-To: <201204101856.46591.jkim@FreeBSD.org> References: <201204101856.46591.jkim@FreeBSD.org> X-Mailer: Claws Mail 3.7.10cvs42 (GTK+ 2.16.6; i586-pc-mingw32msvc) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-EBL-MailScanner-Information: Please contact the ISP for more information X-EBL-MailScanner-ID: 3B4598440A3.AF905 X-EBL-MailScanner: Found to be clean X-EBL-MailScanner-SpamCheck: not spam, spamhaus-ZEN, SpamAssassin (not cached, score=-0.961, required 6, autolearn=disabled, ALL_TRUSTED -1.00, AWL 0.05, T_RP_MATCHES_RCVD -0.01) X-EBL-MailScanner-From: alexander@leidinger.net X-EBL-MailScanner-Watermark: 1335016271.33938@q+FIh9G3y34h/oc/BeGsCg X-EBL-Spam-Status: No Cc: freebsd-emulation@FreeBSD.org Subject: Re: [PATCH] pipe2 for Linuxulator 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: Sat, 14 Apr 2012 13:51:30 -0000 On Tue, 10 Apr 2012 18:56:43 -0400 Jung-uk Kim wrote: > Th attached patch implements pipe2 syscall for Linuxulator, which is > quite trivial. Although it was added in Linux 2.6.27 (thanks, > netchild!), it is often used by popular Linux applications, e.g., > Adobe Flash plugin. Please note linux_pipe() was moved from MD files > to sys/compat/linux/linux_file.c because both amd64 and i386 versions > looked the same and I failed to see any reason. I also changed file > descriptor argument from l_ulong * to l_int *, which seemed more > appropriate. Any objections? Do you have the resources to run a before/after test of the LTP on amd64 and i386? This is mostly to make sure the MD -> MI move does not cause regressions. Bye, Alexander. -- http://www.Leidinger.net Alexander @ Leidinger.net: PGP ID = B0063FE7 http://www.FreeBSD.org netchild @ FreeBSD.org : PGP ID = 72077137 From owner-freebsd-emulation@FreeBSD.ORG Sat Apr 14 13:54:44 2012 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 D6E5110656FC; Sat, 14 Apr 2012 13:54:44 +0000 (UTC) (envelope-from alexander@leidinger.net) Received: from mail.ebusiness-leidinger.de (mail.ebusiness-leidinger.de [217.11.53.44]) by mx1.freebsd.org (Postfix) with ESMTP id 8DD478FC0C; Sat, 14 Apr 2012 13:54:44 +0000 (UTC) Received: from outgoing.leidinger.net (p5796CBEB.dip.t-dialin.net [87.150.203.235]) by mail.ebusiness-leidinger.de (Postfix) with ESMTPSA id 290B984401D; Sat, 14 Apr 2012 15:54:31 +0200 (CEST) Received: from unknown (IO.Leidinger.net [192.168.1.12]) by outgoing.leidinger.net (Postfix) with ESMTPS id 633472DE5; Sat, 14 Apr 2012 15:54:28 +0200 (CEST) Date: Sat, 14 Apr 2012 15:54:27 +0200 From: Alexander Leidinger To: Alexander Best Message-ID: <20120414155427.000056c1@unknown> In-Reply-To: <20120413203222.GA80646@freebsd.org> References: <201204101856.46591.jkim@FreeBSD.org> <201204101939.33201.jkim@FreeBSD.org> <201204102027.42344.jkim@FreeBSD.org> <20120413203222.GA80646@freebsd.org> X-Mailer: Claws Mail 3.7.10cvs42 (GTK+ 2.16.6; i586-pc-mingw32msvc) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-EBL-MailScanner-Information: Please contact the ISP for more information X-EBL-MailScanner-ID: 290B984401D.AFB59 X-EBL-MailScanner: Found to be clean X-EBL-MailScanner-SpamCheck: not spam, spamhaus-ZEN, SpamAssassin (not cached, score=-1.002, required 6, autolearn=disabled, ALL_TRUSTED -1.00, AWL 0.01, T_RP_MATCHES_RCVD -0.01) X-EBL-MailScanner-From: alexander@leidinger.net X-EBL-MailScanner-Watermark: 1335016472.6638@YeS3bOd66CidnmWXNXGBIQ X-EBL-Spam-Status: No Cc: freebsd-emulation@FreeBSD.org, Jung-uk Kim Subject: Re: [PATCH] pipe2 for Linuxulator 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: Sat, 14 Apr 2012 13:54:44 -0000 On Fri, 13 Apr 2012 20:32:22 +0000 Alexander Best wrote: > i'm having problems with the patch. beforehand, playing music from > www.mixcloud.com worked. now the flash based player is initialising > forever. > just drop me a note with exact instructions and i can give you more > verbose information or debugging stats. again: this issue might be > futex related and not a result of your patch. Are you running -current? If yes I Looks try to get some time to commit the linuxulator-dtrace probes, now that SDT probes can be loaded dynamically there is no risk to panic the system when the linuxulator is loaded after boot and dtrace is used. This could help looking at problems with locks. Bye, Alexander. -- http://www.Leidinger.net Alexander @ Leidinger.net: PGP ID = B0063FE7 http://www.FreeBSD.org netchild @ FreeBSD.org : PGP ID = 72077137 From owner-freebsd-emulation@FreeBSD.ORG Sat Apr 14 20:32:56 2012 Return-Path: Delivered-To: freebsd-emulation@FreeBSD.org Received: by hub.freebsd.org (Postfix, from userid 1233) id CFF011065673; Sat, 14 Apr 2012 20:32:56 +0000 (UTC) Date: Sat, 14 Apr 2012 20:32:56 +0000 From: Alexander Best To: Alexander Leidinger Message-ID: <20120414203256.GB19712@freebsd.org> References: <201204101856.46591.jkim@FreeBSD.org> <201204101939.33201.jkim@FreeBSD.org> <201204102027.42344.jkim@FreeBSD.org> <20120413203222.GA80646@freebsd.org> <20120414155427.000056c1@unknown> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20120414155427.000056c1@unknown> Cc: freebsd-emulation@FreeBSD.org, Jung-uk Kim Subject: Re: [PATCH] pipe2 for Linuxulator 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: Sat, 14 Apr 2012 20:32:56 -0000 On Sat Apr 14 12, Alexander Leidinger wrote: > On Fri, 13 Apr 2012 20:32:22 +0000 Alexander Best > wrote: > > > i'm having problems with the patch. beforehand, playing music from > > www.mixcloud.com worked. now the flash based player is initialising > > forever. > > > just drop me a note with exact instructions and i can give you more > > verbose information or debugging stats. again: this issue might be > > futex related and not a result of your patch. > > Are you running -current? If yes I Looks try to get some time to commit > the linuxulator-dtrace probes, now that SDT probes can be loaded > dynamically there is no risk to panic the system when the linuxulator > is loaded after boot and dtrace is used. This could help looking at > problems with locks. yes i'm running a very recent HEAD on amd64. cheers. alex > > Bye, > Alexander. > > -- > http://www.Leidinger.net Alexander @ Leidinger.net: PGP ID = B0063FE7 > http://www.FreeBSD.org netchild @ FreeBSD.org : PGP ID = 72077137 From owner-freebsd-emulation@FreeBSD.ORG Sat Apr 14 20:48:06 2012 Return-Path: Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id AEFA9106564A; Sat, 14 Apr 2012 20:48:06 +0000 (UTC) (envelope-from alexander@leidinger.net) Received: from mail.ebusiness-leidinger.de (mail.ebusiness-leidinger.de [217.11.53.44]) by mx1.freebsd.org (Postfix) with ESMTP id 6346C8FC0A; Sat, 14 Apr 2012 20:48:06 +0000 (UTC) Received: from outgoing.leidinger.net (p5796CBEB.dip.t-dialin.net [87.150.203.235]) by mail.ebusiness-leidinger.de (Postfix) with ESMTPSA id 14A8E84401D; Sat, 14 Apr 2012 22:47:52 +0200 (CEST) Received: from unknown (IO.Leidinger.net [192.168.1.12]) by outgoing.leidinger.net (Postfix) with ESMTPS id 6DDB72E25; Sat, 14 Apr 2012 22:47:48 +0200 (CEST) Date: Sat, 14 Apr 2012 22:47:46 +0200 From: Alexander Leidinger To: Alexander Best Message-ID: <20120414224746.000005fb@unknown> In-Reply-To: <20120414203256.GB19712@freebsd.org> References: <201204101856.46591.jkim@FreeBSD.org> <201204101939.33201.jkim@FreeBSD.org> <201204102027.42344.jkim@FreeBSD.org> <20120413203222.GA80646@freebsd.org> <20120414155427.000056c1@unknown> <20120414203256.GB19712@freebsd.org> X-Mailer: Claws Mail 3.7.10cvs42 (GTK+ 2.16.6; i586-pc-mingw32msvc) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-EBL-MailScanner-Information: Please contact the ISP for more information X-EBL-MailScanner-ID: 14A8E84401D.A4A27 X-EBL-MailScanner: Found to be clean X-EBL-MailScanner-SpamCheck: not spam, spamhaus-ZEN, SpamAssassin (not cached, score=-1.061, required 6, autolearn=disabled, ALL_TRUSTED -1.00, AWL -0.05, T_RP_MATCHES_RCVD -0.01) X-EBL-MailScanner-From: alexander@leidinger.net X-EBL-MailScanner-Watermark: 1335041273.24985@Z/pa+r186UOAOjcuYzUEng X-EBL-Spam-Status: No Cc: freebsd-emulation@FreeBSD.org, Jung-uk Kim Subject: Re: [PATCH] pipe2 for Linuxulator 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: Sat, 14 Apr 2012 20:48:06 -0000 On Sat, 14 Apr 2012 20:32:56 +0000 Alexander Best wrote: > On Sat Apr 14 12, Alexander Leidinger wrote: > > On Fri, 13 Apr 2012 20:32:22 +0000 Alexander Best > > wrote: > > > > > i'm having problems with the patch. beforehand, playing music from > > > www.mixcloud.com worked. now the flash based player is > > > initialising forever. > > > > > just drop me a note with exact instructions and i can give you > > > more verbose information or debugging stats. again: this issue > > > might be futex related and not a result of your patch. > > > > Are you running -current? If yes I Looks try to get some time to > > commit the linuxulator-dtrace probes, now that SDT probes can be > > loaded dynamically there is no risk to panic the system when the > > linuxulator is loaded after boot and dtrace is used. This could > > help looking at problems with locks. > > yes i'm running a very recent HEAD on amd64. I'm in the process of merging all the new stuff from HEAD into my SVN branch. With a slow system and a slow line this may take a while. I hope to at least update my branch in SVN (users/netchild/linuxulator-dtrace) today. I don't know if I get the time to merge it to HEAD today. Bye, Alexander. -- http://www.Leidinger.net Alexander @ Leidinger.net: PGP ID = B0063FE7 http://www.FreeBSD.org netchild @ FreeBSD.org : PGP ID = 72077137 From owner-freebsd-emulation@FreeBSD.ORG Sat Apr 14 22:00:06 2012 Return-Path: Delivered-To: emulation@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 94286106564A for ; Sat, 14 Apr 2012 22:00:06 +0000 (UTC) (envelope-from alexander@leidinger.net) Received: from mail.ebusiness-leidinger.de (mail.ebusiness-leidinger.de [217.11.53.44]) by mx1.freebsd.org (Postfix) with ESMTP id 33DEB8FC22 for ; Sat, 14 Apr 2012 22:00:06 +0000 (UTC) Received: from outgoing.leidinger.net (p5796CBEB.dip.t-dialin.net [87.150.203.235]) by mail.ebusiness-leidinger.de (Postfix) with ESMTPSA id E888F84401D for ; Sat, 14 Apr 2012 23:59:52 +0200 (CEST) Received: from unknown (IO.Leidinger.net [192.168.1.12]) by outgoing.leidinger.net (Postfix) with ESMTPS id 43DFF2E30 for ; Sat, 14 Apr 2012 23:59:50 +0200 (CEST) Date: Sat, 14 Apr 2012 23:59:48 +0200 From: Alexander Leidinger To: emulation@FreeBSD.org Message-ID: <20120414235948.00002d59@unknown> X-Mailer: Claws Mail 3.7.10cvs42 (GTK+ 2.16.6; i586-pc-mingw32msvc) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-EBL-MailScanner-Information: Please contact the ISP for more information X-EBL-MailScanner-ID: E888F84401D.A2481 X-EBL-MailScanner: Found to be clean X-EBL-MailScanner-SpamCheck: not spam, spamhaus-ZEN, SpamAssassin (not cached, score=-1.091, required 6, autolearn=disabled, ALL_TRUSTED -1.00, AWL -0.08, T_RP_MATCHES_RCVD -0.01) X-EBL-MailScanner-From: alexander@leidinger.net X-EBL-MailScanner-Watermark: 1335045593.9045@flk4FSEQ8fROvZtss7cwnA X-EBL-Spam-Status: No Cc: Subject: linuxulator dtrace probes 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: Sat, 14 Apr 2012 22:00:06 -0000 Hi, can someone please test a little bit http://www.leidinger.net/FreeBSD/current-patches/linuxulator-dtrace-20120414.diff on amd64 and i386? Reviews are welcome too. With this you get some static dtrace probes in the linuxulator and some dtrace scripts which check for various things in the linuxulator. You need to run a linux program to test them, off course. You need to have at least r233552, else you may experience a panic if you have loaded the linux module after booting and want to do something with dtrace (even if it is just listing the probes). The diff is relative to /usr/src/sys. Bye, Alexander. -- http://www.Leidinger.net Alexander @ Leidinger.net: PGP ID = B0063FE7 http://www.FreeBSD.org netchild @ FreeBSD.org : PGP ID = 72077137 From owner-freebsd-emulation@FreeBSD.ORG Sat Apr 14 22:03:04 2012 Return-Path: Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 4F28A106564A; Sat, 14 Apr 2012 22:03:04 +0000 (UTC) (envelope-from alexander@leidinger.net) Received: from mail.ebusiness-leidinger.de (mail.ebusiness-leidinger.de [217.11.53.44]) by mx1.freebsd.org (Postfix) with ESMTP id 017BF8FC19; Sat, 14 Apr 2012 22:03:04 +0000 (UTC) Received: from outgoing.leidinger.net (p5796CBEB.dip.t-dialin.net [87.150.203.235]) by mail.ebusiness-leidinger.de (Postfix) with ESMTPSA id B04B884401D; Sun, 15 Apr 2012 00:02:50 +0200 (CEST) Received: from unknown (IO.Leidinger.net [192.168.1.12]) by outgoing.leidinger.net (Postfix) with ESMTPS id 0F22F2E36; Sun, 15 Apr 2012 00:02:48 +0200 (CEST) Date: Sun, 15 Apr 2012 00:02:46 +0200 From: Alexander Leidinger To: Alexander Leidinger Message-ID: <20120415000246.0000736b@unknown> In-Reply-To: <20120414224746.000005fb@unknown> References: <201204101856.46591.jkim@FreeBSD.org> <201204101939.33201.jkim@FreeBSD.org> <201204102027.42344.jkim@FreeBSD.org> <20120413203222.GA80646@freebsd.org> <20120414155427.000056c1@unknown> <20120414203256.GB19712@freebsd.org> <20120414224746.000005fb@unknown> X-Mailer: Claws Mail 3.7.10cvs42 (GTK+ 2.16.6; i586-pc-mingw32msvc) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-EBL-MailScanner-Information: Please contact the ISP for more information X-EBL-MailScanner-ID: B04B884401D.A0842 X-EBL-MailScanner: Found to be clean X-EBL-MailScanner-SpamCheck: not spam, spamhaus-ZEN, SpamAssassin (not cached, score=-1.098, required 6, autolearn=disabled, ALL_TRUSTED -1.00, AWL -0.09, T_RP_MATCHES_RCVD -0.01) X-EBL-MailScanner-From: alexander@leidinger.net X-EBL-MailScanner-Watermark: 1335045771.83028@bvv/3D1Z8v8tgsFh2MZzyA X-EBL-Spam-Status: No Cc: Alexander Best , freebsd-emulation@FreeBSD.org, Jung-uk Kim Subject: Re: [PATCH] pipe2 for Linuxulator 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: Sat, 14 Apr 2012 22:03:04 -0000 On Sat, 14 Apr 2012 22:47:46 +0200 Alexander Leidinger wrote: > On Sat, 14 Apr 2012 20:32:56 +0000 Alexander Best > wrote: > > > On Sat Apr 14 12, Alexander Leidinger wrote: > > > On Fri, 13 Apr 2012 20:32:22 +0000 Alexander Best > > > wrote: > > > > > > > i'm having problems with the patch. beforehand, playing music > > > > from www.mixcloud.com worked. now the flash based player is > > > > initialising forever. > > > > > > > just drop me a note with exact instructions and i can give you > > > > more verbose information or debugging stats. again: this issue > > > > might be futex related and not a result of your patch. > > > > > > Are you running -current? If yes I Looks try to get some time to > > > commit the linuxulator-dtrace probes, now that SDT probes can be > > > loaded dynamically there is no risk to panic the system when the > > > linuxulator is loaded after boot and dtrace is used. This could > > > help looking at problems with locks. > > > > yes i'm running a very recent HEAD on amd64. > > I'm in the process of merging all the new stuff from HEAD into my SVN > branch. With a slow system and a slow line this may take a while. I > hope to at least update my branch in SVN > (users/netchild/linuxulator-dtrace) today. I don't know if I get the > time to merge it to HEAD today. Hmmm... do I remember correctly that I already gave a dtrace patch to you to check for futex problems? I think I changed the locking-probes since I gave the patch to you, but I'm not sure. Anyway, the patch against a recent -current is available from http://www.leidinger.net/FreeBSD/current-patches now. Bye, Alexander. -- http://www.Leidinger.net Alexander @ Leidinger.net: PGP ID = B0063FE7 http://www.FreeBSD.org netchild @ FreeBSD.org : PGP ID = 72077137