Giter Site home page Giter Site logo

Comments (5)

aallrd avatar aallrd commented on June 16, 2024 1

Hello,
Just to comment that I think I had the same issue today.
I was trying to run a multiarch/debian-debootstrap:mips-wheezy image with Docker on my Mac but could not get it to work properly:

$ docker run -it --rm multiarch/debian-debootstrap:mips-wheezy uname -m
qemu: uncaught target signal 5 (Trace/breakpoint trap) - core dumped

However this was working fine:

$ docker run -it --rm multiarch/debian-debootstrap:mips-wheezy /usr/bin/qemu-mips-static /bin/uname -a
mips

From @mayeut's comment, it seems that the issue is that the mips/mipsel entry files are overwritten by the mipsn32/mipsn32el ones.
Looking at qemu-binfmt-conf.sh, it seems like the mipsn32* magic values are the same than mips* ones.

Since these files are shared between the host and the containers, I tried to remove them:

# access the Linux VM storing/running the containers on Mac
$ screen ~/Library/Containers/com.docker.docker/Data/vms/0/tty
# press enter
# remove the binfmt_misc mipsn32 entry files
$ find /proc/sys/fs/binfmt_misc -type f -name "*mipsn32*" -exec sh -c 'echo -1 > {}' \;
# exit
$ Ctrl-A k
$ y

After that, it was working as expected:

$ docker run -it --rm multiarch/debian-debootstrap:mips-wheezy uname -m
mips

Thank you @mayeut for the issue and writing about your findings :).

from qemu-user-static.

junaruga avatar junaruga commented on June 16, 2024

@mayeut sorry for late response.
Can you try to run docker run --rm --privileged multiarch/qemu-user-static --reset -p yes to run standard mips/mipsel container images?
multiarch/* images are not required any more to run the arch's image.

I just searched it on DockerHub, then run below command. The uname command shows x86_64. I do not know if the result is correct.

https://hub.docker.com/search?q=mipsel&type=image

$ docker run --rm -t japaric/mipsel-unknown-linux-gnu uname -a
Linux 09f593170a06 5.1.18-300.fc30.x86_64 #1 SMP Mon Jul 15 15:42:34 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux

from qemu-user-static.

timandy avatar timandy commented on June 16, 2024

I have the same issue.
image

from qemu-user-static.

jonnor avatar jonnor commented on June 16, 2024

@timandy make sure to check the workaround provided by @aallrd - it resolved the issue for me

from qemu-user-static.

jonnor avatar jonnor commented on June 16, 2024

I belive this issue has been fixed in upstream qemu with the commit "qemu-binfmt-conf.sh: mips: allow nonzero EI_ABIVERSION, distinguish o32 and n32"
https://gitlab.com/qemu/qemu/-/commit/77d119dd335f910c7f953a265726e3753c69a0bb
https://gitlab.com/qemu-project/qemu/-/issues/843

However maybe a forked or old version of qemu-binfmt-conf.sh is used here? Can someone who know the project advise as to where that file comes from when running register as per the README?

from qemu-user-static.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.