In the end looks like it's LTO. I rebuilt Jammy's qemu (1:6.2+dfsg-2ubuntu6.3) with
DEB_BUILD_MAINT_OPTIONS = optimize=-lto
and it doesn't crash anymore. I can't really tell if the issue is with Qemu's code or is due to a compiler bug. The rebuilt package is available in a PPA:
In the end looks like it's LTO. I rebuilt Jammy's qemu (1:6.2+ dfsg-2ubuntu6. 3) with
DEB_BUILD_ MAINT_OPTIONS = optimize=-lto
and it doesn't crash anymore. I can't really tell if the issue is with Qemu's code or is due to a compiler bug. The rebuilt package is available in a PPA:
https:/ /launchpad. net/~paride/ +archive/ ubuntu/ qemu-bpo
which despite the name doesn't actually contain backports.
FWIW Fedora disables LTO on aarch64 (arm64) because of this issue, see:
https:/ /bugzilla. redhat. com/show_ bug.cgi? id=1952483 /src.fedoraproj ect.org/ rpms/qemu/ c/38b1a6c732bee 90f75345c4d07
https:/
This is also discussed in this short Fedora mailing list thread:
https://<email address hidden> /msg159665. html