From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:59827) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UebmR-00041l-1s for qemu-devel@nongnu.org; Mon, 20 May 2013 21:54:25 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UebmO-0003SO-Dd for qemu-devel@nongnu.org; Mon, 20 May 2013 21:54:22 -0400 Received: from mx1.redhat.com ([209.132.183.28]:4145) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UebmO-0003RM-66 for qemu-devel@nongnu.org; Mon, 20 May 2013 21:54:20 -0400 Received: from int-mx11.intmail.prod.int.phx2.redhat.com (int-mx11.intmail.prod.int.phx2.redhat.com [10.5.11.24]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id r4L1sIgO019735 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Mon, 20 May 2013 21:54:18 -0400 Date: Tue, 21 May 2013 09:54:15 +0800 From: Fam Zheng Message-ID: <20130521015415.GA7100@localhost.nay.redhat.com> References: <1369033424-14594-1-git-send-email-famz@redhat.com> <20130520084106.GC18311@redhat.com> <20130520084959.GA20976@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20130520084959.GA20976@redhat.com> Subject: Re: [Qemu-devel] [PATCH v3 00/10] curl: fix curl read List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "Richard W.M. Jones" Cc: kwolf@redhat.com, jcody@redhat.com, qemu-devel@nongnu.org, stefanha@redhat.com On Mon, 05/20 09:49, Richard W.M. Jones wrote: > On Mon, May 20, 2013 at 09:41:06AM +0100, Richard W.M. Jones wrote: > > On Mon, May 20, 2013 at 03:03:34PM +0800, Fam Zheng wrote: > > > CURL library API has changed, the current curl driver is not working. > > > This patch rewrites the use of API as well as the structure of internal > > > states. > > > > I tried this, but it segfaults: > > > > Program terminated with signal 11, Segmentation fault. > > That stack trace was wrong. I was testing against the version of > libcurl in Fedora which is known to be broken. > > Here is the stack trace, this time really running against > curl-7_30_0-147-gae26ee3: > > Program terminated with signal 11, Segmentation fault. > #0 curl_read_cb (ptr=, size=, > nmemb=, opaque=0x7f63d48ba340) at block/curl.c:240 > 240 size_t aio_base = acb->sector_num * SECTOR_SIZE; Looks like a memory corrupt (QLIST head is invalid pointer). But I can't reproduce here with your steps. Can you try qemu-io? $LD_LIBRARY_PATH=~/d/curl/lib/.libs ~/d/qemu/qemu-io http://192.168.0.249/scratch/winxp.img -c 'read 0 512' Thanks. -- Fam