multiarch / qemu-user-static

:earth_africa: `/usr/bin/qemu-*-static`
https://hub.docker.com/r/multiarch/qemu-user-static/
MIT License
2.46k stars 229 forks source link

qemu: uncaught target signal 11 (Segmentation fault) - core dumped #177

Closed waterbang closed 2 years ago

waterbang commented 2 years ago

Is this a bug report, feature (enhancement) request or question? (leave only one on its own line)

/kind question

Description:

Steps to reproduce the issue:

  1. docker run --rm --privileged multiarch/qemu-user-static --reset -p yes

  2. docker run --rm -t arm64v8/ubuntu uname -m

Describe the results you received:

Describe the results you expected:

Environment:

Output of docker version, podman version or singularity version

Client:
 Cloud integration: v1.0.28
 Version:           20.10.17
 API version:       1.41
 Go version:        go1.17.11
 Git commit:        100c701
 Built:             Mon Jun  6 23:04:45 2022
 OS/Arch:           darwin/amd64
 Context:           default
 Experimental:      true

Server: Docker Desktop 4.11.1 (84025)
 Engine:
  Version:          20.10.17
  API version:      1.41 (minimum version 1.12)
  Go version:       go1.17.11
  Git commit:       a89b842
  Built:            Mon Jun  6 23:01:23 2022
  OS/Arch:          linux/amd64
  Experimental:     true
 containerd:
  Version:          1.6.6
  GitCommit:        10c12954828e7c7c9b6e0ea9b0c02b01407d3ae1
 runc:
  Version:          1.1.2
  GitCommit:        v1.1.2-0-ga916309
 docker-init:
  Version:          0.19.0
  GitCommit:        de40ad0

Additional information optionally: I looked up answers online and said qemu needs to be upgraded to 7, but my original version is 7. https://gitlab.com/qemu-project/qemu/-/issues/1079

waterbang commented 2 years ago

I try:

docker run --rm -t -v /Users/mac/Desktop/waterbang/project/plaoc/qemu-aarch64-static:/usr/bin/qemu-aarch64-static arm64v8/ubuntu uname -m

It's working now!