Package: qemu-user
Version: 1:5.1+dfsg-4+b2
Severity: normal
Tags: upstream
X-Debbugs-Cc: [email protected]
I have a test program for the PowerPC which reliably causes qemu-ppc to crash,
apparently on startup. I haven't been able to get it to tell me what it's doing
during the crash. The minimal program is:
---snip---
.text
.global _start
_start:
li 3,0
li 0,1
sc # call _exit()
.section .bss
.byte 0
---snip---
To reproduce, do:
$ powerpc-linux-gnu-as -o test.o test.s
$ powerpc-linux-gnu-ld -o test test.o
$ qemu-ppc ./test
Segmentation fault
I believe this is a bug in qemu as the same binary works absolutely fine on
real hardware. Removing the `.byte 0` line causes the crash to go away.
-- System Information:
Debian Release: bullseye/sid
APT prefers testing
APT policy: (990, 'testing'), (500, 'unstable'), (500, 'stable'), (500,
'oldstable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 5.9.0-1-amd64 (SMP w/8 CPU threads)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE,
TAINT_UNSIGNED_MODULE
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8),
LANGUAGE=en_GB:en
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
Versions of packages qemu-user depends on:
ii libc6 2.31-4
ii libcapstone3 4.0.1+really+3.0.5-2+b1
ii libgcc-s1 10.2.0-16
ii libglib2.0-0 2.66.2-1
ii libgnutls30 3.6.15-4
ii libstdc++6 10.2.0-16
ii zlib1g 1:1.2.11.dfsg-2
Versions of packages qemu-user recommends:
ii qemu-user-static [qemu-user-binfmt] 1:5.1+dfsg-4+b2
Versions of packages qemu-user suggests:
ii sudo 1.9.3p1-1
-- debconf-show failed