Received: from eggs.gnu.org ([2001:4830:134:3::10]:56694) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ebSLl-0001TO-OX for qemu-devel@nongnu.org; Tue, 16 Jan 2018 09:36:34 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ebSLf-0005qp-H8 for qemu-devel@nongnu.org; Tue, 16 Jan 2018 09:36:29 -0500 Received: from mx1.redhat.com ([209.132.183.28]:45318) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1ebSLf-0005qJ-7S for qemu-devel@nongnu.org; Tue, 16 Jan 2018 09:36:23 -0500 References: <1516059302-7169-1-git-send-email-pbonzini@redhat.com> From: Paolo Bonzini Message-ID: Date: Tue, 16 Jan 2018 15:36:10 +0100 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] [PULL v3 00/53] Misc changes for 2017-01-12 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: =?UTF-8?Q?Marc-Andr=c3=a9_Lureau?= , Peter Maydell Cc: QEMU Developers On 16/01/2018 14:50, Marc-Andr=C3=A9 Lureau wrote: > Hi >=20 > On Tue, Jan 16, 2018 at 1:06 PM, Peter Maydell wrote: >> On 16 January 2018 at 11:58, Marc-Andr=C3=A9 Lureau >> wrote: >>> Hi >>> >>> On Tue, Jan 16, 2018 at 12:25 PM, Peter Maydell >>> wrote: >>>> On 15 January 2018 at 23:35, Paolo Bonzini wro= te: >>>>> The following changes since commit 997eba28a3ed5400a80f754bf3a1c804= 4b75b9ff: >>>>> >>>>> Merge remote-tracking branch 'remotes/pmaydell/tags/pull-target-a= rm-20180111' into staging (2018-01-11 14:34:41 +0000) >>>>> >>>>> are available in the git repository at: >>>>> >>>>> >>>>> git://github.com/bonzini/qemu.git tags/for-upstream >>>>> >>>>> for you to fetch changes up to ff9adba50bf8a4c080b8aee9be2314ef179a= 7b5f: >>>>> >>>>> ucontext: annotate coroutine stack for ASAN (2018-01-12 15:21:14 = +0100) >>>>> >>>>> ---------------------------------------------------------------- >>>>> * QemuMutex tracing improvements (Alex) >>>>> * ram_addr_t optimization (David) >>>>> * SCSI fixes (Fam, Stefan, me) >>>>> * do {} while (0) fixes (Eric) >>>>> * KVM fix for PMU (Jan) >>>>> * memory leak fixes from ASAN (Marc-Andr=C3=A9) >>>>> * migration fix for HPET, icount, loadvm (Maria, Pavel) >>>>> * hflags fixes (me, Tao) >>>>> * block/iscsi uninitialized variable (Peter L.) >>>>> * full support for GMainContexts in character devices (Peter Xu) >>>>> * more boot-serial-test (Thomas) >>>>> * Memory leak fix (Zhecheng) >>>> >>>> Various build failures, I'm afraid: >>>> >>> >>> damn, sorry.. >>> >>>> x86-64/Linux/gcc: >>>> >>>> configure produces an error message: >>>> >>>> ERROR: ASAN build enabled, but ASAN header is too old. >>>> Without code annotation, the report may be inferior. >>>> >>>> even though this configure did not explicitly request ASAN. >>>> Then configure seems to exit successfully anyway, since the >>>> build proceeds. >>> >>> ASAN is enabled by default if available when --enable-debug. We could >>> add more flags if that helps. >> >> Configure switches should work like this: >> * default: use feature if present, but don't complain if not present >> or not usable >> * --enable-foo: use feature. if feature not present, complain and >> fail configure >> * --disable-foo: don't test for or use feature >=20 > Would that be enough to drop the "ERROR:" prefix ? >=20 >>>> For some reason the build creates config-target.h a lot: >> >>> One per target no? (the build should be more silent than before) >> >> Oh, I guess that makes sense. It's a bit odd that the message neither >> gives the target part of the filename nor has those entering/leaving >> directory messages... >> >>>> >>>> Then it runs configure again, this time without the ERROR message, >>>> and eventually fails with: >>>> >>>> CC hw/display/exynos4210_fimd.o >>>> /home/petmay01/linaro/qemu-for-merges/hw/display/exynos4210_fimd.c: = In >>>> function =E2=80=98fimd_get_buffer_id=E2=80=99: >>>> /home/petmay01/linaro/qemu-for-merges/hw/display/exynos4210_fimd.c:1= 105:5: >>>> error: case label does not reduce to an integer constant >>>> case FIMD_WINCON_BUF2_STAT: >>> >>> never saw that error, hmm interesting. This is related to >>> -fsanitize=3Daddress ? Is this on Debian stable? >=20 > Interesting, looks like a bug in gcc ubsan that doesn't happen with > recent versions (related to > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D80550 but probably a > different bug). Adding a cast is enough: >=20 > -#define FIMD_WINCON_BUF2_STAT ((0 << 21) | (1 << 31)) > +#define FIMD_WINCON_BUF2_STAT (uint32_t)((0 << 21) | (1 << 31)) >=20 > It looks like there are no other cases like this >=20 >=20 >=20 >> >> Ubuntu xenial (16.04.3 LTS). No idea if it's related to the >> sanitizer or not. >> >>> >>>> ^ >>>> >>>> On sparc64 host configure fails: >> >>> Hmm, I guess the check -fsanitize=3Daddress doesn't return an error >>> unless -Werror is given. Perhaps it needs: >>> >>> diff --git a/configure b/configure >>> index f5550f3289..ba68c550c9 100755 >>> --- a/configure >>> +++ b/configure >>> @@ -5190,7 +5190,7 @@ fi >>> >>> have_asan=3Dno >>> write_c_skeleton >>> -if compile_prog "-fsanitize=3Daddress" ""; then >>> +if compile_prog "-Werror -fsanitize=3Daddress" ""; then >>> have_asan=3Dyes >>> fi >>> >>> @@ -5207,7 +5207,7 @@ int main(void) { >>> return 0; >>> } >>> EOF >>> -if compile_prog "-fsanitize=3Daddress" "" ; then >>> +if compile_prog "-Werror -fsanitize=3Daddress" "" ; then >>> have_asan_iface_fiber=3Dyes >>> fi >>> >> >> Looks plausible. >=20 > Actually, it probably needs also $CPU_CFLAGS >=20 > Paolo, would you drop "build-sys: add some sanitizers when > --enable-debug if possible" & "ucontext: annotate coroutine stack for > ASAN" from the series? I'll send a new version for those 2. Yes, that was already my plan. Thanks for confirming! Paolo