qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Justin Shafer <739785@bugs.launchpad.net>
To: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [Bug 739785] Re: qemu-i386 user mode can't fork (bash: fork: Invalid argument)
Date: Wed, 15 Jun 2016 17:13:00 -0000	[thread overview]
Message-ID: <CALP3D2rjiHgmfPFE03d_mj2sLVA4EhEroubndZzhw=3wgXZehQ@mail.gmail.com> (raw)
In-Reply-To: 20160615124136.11737.25485.launchpad@wampee.canonical.com

../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 => 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=i386-linux-user
>   make
>
>   3. I also compiled linux kernel 2.6.38 with CONFIG_BINFMT_MISC=y 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\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/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 != ((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=i386-linux-user
  make

  3. I also compiled linux kernel 2.6.38 with CONFIG_BINFMT_MISC=y 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\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/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 != ((void *)0)' failed!
  make: *** [test] Error 127

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/739785/+subscriptions

      reply	other threads:[~2016-06-15 17:21 UTC|newest]

Thread overview: 82+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-03-21 22:20 [Qemu-devel] [Bug 739785] [NEW] qemu-i386 on ARM bash: fork: Invalid argument moonman
2011-03-23  0:40 ` [Qemu-devel] [Bug 739785] " moonman
2011-03-23  3:30 ` moonman
2011-03-28 17:20 ` Peter Maydell
2011-03-28 20:13 ` moonman
2011-03-28 22:09   ` [Qemu-devel] " Peter Maydell
2011-04-02  0:18     ` Richard Henderson
2011-05-29 10:19     ` [Qemu-devel] [Bug 739785] Re: qemu-i386 user mode on ARMv5 host fails (bash: fork: Invalid argument) Andreas Färber
2011-05-29 11:58       ` Peter Maydell
2011-03-28 20:15 ` [Qemu-devel] [Bug 739785] Re: qemu-i386 on ARM bash: fork: Invalid argument moonman
2011-03-28 22:15 ` [Qemu-devel] [Bug 739785] Re: qemu-i386 user mode on ARMv5 host fails (bash: fork: Invalid argument) Peter Maydell
2011-03-28 22:36 ` moonman
2011-04-24  1:42 ` moonman
2011-04-24  7:53 ` Peter Maydell
2011-04-25  7:02 ` moonman
2011-04-28 13:53 ` Peter Maydell
2011-05-03 15:27 ` Ricardo Padilha
2011-05-25 23:27 ` Oleg
2011-06-07 21:56 ` moonman
2011-06-14 15:05 ` Peter Maydell
2011-06-14 20:35 ` Oleg
2011-06-15  1:30 ` moonman
2011-06-15  8:44 ` moonman
2011-06-15  8:55 ` Ricardo Padilha
2011-06-15  9:07 ` Peter Maydell
2011-06-15 19:11 ` moonman
2011-06-15 19:58 ` Peter Maydell
2011-06-15 20:19 ` moonman
2011-06-15 20:20 ` moonman
2011-06-15 20:24 ` moonman
2011-06-16  2:15 ` moonman
2011-06-16  2:21 ` moonman
2011-07-12  8:32 ` Daniel Schell
2011-07-24 11:30 ` Artyom
2011-08-01 12:15 ` Artyom
2011-08-02  0:00 ` moonman
2011-08-02  3:31 ` moonman
2011-09-19  9:31 ` Justin Shafer
2011-09-19 13:35 ` Justin Shafer
2011-09-21  8:25 ` moonman
2011-09-21  9:22 ` Justin Shafer
2011-09-21 12:10 ` Justin Shafer
2011-09-21 13:39 ` Justin Shafer
2011-09-21 14:34 ` Justin Shafer
2011-09-21 15:18 ` Justin Shafer
2011-09-22 18:15 ` Jeffry Johnston
2011-09-23  7:39 ` Justin Shafer
2011-09-23  7:40 ` Justin Shafer
2011-10-19 19:43 ` Steve
2011-10-19 21:29 ` Peter Maydell
2011-10-20  9:01 ` Ricardo Padilha
2011-10-21 20:30 ` Steve
2012-03-22  8:19 ` moonman
2012-10-13 20:35 ` Justin Shafer
2012-10-13 20:37 ` Justin Shafer
2012-10-14 13:35 ` Michal Suchanek
2012-10-14 13:51 ` Peter Maydell
2012-10-14 14:04 ` Michal Suchanek
2012-10-14 14:54 ` Justin Shafer
2012-10-14 15:19 ` Peter Maydell
2012-10-14 15:31 ` Justin Shafer
2012-10-22  9:28 ` Justin Shafer
2012-10-22 17:17 ` Justin Shafer
2012-10-22 17:21 ` Justin Shafer
2012-11-17 22:40 ` [Qemu-devel] [Bug 739785] Re: qemu-i386 user mode " Matt Zimmerman
2012-11-18  7:06 ` [Qemu-devel] [Bug 739785] Re: qemu-i386 user mode can't fork " Michael Tokarev
2012-11-18 11:39 ` Bug Watch Updater
2012-11-24  2:27   ` Justin Shafer
2012-11-20  0:29 ` Justin Shafer
2012-11-20  0:31 ` Justin Shafer
2012-11-27  9:03   ` Justin Shafer
2012-11-20  0:34 ` Justin Shafer
2013-01-20 23:42 ` James Le Cuirot
2013-01-21 10:14 ` James Le Cuirot
2013-05-20  8:41 ` Michael Tokarev
2013-07-26 12:33 ` Peter Maydell
2013-08-06  4:46 ` moonman
2013-08-06  8:33 ` Peter Maydell
2015-11-12  8:01   ` Justin Shafer
2013-11-28  2:59 ` Bug Watch Updater
2016-06-15 12:41 ` T. Huth
2016-06-15 17:13   ` Justin Shafer [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CALP3D2rjiHgmfPFE03d_mj2sLVA4EhEroubndZzhw=3wgXZehQ@mail.gmail.com' \
    --to=739785@bugs.launchpad.net \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).