Red Hat Bugzilla – Bug 569743
Change vnc password caused 'Segmentation fault'
Last modified: 2015-05-24 20:05:17 EDT
Description of problem:
Boot up a VM and execute monitor command "change vnc password", got "Segmentation fault" on terminal which strat guest.
Version-Release number of selected component (if applicable):
(host)# rpm -qa |grep kvm
(host)# rpm -qa |grep vnc
Steps to Reproduce:
1. boot up a VM with " -vnc :1"
2. run # vncviewer localhost:1
3. press Ctrl+Alt+2 to switch to qemu-monitor on vnc window
4. input "change vnc password" and "Enter" on qemu-monitor
got "Segmentation fault" on terminal which strat guest
Should not got "Segmentation fault" on terminal which strat guest
(host)# uname -a
Linux intel-q9400-4-3.englab.nay.redhat.com 2.6.18-189.el5 #1 SMP Tue Feb 16 11:10:22 EST 2010 x86_64 x86_64 x86_64 GNU/Linux
# qemu-kvm -vnc :1 -net nic,vlan=0,model=e1000,macaddr=00:AE:8F:93:9D:02 -net tap,vlan=0,ifname=e1000_0_8001,script=/etc/qemu-ifup-switch -m 2G -smp 1 -drive file=./win2008-64.raw,if=ide,boot=on
Amos, what's the stack? There should be a core dump. Get it and provide the stack.
Alternatively, attach GDB to the QEMU process before you go to its monitor.
Lastly, is it a regression?
Upstream fixed it in a different way, by zapping the main_loop_wait() call from the monitor code.
Hmm, upstream fix doesn't backport easily. Depends on other patches, which in turn change qemu behavior with password-protected block devices. I'd rather not backport them to 5.x. Looking into using Zach's fix instead.
Bug could not be reproduced with kvm-83-193.el5
Move to VERIFIED.
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.