From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:53851) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S8nn6-0005sK-MQ for qemu-devel@nongnu.org; Sat, 17 Mar 2012 03:11:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1S8nn4-0001Sb-NJ for qemu-devel@nongnu.org; Sat, 17 Mar 2012 03:11:04 -0400 Received: from v220110690675601.yourvserver.net ([78.47.199.172]:49321) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S8nn4-0001SX-HR for qemu-devel@nongnu.org; Sat, 17 Mar 2012 03:11:02 -0400 Message-ID: <4F643902.7080705@weilnetz.de> Date: Sat, 17 Mar 2012 08:10:58 +0100 From: Stefan Weil MIME-Version: 1.0 References: <20120317031124.88CE640139@buildbot.b1-systems.de> In-Reply-To: <20120317031124.88CE640139@buildbot.b1-systems.de> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] VDI patches (was: buildbot failure in qemu on block_i386_debian_6_0) List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Paolo Bonzini , Kevin Wolf , Alexander Graf Cc: gollub@b1-systems.de, qemu-devel@nongnu.org, lcapitulino@redhat.com Am 17.03.2012 04:11, schrieb qemu@buildbot.b1-systems.de: > The Buildbot has detected a new failure on builder > block_i386_debian_6_0 while building qemu. > Full details are available at: > http://buildbot.b1-systems.de/qemu/builders/block_i386_debian_6_0/builds/215 > > Buildbot URL: http://buildbot.b1-systems.de/qemu/ > > Buildslave for this Build: yuzuki > > Build Reason: The Nightly scheduler named 'nightly_block' triggered > this build > Build Source Stamp: [branch block] HEAD > Blamelist: > > BUILD FAILED: failed compile > > sincerely, > -The Buildbot Hi Kevin, hi Paolo, the build failure is caused by the vdi changes: some versions of gcc detect uninitialized local variables (my gcc 4.4.5 does not). I don't think that it's really an error because the code is guarded by the local variable 'block', but not all compilers are clever enough, so it should be fixed. It can be fixed by modifying commit af93911fd45f4de34ca2d5813905e2cf43675c98 (vdi: move aiocb fields to locals) like that: --- a/block/vdi.c +++ b/block/vdi.c @@ -519,8 +519,8 @@ static int vdi_co_write(BlockDriverState *bs, uint32_t block_index; uint32_t sector_in_block; uint32_t n_sectors; - uint32_t bmap_first; - uint32_t bmap_last; + uint32_t bmap_first = VDI_UNALLOCATED; + uint32_t bmap_last = VDI_UNALLOCATED; uint8_t *block = NULL; int ret = 0; Regards, Stefan W.