On Fri, 01 Jul 2022 17:06:31 +0200 Jörn_Heusipp <[email protected]> wrote:
Package: qemu-user-static Version: 1:7.0+dfsg-7 Severity: important X-Debbugs-Cc: [email protected]Dear Maintainer, I am using QEMU user mode emulation to test my software on non-amd64 architectures. I have qemu-user-static and binfmt-support installed so that I can run foreign binaries seamlessly. On Debian Testing with QEMU 7, aarch64 user mode emulation always segfaults: ``` manx@appendix:~/tmp$ cat nothing.c int main() { return 0; } manx@appendix:~/tmp$ aarch64-linux-gnu-gcc -std=c18 -O3 -Wall -Wextra -Wpedantic nothing.c manx@appendix:~/tmp$ ./a.out qemu: uncaught target signal 11 (Segmentation fault) - core dumped Segmentation fault
This works fine on bullseye system with qemu-user-static 7.0 from backports. This and the static build, which failed for you too. I wonder if the difference is within gcc (which compiled your nothing.c) or with glibc (which provides the dynamic linker and the startup code). I uploaded new upstream release of qemu a few days ago, 7.1, can you verify if that one makes any difference? Thanks! /mjt

