[Bug 1737312] Re: Qemu crashes with signal 6 on arm64 chroot creation on amd64 (installing bash)

ChristianEhrhardt 1737312 at bugs.launchpad.net
Mon Dec 11 14:54:33 UTC 2017


Started to recheck where things have broken:

In fresh containers do:
#0 - prep tools
$ apt install ubuntu-dev-tools qemu-user-static qemu-kvm
#1 - check sid guest
$ pbuilder-dist sid arm64 create
#2 - check bionic guest
$ pbuilder-dist bionic arm64 create

1. Ubuntu releases
T - fails #1 (not in scope of this bug)
X - fails #2 - __spawnix: Assertion `ec >= 0' failed
Z - fails #2 - __spawnix: Assertion `ec >= 0' failed
A - fails #2 - different error msg but also at bash package (might be the same)
B - fails #2 - different error msg but also at bash package (might be the same)

We can eliminate host glibc from the equation by using Ubuntu cloud
archive in Xenial.

X - Newton (~Xenial/Yakkety) - fails #2 - __spawnix: Assertion `ec >= 0' failed
X - Ocata (=Zesty) - fails #2 - __spawnix: Assertion `ec >= 0' failed
X - Pike (=Artful/Bionic) - fails #2 - __spawnix: Assertion `ec >= 0' failed

It is worth to mention that also all related fixes e.g. [1] are in glibc.
That and the fact that it doesn't seem to be a regression in the virt stack as first assumed indicates that it could more likely be the glibc in the guest that triggers all that.

So lets inverse the test and take all the virt stacks we have and run it
against artful, zesty, ... backwards.

$ pbuilder-dist zesty arm64 create

X/X-Newton/X-Ocata/X-Pike/Z/A/B - all work

$ pbuilder-dist artful arm64 create

X/X-Newton/X-Ocata/X-Pike/Z/A/B - all fail

Ok, given the tests and references we have I nack this as a qemu issue and instead declare it a glibc issue in >=Artful.
But the change that e.g. [1] carries is too much over my head to decide anything. IMHO even very minor changes there are much more real problems than [2] - yet for Bionic which isn't released one could change it.

[1]: https://sourceware.org/git/?p=glibc.git;a=commitdiff;h=4b4d4056bb154603f36c6f8845757c1012758158;hp=8d3bd947483f50b57aee7c35c07dc1927d6e8a27
[2]: https://xkcd.com/1172/

** Also affects: glibc (Ubuntu)
   Importance: Undecided
       Status: New

** Changed in: qemu (Ubuntu)
       Status: New => Invalid

** Also affects: glibc (Ubuntu Artful)
   Importance: Undecided
       Status: New

** Also affects: qemu (Ubuntu Artful)
   Importance: Undecided
       Status: New

** No longer affects: qemu (Ubuntu Artful)

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to glibc in Ubuntu.
https://bugs.launchpad.net/bugs/1737312

Title:
  Qemu crashes with signal 6 on arm64 chroot creation on amd64
  (installing bash)

Status in glibc package in Ubuntu:
  New
Status in qemu package in Ubuntu:
  Invalid
Status in glibc source package in Artful:
  New

Bug description:
  Hello, steps to reproduce:

  install pbuilder-dist, and qemu
  pbuilder-dist sid arm64 create (this one works)
  pbuilder-dist bionic arm64 create (this one fails, with this log: http://paste.ubuntu.com/26140607/ )

  Preparing to unpack .../bash_4.4-5ubuntu1_arm64.deb ...
  preinst: ../sysdeps/unix/sysv/linux/spawni.c:368: __spawnix: Assertion `ec >= 0' failed.
  qemu: uncaught target signal 6 (Aborted) - core dumped
  dpkg: error processing archive /var/cache/apt/archives/bash_4.4-5ubuntu1_arm64.deb (--unpack):
   new bash package pre-installation script subprocess was killed by signal (Aborted), core dumped
  dpkg: regarding .../bsdutils_1%3a2.30.2-0.1ubuntu1_arm64.deb containing bsdutils, pre-dependency problem:
   bsdutils pre-depends on libsystemd0
    libsystemd0:arm64 is unpacked, but has never been configured.

  
  somewhat this seems bug https://bugs.launchpad.net/ubuntu/+source/bash/+bug/1725333

  https://github.com/Microsoft/WSL/issues/1878
  https://github.com/Microsoft/WSL/issues/2615

  let me know if you need anything else

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/glibc/+bug/1737312/+subscriptions



More information about the foundations-bugs mailing list