qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [Bug 1829459] [NEW] qemu: qemu_thread_create: Invalid argument
@ 2019-05-17  4:36 crocket
  2019-12-29 13:32 ` [Bug 1829459] Re: qemu seems to lack support for pid namespace crocket
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: crocket @ 2019-05-17  4:36 UTC (permalink / raw)
  To: qemu-devel

Public bug reported:

# Version

qemu-4.0.0
glibc-2.28

# commands used to launch qemu-aarch64 in user mode.

: ${QEMU_BINFMT_FLAGS:=OC}

printf '%s\n' ':qemu-
aarch64:M::\x7fELF\x02\x01\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00\xb7\x00:\xff\xff\xff\xff\xff\xff\xff\x00\xff\xff\xff\xff\xff\xff\xff\xff\xfe\xff\xff\xff:/usr/bin
/qemu-aarch64:'"${QEMU_BINFMT_FLAGS}" >/proc/sys/fs/binfmt_misc/register

> sudo cp /usr/bin/qemu-aarch64 $RPI/usr/bin
> sudo chroot $RPI /bin/ksh -l

# host

Gentoo Linux amd64

# Guest

Gentoo Linux aarch64

# The problem that I have

"emerge" program fails due to the error, "qemu: qemu_thread_create: Invalid argument".
"emerge" is Gentoo's package manager that compiles and installs packages.

# Workaround

Disable pid-sandbox in emerge.

# How to reproduce the issue

Execute

unshare --pid -- echo hello world

or

python -c "import portage.process; portage.process.spawn(['echo',
'hello', 'world'], unshare_pid=True)"

** Affects: qemu
     Importance: Undecided
         Status: New

** Description changed:

  # Version
  
  qemu-4.0.0
  
  # commands used to launch qemu-aarch64 in user mode.
+ 
+ : ${QEMU_BINFMT_FLAGS:=OC}
  
  printf '%s\n' ':qemu-
  aarch64:M::\x7fELF\x02\x01\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00\xb7\x00:\xff\xff\xff\xff\xff\xff\xff\x00\xff\xff\xff\xff\xff\xff\xff\xff\xfe\xff\xff\xff:/usr/bin
  /qemu-aarch64:'"${QEMU_BINFMT_FLAGS}" >/proc/sys/fs/binfmt_misc/register
  
  > sudo cp /usr/bin/qemu-aarch64 $RPI/usr/bin
  > sudo chroot $RPI /bin/ksh -l
  
  # host
  
  Gentoo Linux amd64
  
  # Guest
  
  Gentoo Linux aarch64
  
  # The problem that I have
  
  "emerge" program fails due to the error, "qemu: qemu_thread_create: Invalid argument".
  "emerge" is Gentoo's package manager that compiles and installs packages.
  
  # How to reproduce the issue
  
  Execute
  
  unshare --pid -- echo hello world
  
  or
  
  python -c "import portage.process; portage.process.spawn(['echo',
  'hello', 'world'], unshare_pid=True)"

** Description changed:

  # Version
  
  qemu-4.0.0
  
  # commands used to launch qemu-aarch64 in user mode.
  
  : ${QEMU_BINFMT_FLAGS:=OC}
  
  printf '%s\n' ':qemu-
  aarch64:M::\x7fELF\x02\x01\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00\xb7\x00:\xff\xff\xff\xff\xff\xff\xff\x00\xff\xff\xff\xff\xff\xff\xff\xff\xfe\xff\xff\xff:/usr/bin
  /qemu-aarch64:'"${QEMU_BINFMT_FLAGS}" >/proc/sys/fs/binfmt_misc/register
  
  > sudo cp /usr/bin/qemu-aarch64 $RPI/usr/bin
  > sudo chroot $RPI /bin/ksh -l
  
  # host
  
  Gentoo Linux amd64
  
  # Guest
  
  Gentoo Linux aarch64
  
  # The problem that I have
  
  "emerge" program fails due to the error, "qemu: qemu_thread_create: Invalid argument".
  "emerge" is Gentoo's package manager that compiles and installs packages.
  
+ # Workaround
+ 
+ Disable pid-sandbox in emerge.
+ 
  # How to reproduce the issue
  
  Execute
  
  unshare --pid -- echo hello world
  
  or
  
  python -c "import portage.process; portage.process.spawn(['echo',
  'hello', 'world'], unshare_pid=True)"

** Description changed:

  # Version
  
  qemu-4.0.0
+ glibc-2.28
  
  # commands used to launch qemu-aarch64 in user mode.
  
  : ${QEMU_BINFMT_FLAGS:=OC}
  
  printf '%s\n' ':qemu-
  aarch64:M::\x7fELF\x02\x01\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00\xb7\x00:\xff\xff\xff\xff\xff\xff\xff\x00\xff\xff\xff\xff\xff\xff\xff\xff\xfe\xff\xff\xff:/usr/bin
  /qemu-aarch64:'"${QEMU_BINFMT_FLAGS}" >/proc/sys/fs/binfmt_misc/register
  
  > sudo cp /usr/bin/qemu-aarch64 $RPI/usr/bin
  > sudo chroot $RPI /bin/ksh -l
  
  # host
  
  Gentoo Linux amd64
  
  # Guest
  
  Gentoo Linux aarch64
  
  # The problem that I have
  
  "emerge" program fails due to the error, "qemu: qemu_thread_create: Invalid argument".
  "emerge" is Gentoo's package manager that compiles and installs packages.
  
  # Workaround
  
  Disable pid-sandbox in emerge.
  
  # How to reproduce the issue
  
  Execute
  
  unshare --pid -- echo hello world
  
  or
  
  python -c "import portage.process; portage.process.spawn(['echo',
  'hello', 'world'], unshare_pid=True)"

-- 
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1829459

Title:
  qemu: qemu_thread_create: Invalid argument

Status in QEMU:
  New

Bug description:
  # Version

  qemu-4.0.0
  glibc-2.28

  # commands used to launch qemu-aarch64 in user mode.

  : ${QEMU_BINFMT_FLAGS:=OC}

  printf '%s\n' ':qemu-
  aarch64:M::\x7fELF\x02\x01\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00\xb7\x00:\xff\xff\xff\xff\xff\xff\xff\x00\xff\xff\xff\xff\xff\xff\xff\xff\xfe\xff\xff\xff:/usr/bin
  /qemu-aarch64:'"${QEMU_BINFMT_FLAGS}"
  >/proc/sys/fs/binfmt_misc/register

  > sudo cp /usr/bin/qemu-aarch64 $RPI/usr/bin
  > sudo chroot $RPI /bin/ksh -l

  # host

  Gentoo Linux amd64

  # Guest

  Gentoo Linux aarch64

  # The problem that I have

  "emerge" program fails due to the error, "qemu: qemu_thread_create: Invalid argument".
  "emerge" is Gentoo's package manager that compiles and installs packages.

  # Workaround

  Disable pid-sandbox in emerge.

  # How to reproduce the issue

  Execute

  unshare --pid -- echo hello world

  or

  python -c "import portage.process; portage.process.spawn(['echo',
  'hello', 'world'], unshare_pid=True)"

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


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2021-05-05 11:44 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-05-17  4:36 [Qemu-devel] [Bug 1829459] [NEW] qemu: qemu_thread_create: Invalid argument crocket
2019-12-29 13:32 ` [Bug 1829459] Re: qemu seems to lack support for pid namespace crocket
2020-01-02 12:09 ` Laurent Vivier
2020-01-02 13:28 ` crocket
2020-01-02 13:28 ` crocket
2020-01-02 13:55 ` crocket
2021-01-06 19:43 ` -
2021-05-05 11:28 ` Thomas Huth

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).