Skip to contentSkip to conversation

qemu-io: fix segment fault when the image format is qed

PATCH Applied [email protected] 2 participants 3 messages Feb 19, 2012 – Feb 20, 2012

lore
Share & tools
lore
#0 lore raw

PATCH 2/2 qemu-io: fix segment fault when the image format is qed

From: Zhi Yong Wu <[email protected]>

[root@f15 qemu]# qemu-io -c info /home/zwu/work/misc/rh6.img format name: qed
cluster size: 64 KiB
vm state offset: 0.000000 bytes
Segmentation fault (core dumped)

This reason is same as the former patch

---
 qemu-io.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
qemu-io.c +2 -0
index 0249be4..3189530 100644
@@ -1856,6 +1856,8 @@ int main(int argc, char **argv)
 
     bdrv_init();
 
+    qemu_init_main_loop();
+
     /* initialize commands */
     quit_init();
     help_init();
Signature · 1 line
1.7.6
#1 lore raw
Quoted 9 lines · On Sun, Feb 19, 2012 at 10:24:59PM +0800, [email protected] wrote:

From: Zhi Yong Wu <[email protected]>

[root@f15 qemu]# qemu-io -c info /home/zwu/work/misc/rh6.img format name: qed
cluster size: 64 KiB
vm state offset: 0.000000 bytes
Segmentation fault (core dumped)

This reason is same as the former patch

Please add this as a testcase to qemu-iotests.

#2 lore raw
Quoted 9 lines · Christoph Hellwig
Quoted 8 lines · On Sun, Feb 19, 2012 at 10:24:59PM +0800, [email protected] wrote:

From: Zhi Yong Wu <[email protected]>

[root@f15 qemu]# qemu-io -c info /home/zwu/work/misc/rh6.img format name: qed
cluster size: 64 KiB
vm state offset: 0.000000 bytes
Segmentation fault (core dumped)

Quoted 3 lines
Quoted 1 line

This reason is same as the former patch

Please add this as a testcase to qemu-iotests.

Sorry, i am not familar with qemu-iotests. Is it necessary?

Quoted 1 line
Signature · 3 lines
Regards,

Zhi Yong Wu