]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/libvirt.git/commit
check whether qemuMonitorJSONHMP() failed
authorWen Congyang <wency@cn.fujitsu.com>
Wed, 30 Mar 2011 01:48:29 +0000 (09:48 +0800)
committerWen Congyang <wency@cn.fujitsu.com>
Wed, 30 Mar 2011 08:32:22 +0000 (16:32 +0800)
commit0ecfa7f2e13cb6d304837de137c77b94db9e0dac
tree3bddceff4c9bffd477b129da40a6a87b7dbfdf67
parentcc2424fc65a6b4b307f0d7a314d595cd3f15589e
check whether qemuMonitorJSONHMP() failed

If qemu quited unexpectedly when we call qemuMonitorJSONHMP(),
libvirt will crash.
Steps to reproduce this bug:
1. use gdb to attach libvirtd, and set a breakpoint in the function
   qemuMonitorSetCapabilities()
2. start a vm
3. let the libvirtd to run until qemuMonitorJSONSetCapabilities() returns.
4. kill the qemu process
5. continue running libvirtd

Signed-off-by: Wen Congyang <wency@cn.fujitsu.com>
src/qemu/qemu_monitor.c
src/qemu/qemu_monitor_json.c