qemu-user can't run some ppc binaries
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
QEMU |
Expired
|
Undecided
|
Unassigned |
Bug Description
qemu-user v6.0.0-rc5, built in static mode, will crash for certain ppc binaries. It seems to have something to do with glibc for some Centos versions. The problem is easiest to see with statically-linked binaries.
The attached Dockerfile shows how to produce a ppc binary that will crash qemu-user. Here is how to reproduce the problem:
$ uname -m
x86_64
$ docker run --rm --privileged multiarch/
$ docker build -t qemu-bug:centos -f Dockerfile.centos .
$ docker run --rm -it -v$PWD:$PWD -w$PWD qemu-bug:centos cp /helloworld-
$ qemu-ppc-static --version
qemu-ppc version 5.2.95 (v6.0.0-rc5)
Copyright (c) 2003-2021 Fabrice Bellard and the QEMU Project developers
$ qemu-ppc-static ./helloworld-
emu: uncaught target signal 4 (Illegal instruction) - core dumped
[1] 16678 illegal hardware instruction (core dumped) qemu-ppc-static ./helloworld-
Could you provide directly the binary to test (helloworld- centos. static. ppc)?