qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [Bug 592056] [NEW] qemu segmentation fault when create qcow2 image with qemu-img command
@ 2010-06-10  7:41 xudong
  2010-06-10  8:59 ` Kevin Wolf
                   ` (3 more replies)
  0 siblings, 4 replies; 7+ messages in thread
From: xudong @ 2010-06-10  7:41 UTC (permalink / raw)
  To: qemu-devel

Public bug reported:

Host OS: ia32e
kvm.git Commit:cf18597a046413e9f0dd8df3ad6715a88766be51
qemu-kvm Commit:3f505ec990599aeb960ed7031a2bb7b233ea4927
Host Kernel Version:2.6.35-rc2+
Hardware:Westmere-HEDT


Bug detailed description:
--------------------------
when use "qemu-img" command to create qcow image, segmentation fault will
happen. 
dmesg: qemu-img[1883] general protection ip:32f0477d20 sp:7fff9c89b308
error:0 in libc-2.5.so[32f0400000+14a000]

Bisected commit ea25559830a1a025e534dea634158c0141c71894 in qemu-kvm tree bring up this
issue.

Reproduce steps:
----------------
1.boot up into KVM ia32e host
2.use command: qemu-img create -b /path/to/file.img -f qcow2 /path/to/qcow.img
3.it displays: segmentation fault

** Affects: qemu
     Importance: Undecided
         Status: New

-- 
qemu segmentation fault when create qcow2 image with qemu-img command
https://bugs.launchpad.net/bugs/592056
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.

Status in QEMU: New

Bug description:
Host OS: ia32e
kvm.git Commit:cf18597a046413e9f0dd8df3ad6715a88766be51
qemu-kvm Commit:3f505ec990599aeb960ed7031a2bb7b233ea4927
Host Kernel Version:2.6.35-rc2+
Hardware:Westmere-HEDT


Bug detailed description:
--------------------------
when use "qemu-img" command to create qcow image, segmentation fault will
happen. 
dmesg: qemu-img[1883] general protection ip:32f0477d20 sp:7fff9c89b308
error:0 in libc-2.5.so[32f0400000+14a000]

Bisected commit ea25559830a1a025e534dea634158c0141c71894 in qemu-kvm tree bring up this
issue.

Reproduce steps:
----------------
1.boot up into KVM ia32e host
2.use command: qemu-img create -b /path/to/file.img -f qcow2 /path/to/qcow.img
3.it displays: segmentation fault

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [Qemu-devel] [Bug 592056] [NEW] qemu segmentation fault when create qcow2 image with qemu-img command
  2010-06-10  7:41 [Qemu-devel] [Bug 592056] [NEW] qemu segmentation fault when create qcow2 image with qemu-img command xudong
@ 2010-06-10  8:59 ` Kevin Wolf
  2010-06-10  9:30   ` Hao, Xudong
  2010-06-11  7:20   ` Hao, Xudong
  2010-06-23  8:38 ` [Qemu-devel] [Bug 592056] " xudong
                   ` (2 subsequent siblings)
  3 siblings, 2 replies; 7+ messages in thread
From: Kevin Wolf @ 2010-06-10  8:59 UTC (permalink / raw)
  To: Bug 592056; +Cc: xudong, qemu-devel

Am 10.06.2010 09:41, schrieb xudong:
> when use "qemu-img" command to create qcow image, segmentation fault will
> happen. 
> dmesg: qemu-img[1883] general protection ip:32f0477d20 sp:7fff9c89b308
> error:0 in libc-2.5.so[32f0400000+14a000]
> 
> Bisected commit ea25559830a1a025e534dea634158c0141c71894 in qemu-kvm tree bring up this
> issue.

Can you please provide a backtrace? I couldn't reproduce this in a quick
attempt, so I can't get it myself.

^ permalink raw reply	[flat|nested] 7+ messages in thread

* RE: [Qemu-devel] [Bug 592056] [NEW] qemu segmentation fault when create qcow2 image with qemu-img command
  2010-06-10  8:59 ` Kevin Wolf
@ 2010-06-10  9:30   ` Hao, Xudong
  2010-06-11  7:20   ` Hao, Xudong
  1 sibling, 0 replies; 7+ messages in thread
From: Hao, Xudong @ 2010-06-10  9:30 UTC (permalink / raw)
  To: Kevin Wolf, Bug 592056; +Cc: qemu-devel@nongnu.org

