Skip to content

Bullseye is unusable on qemu-ed arm64 currently #19

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
dubo-dubon-duponey opened this issue Jun 8, 2021 · 2 comments
Closed

Bullseye is unusable on qemu-ed arm64 currently #19

dubo-dubon-duponey opened this issue Jun 8, 2021 · 2 comments

Comments

@dubo-dubon-duponey
Copy link

Qemu core dumps in a number of occasions.

Below is a simple example installing libc-bin.

This is working fine with debian buster, so, something with bullseye (linkage?) is triggering (more of) these issues.

This happens in Docker for mac 3.3.3, and also on a linux host.

It seems this project (moby/qemu) is way behind upstream. Is there still a strong reason to rely on this fork?

docker run -ti docker.io/library/debian:bullseye-slim@sha256:9f8ab8961b279bcad1a1711fff7e65d1a579845fe57b8605798394f23fe8e902 bash

apt install libc-bin
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Recommended packages:
  manpages
The following packages will be upgraded:
  libc-bin
1 upgraded, 0 newly installed, 0 to remove and 4 not upgraded.
Need to get 742 kB of archives.
After this operation, 0 B of additional disk space will be used.
Get:1 http://deb.debian.org/debian bullseye/main arm64 libc-bin arm64 2.31-12 [742 kB]
Fetched 742 kB in 1s (792 kB/s)
debconf: delaying package configuration, since apt-utils is not installed
(Reading database ... 6953 files and directories currently installed.)
Preparing to unpack .../libc-bin_2.31-12_arm64.deb ...
Unpacking libc-bin (2.31-12) over (2.31-11) ...
Setting up libc-bin (2.31-12) ...
qemu: uncaught target signal 11 (Segmentation fault) - core dumped
Segmentation fault
qemu: uncaught target signal 11 (Segmentation fault) - core dumped
Segmentation fault
dpkg: error processing package libc-bin (--configure):
 installed libc-bin package post-installation script subprocess returned error exit status 139
Errors were encountered while processing:
 libc-bin
E: Sub-process /usr/bin/dpkg returned an error code (1)

Doing some test with latest upstream qemu (for a buildkit image).

@tonistiigi
Copy link
Member

The shown command seems to work fine with current qemu images so closing. Reopen with repro instructions if you still see it.

@MrXhh
Copy link

MrXhh commented Mar 23, 2024

This fix my problem 👍 :+1 if this working for you.
docker run --rm --privileged multiarch/qemu-user-static --reset -p yes -c yes

docker/buildx#1170 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants