* [Qemu-devel] buildbot failure in qemu on block_i386_debian_6_0
@ 2012-03-17 3:11 qemu
2012-03-17 7:10 ` [Qemu-devel] VDI patches (was: buildbot failure in qemu on block_i386_debian_6_0) Stefan Weil
0 siblings, 1 reply; 4+ messages in thread
From: qemu @ 2012-03-17 3:11 UTC (permalink / raw)
To: agraf, gollub, lcapitulino, qemu-devel
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
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [Qemu-devel] VDI patches (was: buildbot failure in qemu on block_i386_debian_6_0)
2012-03-17 3:11 [Qemu-devel] buildbot failure in qemu on block_i386_debian_6_0 qemu
@ 2012-03-17 7:10 ` Stefan Weil
2012-03-17 7:33 ` [Qemu-devel] VDI patches Paolo Bonzini
2012-03-19 11:46 ` Kevin Wolf
0 siblings, 2 replies; 4+ messages in thread
From: Stefan Weil @ 2012-03-17 7:10 UTC (permalink / raw)
To: Paolo Bonzini, Kevin Wolf, Alexander Graf; +Cc: gollub, qemu-devel, lcapitulino
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.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [Qemu-devel] VDI patches
2012-03-17 7:10 ` [Qemu-devel] VDI patches (was: buildbot failure in qemu on block_i386_debian_6_0) Stefan Weil
@ 2012-03-17 7:33 ` Paolo Bonzini
2012-03-19 11:46 ` Kevin Wolf
1 sibling, 0 replies; 4+ messages in thread
From: Paolo Bonzini @ 2012-03-17 7:33 UTC (permalink / raw)
To: qemu-devel
Il 17/03/2012 08:10, Stefan Weil ha scritto:
> 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.
>
>
>
Yes, I'll post v2.
Paolo
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [Qemu-devel] VDI patches
2012-03-17 7:10 ` [Qemu-devel] VDI patches (was: buildbot failure in qemu on block_i386_debian_6_0) Stefan Weil
2012-03-17 7:33 ` [Qemu-devel] VDI patches Paolo Bonzini
@ 2012-03-19 11:46 ` Kevin Wolf
1 sibling, 0 replies; 4+ messages in thread
From: Kevin Wolf @ 2012-03-19 11:46 UTC (permalink / raw)
To: Stefan Weil
Cc: qemu-devel, Paolo Bonzini, gollub, Alexander Graf, lcapitulino
Am 17.03.2012 08:10, schrieb Stefan Weil:
> 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;
Paolo, can you send a v2?
Kevin
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2012-03-19 11:43 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-03-17 3:11 [Qemu-devel] buildbot failure in qemu on block_i386_debian_6_0 qemu
2012-03-17 7:10 ` [Qemu-devel] VDI patches (was: buildbot failure in qemu on block_i386_debian_6_0) Stefan Weil
2012-03-17 7:33 ` [Qemu-devel] VDI patches Paolo Bonzini
2012-03-19 11:46 ` Kevin Wolf
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).