id = 1624 title = "8.0.0: Crash when emulating MIPS executable" state = "closed" created_at = "2023-04-25T22:07:03.976Z" closed_at = "2023-11-08T14:18:12.756Z" labels = ["linux-user", "target: mips"] url = "https://gitlab.com/qemu-project/qemu/-/issues/1624" host-os = "Ubuntu 20.04.6 LTS" host-arch = "x86_64" qemu-version = "8.0.0 (any version starting from 6.0.0)" guest-os = "n/a" guest-arch = "n/a" description = """A change to QEMU introduced within the 6.0.0 development cycle causes MIPS executable to crash. Similar problem occurred within the same time-frame for Aarch64 executables, but was fixed. Patches in QEMU causing both Aarch64 and MIPS occurrences are identified and attached below.""" reproduce = """1. Download attached core_test.zip archive. 2. Run pre-built MIPS executable with QEMU. 3. Observe the crash somewhere in tdelete. 4. Source for the test is here: https://github.com/VectorChief/QuadRay-engine 5. The binaries were built with GCC 9.4 cross-compilers using slightly modified makefiles (-ggdb3) for gdb-multiarch 6. Building on Ubuntu 22.04 and Ubuntu 23.04 also reproduces the problem, so it's not OS or compiler specific.""" additional = """Archive with pre-built binaries: [core_test.zip](/uploads/529833c6f83aeec253df647a94868f8a/core_test.zip) Patch breaking Aarch64: [qemu_arm_br.diff](/uploads/476321e40a551e964be41a8bfda96613/qemu_arm_br.diff) commit 8fe35e0444be88de4e3ab80a2a0e210a1f6d663d Patch fixing Aarch64: [qemu_arm_fix.diff](/uploads/2db3892d6839e9a4dfaf427359d6f004/qemu_arm_fix.diff) commit ae30e86661b0f48562cd95918d37cbeec5d02262 Patch breaking MIPS: [qemu_mips_br.diff](/uploads/0a482e61c1245e5783364db845a55dfa/qemu_mips_br.diff) commit 96e5b4c7584d623f6cdcb0083829c19141b2b130"""