id = 1642 title = "Qemu aarch64 tcg crashes when emulating an STXP instruction but only on a Windows host" state = "closed" created_at = "2023-05-10T16:55:29.637Z" closed_at = "2023-05-17T06:20:02.276Z" labels = ["Closed::Fixed", "accel: TCG", "host: x86", "hostos: Windows", "kind::Bug", "target: arm"] url = "https://gitlab.com/qemu-project/qemu/-/issues/1642" host-os = "Windows 10 22H2" host-arch = "x86" qemu-version = "8.0.0" guest-os = "Windows Server 2022" guest-arch = "arm64" description = """Qemu segfaults when trying to emulate an STXP instruction, but only when running natively on a windows host (msys2 build). This is not the same as https://gitlab.com/qemu-project/qemu/-/issues/1581. I've managed to git-bisect it to this change: https://github.com/qemu/qemu/commit/546789c7df8866c55cae8d3195e8e58328a35d51 Sadly i cannot investigate it further and contribute a fix, but it seems like a problem with one of the I128 arguments to `helper_atomic_cmpxchgo_le ` UPD: Issue is also in master (as of `caa9cbd566877b34e9abcc04d936116fc5e0ab28`)""" reproduce = """N/A""" additional = """``` Thread 9 received signal SIGSEGV, Segmentation fault. 0x00007ff67efc32dc in helper_atomic_cmpxchgo_le (env=0x24796b08c10, addr=18446684150325987376, oldv=46236672343829145701101521005152, newv=2595395441251766838621186119693696, oi=3650) at ../accel/tcg/atomic_common.c.inc:60 60 CMPXCHG_HELPER(cmpxchgo_le, Int128) (gdb) bt #0 0x00007ff67efc32dc in helper_atomic_cmpxchgo_le (env=0x24796b08c10, addr=18446684150325987376, oldv=46236672343829145701101521005152, newv=2595395441251766838621186119693696, oi=3650) at ../accel/tcg/atomic_common.c.inc:60 #1 0x00000247a124f73d in ?? () ```"""