From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:41918) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RchEe-00046t-3q for qemu-devel@nongnu.org; Mon, 19 Dec 2011 12:42:53 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RchEY-0004EN-8n for qemu-devel@nongnu.org; Mon, 19 Dec 2011 12:42:48 -0500 Received: from indium.canonical.com ([91.189.90.7]:43404) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RchEX-0004EI-WD for qemu-devel@nongnu.org; Mon, 19 Dec 2011 12:42:42 -0500 Received: from loganberry.canonical.com ([91.189.90.37]) by indium.canonical.com with esmtp (Exim 4.71 #1 (Debian)) id 1RchEW-0001wm-23 for ; Mon, 19 Dec 2011 17:42:40 +0000 Received: from loganberry.canonical.com (localhost [127.0.0.1]) by loganberry.canonical.com (Postfix) with ESMTP id 4C2CE2E883B for ; Mon, 19 Dec 2011 17:35:33 +0000 (UTC) MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Date: Mon, 19 Dec 2011 17:26:22 -0000 From: Michael Niehren <902148@bugs.launchpad.net> Sender: bounces@canonical.com References: <20111209131037.2413.97284.malonedeb@gac.canonical.com> Message-Id: <20111219172622.31593.92992.malone@gac.canonical.com> Errors-To: bounces@canonical.com Subject: [Qemu-devel] [Bug 902148] Re: qemu-img V1.0 hangs on creating Image (0.15.1 runs) Reply-To: Bug 902148 <902148@bugs.launchpad.net> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Hi Stefan, i got the following output with your patch: Formatting 'test.img', fmt=3Dqcow2 size=3D1073741824 encryption=3Doff clust= er_size=3D65536 bdrv_rw_co_entry is_write 0 sector_num 0 nb_sectors 1 =3Dwaiting for rwco.r= et !=3D NOT_DONE waiting for rwco.ret !=3D NOT_DONE 0 bdrv_rw_co_entry is_write 1 sector_num 0 nb_sectors 1 =3Dwaiting for rwco.r= et !=3D NOT_DONE 0 bdrv_rw_co_entry is_write 1 sector_num 128 nb_sectors 128 =3Dwaiting for rw= co.ret !=3D NOT_DONE 0 bdrv_rw_co_entry is_write 1 sector_num 128 nb_sectors 128 =3D-5 waiting for rwco.ret !=3D NOT_DONE waiting for rwco.ret !=3D NOT_DONE waiting for rwco.ret !=3D NOT_DONE .... and runs forever -- = You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/902148 Title: qemu-img V1.0 hangs on creating Image (0.15.1 runs) Status in QEMU: New Bug description: Hi, i try the following command: /usr/bin/qemu-img create -f qcow2 test.img 10G if i run it on V0.15.1 it works, on V1.0 it hangs. Starting qemu-kvm hangs too, i think it's the same Bug. Strace on the hanging qemu-img ends on: select(5, [4], [], NULL, NULL) =3D 1 (in [4]) read(4, "\0", 16) =3D 1 close(3) =3D 0 open("test.img", O_RDONLY|O_NONBLOCK) =3D 3 fstat(3, {st_mode=3DS_IFREG|0644, st_size=3D131072, ...}) =3D 0 close(3) =3D 0 open("test.img", O_RDONLY|O_NONBLOCK) =3D 3 fstat(3, {st_mode=3DS_IFREG|0644, st_size=3D131072, ...}) =3D 0 close(3) =3D 0 stat("test.img", {st_mode=3DS_IFREG|0644, st_size=3D131072, ...}) =3D 0 open("test.img", O_RDWR|O_CLOEXEC) =3D 3 lseek(3, 0, SEEK_END) =3D 131072 next line in the strace on working qemu-img V0.15.1 is: pread(3, "QFI\373\0\0\0\2\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\20\0\0\0\0\0\0\0\= 0"..., 512, 0) =3D 512 ... The only linking difference i see is the libgthread on the new version V1.0. I am using glib V2.26. Can someone help ? best regards, Michael To manage notifications about this bug go to: https://bugs.launchpad.net/qemu/+bug/902148/+subscriptions