Received: from eggs.gnu.org ([2001:4830:134:3::10]:46788) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yph4V-0006r3-O5 for qemu-devel@nongnu.org; Tue, 05 May 2015 13:55:56 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Yph4R-0006pt-SZ for qemu-devel@nongnu.org; Tue, 05 May 2015 13:55:55 -0400 Received: from indium.canonical.com ([91.189.90.7]:41668) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yph4R-0006pb-N7 for qemu-devel@nongnu.org; Tue, 05 May 2015 13:55:51 -0400 Received: from loganberry.canonical.com ([91.189.90.37]) by indium.canonical.com with esmtp (Exim 4.76 #1 (Debian)) id 1Yph4R-0007X8-38 for ; Tue, 05 May 2015 17:55:51 +0000 Received: from loganberry.canonical.com (localhost [127.0.0.1]) by loganberry.canonical.com (Postfix) with ESMTP id 15DAC2E80C2 for ; Tue, 5 May 2015 17:55:51 +0000 (UTC) MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Date: Tue, 05 May 2015 17:47:04 -0000 From: Sam Azer <1349972@bugs.launchpad.net> Sender: bounces@canonical.com References: <20140729180711.26833.98572.malonedeb@soybean.canonical.com> Message-Id: <20150505174704.16210.41151.malone@gac.canonical.com> Errors-To: bounces@canonical.com Subject: [Qemu-devel] [Bug 1349972] Re: qcow2-refcount: qemu-io crashes on 'discard' command Reply-To: Bug 1349972 <1349972@bugs.launchpad.net> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org FWIW: While trying to restore (apply) a snapshot on a Windows VM (ie: qemu-img snapshot -a snapshotname windows.qcow2 where the image file is 150gb in size,) I got the above error: qemu-img: /build/buildd/qemu-2.0.0+dfsg/block/qcow2-refcount.c:467: update_refcount_discard: Assertion `d->bytes + length =3D=3D new_end - new_start' failed. (My VM is now broken.) This is the only reference that I found using Google. HTH -- = You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1349972 Title: qcow2-refcount: qemu-io crashes on 'discard' command Status in QEMU: New Bug description: qemu-io is killed by SIGIOT at the 'discard' command on the image having no refcount information. Sequence: 1. Unpack test.img and backing_img.qed in the same directory (see the att= ached archives for images) 2. Make a copy of test.img to copy.img (qemu-io modifies the image before= being kill, therefore the image backup is necessary) 3. Run the command qemu-io copy.img -c 'discard 2210816 2856448' Result: qemu-io is killed by SIGIOT with the reason: qemu-io: block/qcow2-refcount.c:468: update_refcount_discard: Assertion `d->bytes + length =3D=3D new_end - new_start' failed. = The image was generated by the image fuzzer. qemu.git HEAD: 1d80eb7a680d To manage notifications about this bug go to: https://bugs.launchpad.net/qemu/+bug/1349972/+subscriptions