The commit dafac85ed4f43d694c1b438ec6d14e18d225e600 works fine, I git diff the two dafac85ed4f43d694c1b438ec6d14e18d225e600 and ea25559830a1a025e534dea634158c0141c71894, and revert qemu-img.c to dafac85ed4f43d694c1b438ec6d14e18d225e600 , then everything is OK.

Thanks,
Xudong
-----Original Message-----
From: Kevin Wolf [mailto:kwolf@redhat.com] 
Sent: 2010年6月10日 16:59
To: Bug 592056
Cc: Hao, Xudong; qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [Bug 592056] [NEW] qemu segmentation fault when create qcow2 image with qemu-img command

Am 10.06.2010 09:41, schrieb xudong:
> when use "qemu-img" command to create qcow image, segmentation fault will
> happen. 
> dmesg: qemu-img[1883] general protection ip:32f0477d20 sp:7fff9c89b308
> error:0 in libc-2.5.so[32f0400000+14a000]
> 
> Bisected commit ea25559830a1a025e534dea634158c0141c71894 in qemu-kvm tree bring up this
> issue.

Can you please provide a backtrace? I couldn't reproduce this in a quick
attempt, so I can't get it myself.

^ permalink raw reply	[flat|nested] 7+ messages in thread

* RE: [Qemu-devel] [Bug 592056] [NEW] qemu segmentation fault when create qcow2 image with qemu-img command
  2010-06-10  8:59 ` Kevin Wolf
  2010-06-10  9:30   ` Hao, Xudong
@ 2010-06-11  7:20   ` Hao, Xudong
  1 sibling, 0 replies; 7+ messages in thread
From: Hao, Xudong @ 2010-06-11  7:20 UTC (permalink / raw)
  To: Bug 592056; +Cc: Kevin Wolf, qemu-devel@nongnu.org

BT:
#0  0x00000032f0477d20 in strcmp () from /lib64/libc.so.6
#1  0x00000000004071bb in get_option_parameter (list=0x6447e0, name=0x432dc9 "size")
    at qemu-option.c:162
#2  0x0000000000408848 in append_option_parameters (dest=<value optimized out>, 
    list=0x642460) at qemu-option.c:383
#3  0x0000000000405143 in img_create (argc=6, argv=0x7fffa40081e0) at qemu-img.c:303
#4  0x00000032f041d8b4 in __libc_start_main () from /lib64/libc.so.6
#5  0x0000000000403099 in _start ()

--Xudong

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Qemu-devel] [Bug 592056] Re: qemu segmentation fault when create qcow2 image with qemu-img command
  2010-06-10  7:41 [Qemu-devel] [Bug 592056] [NEW] qemu segmentation fault when create qcow2 image with qemu-img command xudong
  2010-06-10  8:59 ` Kevin Wolf
