]> Git Repo - qemu.git/commitdiff
qemu-img: fix segment fault when the image format is qed
authorZhi Yong Wu <[email protected]>
Sun, 19 Feb 2012 14:24:35 +0000 (22:24 +0800)
committerKevin Wolf <[email protected]>
Wed, 29 Feb 2012 15:05:07 +0000 (16:05 +0100)
[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 <[email protected]>
Reviewed-by: Stefan Hajnoczi <[email protected]>
Signed-off-by: Kevin Wolf <[email protected]>
qemu-img.c

index c4bcf41e15707cd6c839f21494452cf09bef2989..8df35648e947805c1d8de6c2c32ba2c360e64a13 100644 (file)
@@ -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)) {
This page took 0.037267 seconds and 4 git commands to generate.