From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:46614) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QypEm-0005PF-36 for qemu-devel@nongnu.org; Wed, 31 Aug 2011 14:10:09 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QypEk-0006Xq-6e for qemu-devel@nongnu.org; Wed, 31 Aug 2011 14:10:08 -0400 Received: from mx1.redhat.com ([209.132.183.28]:26004) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QypEj-0006WG-S2 for qemu-devel@nongnu.org; Wed, 31 Aug 2011 14:10:06 -0400 Received: from int-mx12.intmail.prod.int.phx2.redhat.com (int-mx12.intmail.prod.int.phx2.redhat.com [10.5.11.25]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id p7VIA4rH027980 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Wed, 31 Aug 2011 14:10:04 -0400 Date: Wed, 31 Aug 2011 15:10:00 -0300 From: Luiz Capitulino Message-ID: <20110831151000.7bd39d52@doriath> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: [Qemu-devel] block: qcow2: dd segfaults qemu List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Kevin Wolf , qemu-devel Hi Kevin, Test case is: 1. Create a 100MB logical volume and create a 200MB qcow2 image on it 2. Run qemu with the following command-line: # qemu -drive file=disks/test.img,if=virtio,cache=writeback,aio=native \ -drive file=/dev/vg_doriath/kvmtest,if=virtio -enable-kvm -m 1G \ -monitor stdio -netdev type=tap,id=guest0,script=qemu-ifup-switch \ -device virtio-net-pci,netdev=guest0 -cpu host 3. Log into the guest and run dd to write 150MB on /dev/vdb 4. The VM will stop 5. Assign extra space to the logical volume, say 200MB 6. Type 'cont' in the monitor Qemu will crash or hang. Sometimes I also get a crash while dd is running on step 3. I bisected this and the culprit is: 68d100e905453ebbeea8e915f4f18a2bd4339fe8 is the first bad commit commit 68d100e905453ebbeea8e915f4f18a2bd4339fe8 Author: Kevin Wolf Date: Thu Jun 30 17:42:09 2011 +0200 qcow2: Use coroutines Signed-off-by: Kevin Wolf :040000 040000 6b63724de0bc815f285944e4655901718a6676b1 4ebe5ba4d925821310cf3599e8bb7b95b890c7f7 M block