@ 2010-06-23  8:38 ` xudong
  2010-06-24  2:15 ` xudong
  2011-02-20 17:16 ` Aurelien Jarno
  3 siblings, 0 replies; 7+ messages in thread
From: xudong @ 2010-06-23  8:38 UTC (permalink / raw)
  To: qemu-devel

This bug has been fixed on commit: kvm-commit:a63e16c655f9e68d49d6fae4275ffda16b1888b2, qemu-kvm commit:97011c7fce92f8c0928c9e94e9896f0dca1bdeb9. 
qcow.img file can be created by qemu-img successfully.                  

fixed patch:
diff --git a/qemu-option.c b/qemu-option.c
index acd74f9..f884865 100644
--- a/qemu-option.c
+++ b/qemu-option.c
@@ -378,6 +378,7 @@ QEMUOptionParameter
*append_option_parameters(QEMUOptionParameter *dest,
     num_options += count_option_parameters(list);

     dest = qemu_realloc(dest, (num_options + 1) *
sizeof(QEMUOptionParameter));
+    dest[num_dest_options].name = NULL;

     while (list && list->name) {
         if (get_option_parameter(dest, list->name) == NULL) {

-- 
qemu segmentation fault when create qcow2 image with qemu-img command
https://bugs.launchpad.net/bugs/592056
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.

Status in QEMU: New

Bug description:
Host OS: ia32e
kvm.git Commit:cf18597a046413e9f0dd8df3ad6715a88766be51
qemu-kvm Commit:3f505ec990599aeb960ed7031a2bb7b233ea4927
Host Kernel Version:2.6.35-rc2+
Hardware:Westmere-HEDT


Bug detailed description:
--------------------------
when use "qemu-img" command to create qcow image, segmentation fault will
happen. 
dmesg: qemu-img[1883] general protection ip:32f0477d20 sp:7fff9c89b308
error:0 in libc-2.5.so[32f0400000+14a000]

Bisected commit ea25559830a1a025e534dea634158c0141c71894 in qemu-kvm tree bring up this
issue.

Reproduce steps:
----------------
1.boot up into KVM ia32e host
2.use command: qemu-img create -b /path/to/file.img -f qcow2 /path/to/qcow.img
3.it displays: segmentation fault

^ permalink raw reply related	[flat|nested] 7+ messages in thread

* [Qemu-devel] [Bug 592056] Re: qemu segmentation fault when create qcow2 image with qemu-img command
  2010-06-10  7:41 [Qemu-devel] [Bug 592056] [NEW] qemu segmentation fault when create qcow2 image with qemu-img command xudong
  2010-06-10  8:59 ` Kevin Wolf
  2010-06-23  8:38 ` [Qemu-devel] [Bug 592056] " xudong
@ 2010-06-24  2:15 ` xudong
  2011-02-20 17:16 ` Aurelien Jarno
  3 siblings, 0 replies; 7+ messages in thread
From: xudong @ 2010-06-24  2:15 UTC (permalink / raw)
  To: qemu-devel

** Changed in: qemu
       Status: New => Fix Committed

-- 
qemu segmentation fault when create qcow2 image with qemu-img command
https://bugs.launchpad.net/bugs/592056
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.

Status in QEMU: Fix Committed

Bug description:
Host OS: ia32e
kvm.git Commit:cf18597a046413e9f0dd8df3ad6715a88766be51
qemu-kvm Commit:3f505ec990599aeb960ed7031a2bb7b233ea4927
Host Kernel Version:2.6.35-rc2+
Hardware:Westmere-HEDT


Bug detailed description:
--------------------------
when use "qemu-img" command to create qcow image, segmentation fault will
happen. 
dmesg: qemu-img[1883] general protection ip:32f0477d20 sp:7fff9c89b308
error:0 in libc-2.5.so[32f0400000+14a000]

Bisected commit ea25559830a1a025e534dea634158c0141c71894 in qemu-kvm tree bring up this
issue.

Reproduce steps:
----------------
1.boot up into KVM ia32e host
2.use command: qemu-img create -b /path/to/file.img -f qcow2 /path/to/qcow.img
3.it displays: segmentation fault

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Qemu-devel] [Bug 592056] Re: qemu segmentation fault when create qcow2 image with qemu-img command
  2010-06-10  7:41 [Qemu-devel] [Bug 592056] [NEW] qemu segmentation fault when create qcow2 image with qemu-img command xudong
                   ` (2 preceding siblings ...)
  2010-06-24  2:15 ` xudong
@ 2011-02-20 17:16 ` Aurelien Jarno
  3 siblings, 0 replies; 7+ messages in thread
From: Aurelien Jarno @ 2011-02-20 17:16 UTC (permalink / raw)
  To: qemu-devel

** Changed in: qemu
       Status: Fix Committed => Fix Released

-- 
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/592056

Title:
  qemu segmentation fault when create qcow2 image with qemu-img command

Status in QEMU:
  Fix Released

Bug description:
  Host OS: ia32e
  kvm.git Commit:cf18597a046413e9f0dd8df3ad6715a88766be51
  qemu-kvm Commit:3f505ec990599aeb960ed7031a2bb7b233ea4927
  Host Kernel Version:2.6.35-rc2+
  Hardware:Westmere-HEDT

  
  Bug detailed description:
  --------------------------
  when use "qemu-img" command to create qcow image, segmentation fault will
  happen. 
  dmesg: qemu-img[1883] general protection ip:32f0477d20 sp:7fff9c89b308
  error:0 in libc-2.5.so[32f0400000+14a000]

  Bisected commit ea25559830a1a025e534dea634158c0141c71894 in qemu-kvm tree bring up this
  issue.

  Reproduce steps:
  ----------------
  1.boot up into KVM ia32e host
  2.use command: qemu-img create -b /path/to/file.img -f qcow2 /path/to/qcow.img
  3.it displays: segmentation fault

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2011-02-20 17:26 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-06-10  7:41 [Qemu-devel] [Bug 592056] [NEW] qemu segmentation fault when create qcow2 image with qemu-img command xudong
2010-06-10  8:59 ` Kevin Wolf
2010-06-10  9:30   ` Hao, Xudong
2010-06-11  7:20   ` Hao, Xudong
2010-06-23  8:38 ` [Qemu-devel] [Bug 592056] " xudong
2010-06-24  2:15 ` xudong
2011-02-20 17:16 ` Aurelien Jarno

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).