id = 2978 title = "Qemu assertion issue" state = "opened" created_at = "2025-05-22T15:27:00.476Z" closed_at = "n/a" labels = ["workflow::Needs Info"] url = "https://gitlab.com/qemu-project/qemu/-/issues/2978" host-os = "Ubuntu 24.04 LTS" host-arch = "x86_64" qemu-version = "QEMU emulator version 8.2.2 (Debian 1:8.2.2+ds-0ubuntu1.6)" guest-os = "Custom OS (OxizeOS)" guest-arch = "x86" description = """This issue is **not caused by my OS**, as it runs perfectly under VMware and other emulators. However, when using QEMU, the emulator sometimes randomly **crashes or aborts** during boot or early execution. The crash is **inconsistent** — sometimes it runs, sometimes it fails immediately. QEMU fails with an **assertion failure** in `qemu_mutex_lock_iothread_impl`""" reproduce = """Unfortunately, I do not know exactly what causes this issue. It may be specific to my system or configuration. 1. 2.""" additional = """Qemu stdout: ``` ERROR:system/cpus.c:504:qemu_mutex_lock_iothread_impl: assertion failed: (!qemu_mutex_iothread_locked()) Bail out! ERROR:system/cpus.c:504:qemu_mutex_lock_iothread_impl: assertion failed: (!qemu_mutex_iothread_locked()) ./run: line 3: 3544 Aborted (core dumped) ``` Command line: ``` qemu-system-x86_64 -debugcon file:OxizeOS.log -drive file=output/OxizeOS.hdd,format=raw -serial stdio ```"""