From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:54379) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bDEVA-0001RU-Fd for qemu-devel@nongnu.org; Wed, 15 Jun 2016 13:21:18 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bDEV7-0005gv-8T for qemu-devel@nongnu.org; Wed, 15 Jun 2016 13:21:16 -0400 Received: from indium.canonical.com ([91.189.90.7]:50996) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bDEV6-0005gq-Vs for qemu-devel@nongnu.org; Wed, 15 Jun 2016 13:21:13 -0400 Received: from loganberry.canonical.com ([91.189.90.37]) by indium.canonical.com with esmtp (Exim 4.76 #1 (Debian)) id 1bDEV5-0007bn-Hi for ; Wed, 15 Jun 2016 17:21:11 +0000 Received: from loganberry.canonical.com (localhost [127.0.0.1]) by loganberry.canonical.com (Postfix) with ESMTP id 846392E8073 for ; Wed, 15 Jun 2016 17:21:11 +0000 (UTC) MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Date: Wed, 15 Jun 2016 17:13:00 -0000 From: Justin Shafer <739785@bugs.launchpad.net> Reply-To: Bug 739785 <739785@bugs.launchpad.net> Sender: bounces@canonical.com References: <20110321222037.3067.75336.malonedeb@soybean.canonical.com> <20160615124136.11737.25485.launchpad@wampee.canonical.com> Message-Id: Errors-To: bounces@canonical.com Subject: Re: [Qemu-devel] [Bug 739785] Re: qemu-i386 user mode can't fork (bash: fork: Invalid argument) List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org ../qemu-0.14.0/i386-linux-user/qemu-i386 -L ./gnemul/qemu-i386 i386/ls -l dummyfile 0.14.0??? I tried the latest qemu and it worked.. I forget the version.. 1.XX something? I was able to run wine. It could also be your ld.so in gnemul? On Wed, Jun 15, 2016 at 7:41 AM, T. Huth <739785@bugs.launchpad.net> wrote: > ** Changed in: qemu > Status: Fix Committed =3D> Fix Released > > -- > You received this bug notification because you are subscribed to the bug > report. > https://bugs.launchpad.net/bugs/739785 > > Title: > qemu-i386 user mode can't fork (bash: fork: Invalid argument) > > Status in QEMU: > Fix Released > Status in qemu package in Debian: > Fix Released > > Bug description: > Good time of day everybody, > > I have been trying to make usermode qemu on ARM with plugapps > (archlinux) with archlinux i386 chroot to work. > > 1. I installed arch linux in a virtuabox and created a chroot for it > with mkarchroot. Transferred it to my pogo plug into /i386/ > 2. I comiled qemu-i386 static and put it into /i386/usr/bin/ > ./configure --static --disable-blobs --disable-system > --target-list=3Di386-linux-user > make > > 3. I also compiled linux kernel 2.6.38 with CONFIG_BINFMT_MISC=3Dy and > installed it. > uname -a > Linux Plugbox 2.6.38 #4 PREEMPT Fri Mar 18 22:19:10 CDT 2011 armv5tel > Feroceon 88FR131 rev 1 (v5l) Marvell SheevaPlug Reference Board GNU/Linux > > 4. Added the following options into /etc/rc.local > /sbin/modprobe binfmt_misc > /bin/mount binfmt_misc -t binfmt_misc /proc/sys/fs/binfmt_misc > echo > ':qemu-i386:M::\x7fELF\x01\x01\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0= 2\x00\x03\x00:\xff\xff\xff\xff\xff\xfe\xfe\xff\xff\xff\xff\xff\xff\xff\xff\= xff\xfb\xff\xff\xff:/usr/bin/qemu-i386:' > >/proc/sys/fs/binfmt_misc/register > > 5. Also copied ld-linux.so.3 (actually ld-2.13.so because ld- > linux.so.3 is a link to that file) from /lib/ to /i386/lib/ > > 6.Now i chroot into /i386 and I get this: > [root@Plugbox i386]# chroot . > [II aI hnve ao n@P /]# pacman -Suy > bash: fork: Invalid argument > > 7.I also downloaded linux-user-test-0.3 from qemu website and ran the > test: > [root@Plugbox linux-user-test-0.3]# make > ./qemu-linux-user.sh > [qemu-i386] > ../qemu-0.14.0/i386-linux-user/qemu-i386 -L ./gnemul/qemu-i386 i386/ls > -l dummyfile > BUG IN DYNAMIC LINKER ld.so: dl-version.c: 210: _dl_check_map_versions: > Assertion `needed !=3D ((void *)0)' failed! > make: *** [test] Error 127 > > To manage notifications about this bug go to: > https://bugs.launchpad.net/qemu/+bug/739785/+subscriptions > -- = Justin Shafer Onsite Dental Systems 7704 Sagebrush Ct. S. North Richland Hills, TX. 76182 (817) 909-4222 -- = You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/739785 Title: qemu-i386 user mode can't fork (bash: fork: Invalid argument) Status in QEMU: Fix Released Status in qemu package in Debian: Fix Released Bug description: Good time of day everybody, I have been trying to make usermode qemu on ARM with plugapps (archlinux) with archlinux i386 chroot to work. 1. I installed arch linux in a virtuabox and created a chroot for it with= mkarchroot. Transferred it to my pogo plug into /i386/ 2. I comiled qemu-i386 static and put it into /i386/usr/bin/ ./configure --static --disable-blobs --disable-system --target-list=3Di38= 6-linux-user make 3. I also compiled linux kernel 2.6.38 with CONFIG_BINFMT_MISC=3Dy and in= stalled it. uname -a Linux Plugbox 2.6.38 #4 PREEMPT Fri Mar 18 22:19:10 CDT 2011 armv5tel Fer= oceon 88FR131 rev 1 (v5l) Marvell SheevaPlug Reference Board GNU/Linux 4. Added the following options into /etc/rc.local /sbin/modprobe binfmt_misc /bin/mount binfmt_misc -t binfmt_misc /proc/sys/fs/binfmt_misc echo ':qemu-i386:M::\x7fELF\x01\x01\x01\x00\x00\x00\x00\x00\x00\x00\x00\x= 00\x02\x00\x03\x00:\xff\xff\xff\xff\xff\xfe\xfe\xff\xff\xff\xff\xff\xff\xff= \xff\xff\xfb\xff\xff\xff:/usr/bin/qemu-i386:' >/proc/sys/fs/binfmt_misc/reg= ister 5. Also copied ld-linux.so.3 (actually ld-2.13.so because ld- linux.so.3 is a link to that file) from /lib/ to /i386/lib/ 6.Now i chroot into /i386 and I get this: [root@Plugbox i386]# chroot . [II aI hnve ao n@P /]# pacman -Suy bash: fork: Invalid argument 7.I also downloaded linux-user-test-0.3 from qemu website and ran the tes= t: [root@Plugbox linux-user-test-0.3]# make ./qemu-linux-user.sh [qemu-i386] ../qemu-0.14.0/i386-linux-user/qemu-i386 -L ./gnemul/qemu-i386 i386/ls -l= dummyfile BUG IN DYNAMIC LINKER ld.so: dl-version.c: 210: _dl_check_map_versions: A= ssertion `needed !=3D ((void *)0)' failed! make: *** [test] Error 127 To manage notifications about this bug go to: https://bugs.launchpad.net/qemu/+bug/739785/+subscriptions