-
Notifications
You must be signed in to change notification settings - Fork 3.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
qemu-ga: segmentation fault on VM shutdown from host #25209
Comments
I noticed the same issue on OpenWrt 24.10.0-rc5. A message like this appears on the console, and the VM does not shut down:
This seems to be an issue with shutdown patch which was recently updated by @vooon (#25053, #25106). The current version of the patch from Alpine works fine: |
Hmm, i think the only possible cause - fallback_cmd remain nil. |
Replace to fix openwrt#25209 Signed-off-by: Vladimir Ermakov <[email protected]>
@vooon: I debugged this using valgrind. It is actually caused by another bug in QEMU (qemu/qemu@9cfe110). The fix is also included in QEMU 9.1.2, so I think it would make sense to cherry-pick 6ee7a47 to the 24.10 branch. In addition, I also found an unrelated bug in the shutdown patch: But I see you already created a pull request to switch to the patch from Alpine. That of course fixes the second bug as well. |
@janh aha, thanks. Regarding backporting - sorry, i'm always on the master, so never ever done that for wrt :) |
That has bitten me when I did the upgrade, I hope it will be fixed soon. Proxmox can't shutdown my OpenWRT-VMs anymore. |
Replace to fix openwrt#25209 Signed-off-by: Vladimir Ermakov <[email protected]>
Maintainer: @yousong
Environment: x86_64, generic, OpenWrt SNAPSHOT r27910-1dc86af356
Package version:
qemu-firmware-seabios - 9.1.0-r2
qemu-ga - 9.1.0-r2
Description:
A host-initiated shutdown of a VM with OpenWrt never completes. The kvm process running on the host has to be manually killed for the VM to stop.
qemu-ga running in the foreground on the guest OpenWrt machine produces the following on stdout:
I believe the second last line in the output above gives a hint about what might be going wrong.
The text was updated successfully, but these errors were encountered: