FS#77655 - [qemu-system-x86] qemu miscompiles with GCC, needs to be built with clang

Attached to Project: Arch Linux
Opened by Soni L. (SoniEx2) - Sunday, 26 February 2023, 22:39 GMT
Last edited by Toolybird (Toolybird) - Monday, 27 February 2023, 00:48 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To No-one
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:

Trying to run qemu with

exec qemu-system-x86_64 -m 3000 -M q35 -usb -cpu host -accel kvm -smp 4,sockets=1,cores=4,threads=1 -device usb-kbd -device usb-mouse -nic user -rtc base=localtime -boot c -drive file=W10.img,id=disk,format=raw

(where W10.img is just a stock Windows 10 install, but this also happens with other images like ubuntu)

freezes/locks up/crashes, sometimes before qemu BIOS, sometimes while booting up the guest OS. often requires sigkill to recover. seems to be "caused" by compiling with GCC. compiling with clang appears to "fix" it.

Additional info:
* package version(s) 7.2.0-3
* config and/or log files etc. N/A
* link to upstream bug report, if any N/A

Steps to reproduce:

exec qemu-system-x86_64 -m 3000 -M q35 -usb -cpu host -accel kvm -smp 4,sockets=1,cores=4,threads=1 -device usb-kbd -device usb-mouse -nic user -rtc base=localtime -boot c -drive file=W10.img,id=disk,format=raw

(might have to try a few times, it's a bit inconsistent)
This task depends upon

Closed by  Toolybird (Toolybird)
Monday, 27 February 2023, 00:48 GMT
Reason for closing:  Not a bug
Additional comments about closing:  See comments
Comment by Toolybird (Toolybird) - Monday, 27 February 2023, 00:40 GMT
Cannot repro. My win10 VM's work perfectly. QEMU is working fine for literally thousands of Arch users so I'd suggest the cause of your problems lies elsewhere. Are you using QEMU from the official Arch repo?
Comment by Soni L. (SoniEx2) - Monday, 27 February 2023, 00:42 GMT
Yes. How are you running your VMs?
Comment by Toolybird (Toolybird) - Monday, 27 February 2023, 00:47 GMT
Please use the proper support channels for support (forum/IRC/etc). The bug tracker is not the place to debug problems that are apparently only applicable to you.

Loading...