Received: from [140.186.70.92] (port=49227 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ORLff-0002LB-CO for qemu-devel@nongnu.org; Wed, 23 Jun 2010 04:51:00 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1ORLad-00006C-RE for qemu-devel@nongnu.org; Wed, 23 Jun 2010 04:45:52 -0400 Received: from adelie.canonical.com ([91.189.90.139]:39494) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1ORLad-00005z-IT for qemu-devel@nongnu.org; Wed, 23 Jun 2010 04:45:47 -0400 Received: from loganberry.canonical.com ([91.189.90.37]) by adelie.canonical.com with esmtp (Exim 4.69 #1 (Debian)) id 1ORLaa-0006py-K3 for ; Wed, 23 Jun 2010 09:45:45 +0100 Received: from loganberry.canonical.com (localhost [127.0.0.1]) by loganberry.canonical.com (Postfix) with ESMTP id 7E6D62E81F5 for ; Wed, 23 Jun 2010 09:45:41 +0100 (BST) MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Date: Wed, 23 Jun 2010 08:38:27 -0000 From: xudong Sender: bounces@canonical.com References: <20100610074137.20134.96759.malonedeb@palladium.canonical.com> Message-Id: <20100623083827.15164.18341.malone@potassium.ubuntu.com> Errors-To: bounces@canonical.com Subject: [Qemu-devel] [Bug 592056] Re: qemu segmentation fault when create qcow2 image with qemu-img command Reply-To: Bug 592056 <592056@bugs.launchpad.net> List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org This bug has been fixed on commit: kvm-commit:a63e16c655f9e68d49d6fae4275ff= da16b1888b2, 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 +=3D count_option_parameters(list); dest =3D qemu_realloc(dest, (num_options + 1) * sizeof(QEMUOptionParameter)); + dest[num_dest_options].name =3D NULL; while (list && list->name) { if (get_option_parameter(dest, list->name) =3D=3D 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 b= ring 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