Public bug reported: The qemu-system-aarch64 process from qemu-system-arm package crashes with the following message: ``` ERROR:target/arm/internals.h:767:regime_is_user: code should not be reached Bail out! ERROR:target/arm/internals.h:767:regime_is_user: code should not be reached Aborted (core dumped) ```
To reproduce, run the following on a fresh Ubuntu 24.04.4 amd64 system: ``` sudo apt update sudo apt install -y qemu-system-arm wget https://download.fedoraproject.org/pub/fedora/linux/releases/44/Cloud/aarch64/images/Fedora-Cloud-Base-Generic-44-1.7.aarch64.qcow2 cp /usr/share/AAVMF/AAVMF_CODE.fd efivars.fd qemu-system-aarch64 -nographic -nodefaults -m 2G -smp 2 -cpu max -machine type=virt,accel=tcg -drive file=./Fedora-Cloud-Base-Generic-44-1.7.aarch64.qcow2,if=virtio,cache=writeback,discard=ignore,format=qcow2 -drive file=/usr/share/AAVMF/AAVMF_CODE.fd,if=pflash,unit=0,format=raw,readonly=on -drive file=./efivars.fd,if=pflash,unit=1,format=raw ``` The package version is 1:8.2.2+ds-0ubuntu1.1 The same reproduction steps do NOT result in a crash on Ubuntu 22.04 (1:6.2+dfsg-2ubuntu6.31) and Ubuntu 26.04 (1:10.2.1+ds-1ubuntu3.1). If you're looking for another example, I've also ran into the same crash when working with the openSUSE Tumbleweed ARM cloud image (https://download.opensuse.org/ports/aarch64/tumbleweed/appliances/openSUSE- Tumbleweed-Minimal-VM.aarch64-Cloud.qcow2). I'ev pinpointed this to the following commit: https://gitlab.com/qemu-project/qemu/-/commit/1505b651fdbd9af59a4a90876a62ae7ea2d4cd39 I added it to series of patches in a branch based on the ubuntu/noble- updates branch and a build from that branch did, in fact, fix the crash. ** Affects: qemu (Ubuntu) Importance: Undecided Status: New -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2157713 Title: qemu-system-aarch64 crashes on regime_is_user assert To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/qemu/+bug/2157713/+subscriptions -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
