diff options
author | Zhi Yong Wu <wuzhy@linux.vnet.ibm.com> | 2012-02-19 22:24:35 +0800 |
---|---|---|
committer | Kevin Wolf <kwolf@redhat.com> | 2012-02-29 16:05:07 +0100 |
commit | 67d384e80471e91aa490d4573cac5a46f92f685f (patch) | |
tree | 76a13d4db27469559cfdc9fda75937004e9b9fcc /qemu-img.c | |
parent | a57d114389bdf8ce493456f85f2ec2229f7d0c00 (diff) |
qemu-img: fix segment fault when the image format is qed
[root@f15 qemu]# qemu-img info /home/zwu/work/misc/rh6.img
image: /home/zwu/work/misc/rh6.img
file format: qed
virtual size: 4.0G (4294967296 bytes)
disk size: 1.2G
cluster_size: 65536
Segmentation fault (core dumped)
Today when i were fixing another issue, i found this issue; After simple
investigation, i found that the required clock vm_clock is not created
for qemu tool.
Signed-off-by: Zhi Yong Wu <wuzhy@linux.vnet.ibm.com>
Reviewed-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'qemu-img.c')
-rw-r--r-- | qemu-img.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/qemu-img.c b/qemu-img.c index c4bcf41e15..8df35648e9 100644 --- a/qemu-img.c +++ b/qemu-img.c @@ -1655,6 +1655,8 @@ int main(int argc, char **argv) cmdname = argv[1]; argc--; argv++; + qemu_init_main_loop(); + /* find the command */ for(cmd = img_cmds; cmd->name != NULL; cmd++) { if (!strcmp(cmdname, cmd->name)) { |