Closed amotl closed 2 years ago
Currently I have no idea why this happens. Some observations and thoughts:
[1] cat /proc/cpuinfo | grep "model name" | uniq
Hi again,
in this post we outline a minimal example how to reproduce the problem.
Follow the first few sections of https://getkotori.org/docs/development/releasing/packaging.html, specifically
1.1. Install Docker
1.2. Install more packages to support multiarch builds: apt-get install qemu-user-static binfmt-support
Invoke this docker run
command, targeting arm64v8
:
docker run --pull --rm -it --env DEBIAN_FRONTEND=noninteractive arm64v8/debian:bullseye-slim dpkg-reconfigure libc-bin
qemu: uncaught target signal 11 (Segmentation fault) - core dumped
Segmentation fault
qemu: uncaught target signal 11 (Segmentation fault) - core dumped
Segmentation fault
As mentioned above, targeting arm32v7
has no issues:
docker run --pull --rm -it --env DEBIAN_FRONTEND=noninteractive arm32v7/debian:bullseye-slim dpkg-reconfigure libc-bin
With kind regards, Andreas.
Hi again,
at https://github.com/moby/moby/issues/43039#issuecomment-974830858, we found a solution to this problem. Apparently, we needed a more recent version of qemu-aarch64-static
. While it didn't work with version 4.2.1, version 5.0.0 from [1] works like a charm.
$ docker run --pull --rm -it arm64v8/debian:bullseye-slim /bin/sh -c "ldconfig --version"
ldconfig (Debian GLIBC 2.31-13+deb11u2) 2.31
Copyright (C) 2020 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Written by Andreas Jaeger.
With kind regards, Andreas.
[1] http://security.ubuntu.com/ubuntu/pool/universe/q/qemu/qemu-user-static_5.0-5ubuntu9.9_amd64.deb
With 3b029ca9, we just updated the documentation and added this to the troubleshooting section, see [2].
[2] https://getkotori.org/docs/development/releasing/packaging.html#troubleshooting
Others are also confirming that this has been resolved with Qemu 5, see [3].
[3] https://bugs.launchpad.net/ubuntu/+source/qemu/+bug/1928075/comments/15
Hi there,
while working on #64, by running the packaging machinery on a Linux system, we discovered that the Building baseline image for Debian "bullseye" on arm64v8 step croaks when installing
libc-bin
, coming fromThe error manifests itself as
With kind regards, Andreas.