From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: ** X-Spam-Status: No, score=2.4 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,HTML_MESSAGE,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 2C37FC433DF for ; Thu, 18 Jun 2020 15:13:26 +0000 (UTC) Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id E8838207DD for ; Thu, 18 Jun 2020 15:13:25 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="GxFMc8rt" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org E8838207DD Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Received: from localhost ([::1]:48820 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jlwEH-00082d-5H for qemu-devel@archiver.kernel.org; Thu, 18 Jun 2020 11:13:25 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:50630) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jlwCh-0006Os-56 for qemu-devel@nongnu.org; Thu, 18 Jun 2020 11:11:48 -0400 Received: from mail-wm1-x329.google.com ([2a00:1450:4864:20::329]:53481) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jlwCe-0002JL-UO for qemu-devel@nongnu.org; Thu, 18 Jun 2020 11:11:46 -0400 Received: by mail-wm1-x329.google.com with SMTP id l26so5544894wme.3 for ; Thu, 18 Jun 2020 08:11:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=3MPeQJJl/Hh0ZbXJLrOfiLjK3sBZfLIJQEog7b7H+ow=; b=GxFMc8rtXVN3F+a6RWsUGZzy07ZMuPmQNrszj44r3UQeqk5WZQeQwG8ZOnwaJGtrBT PPSaDJqmwVqsF/ellO5NISvL7wroPYcCyEpBGVK1AV5iK+xYy06UXZR6rgPrrTkgsGSn bmZ/9m8AW5lLomat3+351p4lnZXqecDfMQzVgUGAgtBem/A6a+gglnUSxhihdrHqOulv VVzG6vKw/Mrb0QhwGbVZ/g+AC7sow9Qco6KBEE2bnRsMPyGIgJfKPekqecmjxJB5456v 1T2QYC7Xc4T4WdUUbwaO81+ex5yPXfWtJ9p76dtCzZF1SeXmaoFWY+Irn4nKopkGDtja a95g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=3MPeQJJl/Hh0ZbXJLrOfiLjK3sBZfLIJQEog7b7H+ow=; b=K0Ab3R/5X8yKiQtVOH5/1+wjLDSX2rfgfRFITKU5RDgCSOfI616U3XAVWKWu3PZqLK 4kv9esDlGbDup+WgCCV4GXEwzToyvfvIHmhCskp8AL00qq9HQ7+lR78cSkKTYPn4P5Wl yYc/rQ9sjek48F4CEn3I/AWkS7y3VXq9qsSFk44w+gH6h2CFI7ftRUgETDt86lKjbSeO POIyHsuTv4oK6yqgvc6E8xNI8d8y8yhlUjXKHWrxUIfm6i/EgxsbCtwEFRG02Vy40bY4 oBYO8JJ5c2kXXGvj+x6O6GbkaLN1Yy8tFxbXjVdMakBOLo3bp2nz/GqobYoKPpjyPypK ciZg== X-Gm-Message-State: AOAM533gapA4Xo/MO3jiTSTbbr/OV605OWMStLi6m5e76fi7/5zoYwsa Pxl+IwnOwBUH4iFQcvnMvBvQO15t13vskLw/PGI= X-Google-Smtp-Source: ABdhPJwjiElHVkt8fYM14uaZzJkZ1h05ODzioe3bAQsf6xdHleX20amsosbHPpkB4/lOPvtuMhHRFqXC59AD+3UKkLw= X-Received: by 2002:a1c:4c05:: with SMTP id z5mr4303086wmf.129.1592493102375; Thu, 18 Jun 2020 08:11:42 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a1c:451:0:0:0:0:0 with HTTP; Thu, 18 Jun 2020 08:11:42 -0700 (PDT) In-Reply-To: <20200618135331.7ec861e9.cohuck@redhat.com> References: <159223432851.7281.13140123017230519248.malonedeb@gac.canonical.com> <20200618135331.7ec861e9.cohuck@redhat.com> From: Aleksandar Markovic Date: Thu, 18 Jun 2020 17:11:42 +0200 Message-ID: Subject: Re: [Bug 1883560] [NEW] mips linux-user builds occasionly crash randomly only to be fixed by a full clean re-build To: Cornelia Huck Content-Type: multipart/alternative; boundary="000000000000aca53305a85d3112" Received-SPF: pass client-ip=2a00:1450:4864:20::329; envelope-from=aleksandar.qemu.devel@gmail.com; helo=mail-wm1-x329.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=_AUTOLEARN X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: =?UTF-8?B?QWxleCBCZW5uw6ll?= <1883560@bugs.launchpad.net>, "qemu-devel@nongnu.org" Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: "Qemu-devel" --000000000000aca53305a85d3112 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable =D1=87=D0=B5=D1=82=D0=B2=D1=80=D1=82=D0=B0=D0=BA, 18. =D1=98=D1=83=D0=BD 20= 20., Cornelia Huck =D1=98=D0=B5 =D0=BD=D0=B0=D0=BF=D0= =B8=D1=81=D0=B0=D0=BE/=D0=BB=D0=B0: > On Mon, 15 Jun 2020 15:18:48 -0000 > Alex Benn=C3=A9e <1883560@bugs.launchpad.net> wrote: > > > Public bug reported: > > > > >From time to time I find check-tcg crashes with a one of the MIPS > > binaries. The last time it crashed was running the test: > > > > ./mips64el-linux-user/qemu-mips64el ./tests/tcg/mips64el-linux- > > user/threadcount > > > > Inevitably after some time noodling around wondering what could be > > causing this weird behaviour I wonder if it is a build issue. I wipe al= l > > the mips* build directories, re-run configure and re-build and voila > > problem goes away. > > > > It seems there must be some sort of build artefact which isn't being > > properly re-generated on a build update which causes weird problems. > > Additional data point if I: > > > > rm -rf mips64el-linux-user > > ../../configure > > make > > > > then I see failures in mip32 builds - eg: > > > > GEN mipsn32el-linux-user/config-target.h > > In file included from /home/alex/lsrc/qemu.git/ > linux-user/syscall_defs.h:10, > > from /home/alex/lsrc/qemu.git/linux-user/qemu.h:16, > > from /home/alex/lsrc/qemu.git/ > linux-user/linuxload.c:5: > > /home/alex/lsrc/qemu.git/linux-user/mips64/syscall_nr.h:1: error: > unterminated #ifndef > > #ifndef LINUX_USER_MIPS64_SYSCALL_NR_H > > > > make[1]: *** [/home/alex/lsrc/qemu.git/rules.mak:69: > linux-user/linuxload.o] Error 1 > > make[1]: *** Waiting for unfinished jobs.... > > > > which implies there is a cross dependency between different targets > > somewhere. If I executed: > > > > rm -rf mips* > > > > before re-configuring and re-building then everything works again. > > > > ** Affects: qemu > > Importance: Undecided > > Status: New > > > > > > ** Tags: build linux-user mips > > > > FWIW, this does not seem to be a mips-only issue: I'm seeing the > threadcount test fail with s390x-linux-user as well, and it also goes > away (only) if I purge the build directory, re-configure, and re-build. > > Valuable info! --000000000000aca53305a85d3112 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

=D1=87=D0=B5=D1=82=D0=B2=D1=80=D1=82=D0=B0=D0=BA, 18. =D1=98=D1=83= =D0=BD 2020., Cornelia Huck <cohuck= @redhat.com> =D1=98=D0=B5 =D0=BD=D0=B0=D0=BF=D0=B8=D1=81=D0=B0=D0=BE= /=D0=BB=D0=B0:
On Mon, 15 Jun 2020 15:18:= 48 -0000
Alex Benn=C3=A9e <1883560@= bugs.launchpad.net> wrote:

> Public bug reported:
>
> >From time to time I find check-tcg crashes with a one of the MIPS= =C2=A0
> binaries. The last time it crashed was running the test:
>
>=C2=A0 =C2=A0./mips64el-linux-user/qemu-mips64el ./tests/tcg/mips6= 4el-linux-
> user/threadcount
>
> Inevitably after some time noodling around wondering what could be
> causing this weird behaviour I wonder if it is a build issue. I wipe a= ll
> the mips* build directories, re-run configure and re-build and voila > problem goes away.
>
> It seems there must be some sort of build artefact which isn't bei= ng
> properly re-generated on a build update which causes weird problems. > Additional data point if I:
>
>=C2=A0 =C2=A0rm -rf mips64el-linux-user
>=C2=A0 =C2=A0../../configure
>=C2=A0 =C2=A0make
>
> then I see failures in mip32 builds - eg:
>
>=C2=A0 =C2=A0 =C2=A0GEN=C2=A0 =C2=A0 =C2=A0mipsn32el-linux-user/config-= target.h
>=C2=A0 =C2=A0In file included from /home/alex/lsrc/qemu.git/linux-= user/syscall_defs.h:10,
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 f= rom /home/alex/lsrc/qemu.git/linux-user/qemu.h:16,
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 f= rom /home/alex/lsrc/qemu.git/linux-user/linuxload.c:5:
>=C2=A0 =C2=A0/home/alex/lsrc/qemu.git/linux-user/mips64/syscall_nr= .h:1: error: unterminated #ifndef
>=C2=A0 =C2=A0 #ifndef LINUX_USER_MIPS64_SYSCALL_NR_H
>
>=C2=A0 =C2=A0make[1]: *** [/home/alex/lsrc/qemu.git/rules.mak:69: = linux-user/linuxload.o] Error 1
>=C2=A0 =C2=A0make[1]: *** Waiting for unfinished jobs....
>
> which implies there is a cross dependency between different targets > somewhere. If I executed:
>
>=C2=A0 =C2=A0rm -rf mips*
>
> before re-configuring and re-building then everything works again.
>
> ** Affects: qemu
>=C2=A0 =C2=A0 =C2=A0 Importance: Undecided
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 Status: New
>
>
> ** Tags: build linux-user mips
>

FWIW, this does not seem to be a mips-only issue: I'm seeing the
threadcount test fail with s390x-linux-user as well, and it also goes
away (only) if I purge the build directory, re-configure, and re-build.


Valuable info!
=C2=A0
--000000000000aca53305a85d3112-- From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-0.8 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 30480C433E0 for ; Thu, 18 Jun 2020 15:21:41 +0000 (UTC) Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 049752075E for ; Thu, 18 Jun 2020 15:21:40 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 049752075E Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=bugs.launchpad.net Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Received: from localhost ([::1]:58720 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jlwMG-0005eR-8d for qemu-devel@archiver.kernel.org; Thu, 18 Jun 2020 11:21:40 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:53214) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jlwLP-0004nG-Bl for qemu-devel@nongnu.org; Thu, 18 Jun 2020 11:20:47 -0400 Received: from indium.canonical.com ([91.189.90.7]:49524) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jlwLM-0003xa-Qc for qemu-devel@nongnu.org; Thu, 18 Jun 2020 11:20:46 -0400 Received: from loganberry.canonical.com ([91.189.90.37]) by indium.canonical.com with esmtp (Exim 4.86_2 #2 (Debian)) id 1jlwLK-0000id-C9 for ; Thu, 18 Jun 2020 15:20:42 +0000 Received: from loganberry.canonical.com (localhost [127.0.0.1]) by loganberry.canonical.com (Postfix) with ESMTP id 5AEE82E810A for ; Thu, 18 Jun 2020 15:20:42 +0000 (UTC) MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Date: Thu, 18 Jun 2020 15:11:42 -0000 From: Aleksandar Markovic <1883560@bugs.launchpad.net> To: qemu-devel@nongnu.org X-Launchpad-Notification-Type: bug X-Launchpad-Bug: product=qemu; status=New; importance=Undecided; assignee=None; X-Launchpad-Bug-Tags: build linux-user mips X-Launchpad-Bug-Information-Type: Public X-Launchpad-Bug-Private: no X-Launchpad-Bug-Security-Vulnerability: no X-Launchpad-Bug-Commenters: ajbennee aleksandar-markovic laurent-vivier X-Launchpad-Bug-Reporter: =?utf-8?q?Alex_Benn=C3=A9e_=28ajbennee=29?= X-Launchpad-Bug-Modifier: Aleksandar Markovic (aleksandar-markovic) References: <159223432851.7281.13140123017230519248.malonedeb@gac.canonical.com> Message-ID: Subject: Re: [Bug 1883560] [NEW] mips linux-user builds occasionly crash randomly only to be fixed by a full clean re-build X-Launchpad-Message-Rationale: Subscriber (QEMU) @qemu-devel-ml X-Launchpad-Message-For: qemu-devel-ml Precedence: bulk X-Generated-By: Launchpad (canonical.com); Revision="1cbd0aa39df153c901321817f9b57cf3f232b507"; Instance="production-secrets-lazr.conf" X-Launchpad-Hash: 603bcab4b7d8d10d60e59472bd55d73d2ae5790d Received-SPF: none client-ip=91.189.90.7; envelope-from=bounces@canonical.com; helo=indium.canonical.com X-detected-operating-system: by eggs.gnu.org: First seen = 2020/06/18 11:20:43 X-ACL-Warn: Detected OS = Linux 3.11 and newer [fuzzy] X-Spam_score_int: -58 X-Spam_score: -5.9 X-Spam_bar: ----- X-Spam_report: (-5.9 / 5.0 requ) BAYES_00=-1.9, HEADER_FROM_DIFFERENT_DOMAINS=1, RCVD_IN_DNSWL_HI=-5, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_HELO_NONE=0.001, SPF_NONE=0.001 autolearn=_AUTOLEARN X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Bug 1883560 <1883560@bugs.launchpad.net> Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: "Qemu-devel" Message-ID: <20200618151142.G3Th_GWxoe1_Jft7QkAe_0Sufdz8FKI6PF_dr1Gl69g@z> =D1=87=D0=B5=D1=82=D0=B2=D1=80=D1=82=D0=B0=D0=BA, 18. =D1=98=D1=83=D0=BD 20= 20., Cornelia Huck =D1=98=D0=B5 =D0=BD=D0=B0=D0=BF=D0=B8=D1=81=D0=B0=D0=BE/=D0=BB=D0=B0: > On Mon, 15 Jun 2020 15:18:48 -0000 > Alex Benn=C3=A9e <1883560@bugs.launchpad.net> wrote: > > > Public bug reported: > > > > >From time to time I find check-tcg crashes with a one of the MIPS > > binaries. The last time it crashed was running the test: > > > > ./mips64el-linux-user/qemu-mips64el ./tests/tcg/mips64el-linux- > > user/threadcount > > > > Inevitably after some time noodling around wondering what could be > > causing this weird behaviour I wonder if it is a build issue. I wipe all > > the mips* build directories, re-run configure and re-build and voila > > problem goes away. > > > > It seems there must be some sort of build artefact which isn't being > > properly re-generated on a build update which causes weird problems. > > Additional data point if I: > > > > rm -rf mips64el-linux-user > > ../../configure > > make > > > > then I see failures in mip32 builds - eg: > > > > GEN mipsn32el-linux-user/config-target.h > > In file included from /home/alex/lsrc/qemu.git/ > linux-user/syscall_defs.h:10, > > from /home/alex/lsrc/qemu.git/linux-user/qemu.h:16, > > from /home/alex/lsrc/qemu.git/ > linux-user/linuxload.c:5: > > /home/alex/lsrc/qemu.git/linux-user/mips64/syscall_nr.h:1: error: > unterminated #ifndef > > #ifndef LINUX_USER_MIPS64_SYSCALL_NR_H > > > > make[1]: *** [/home/alex/lsrc/qemu.git/rules.mak:69: > linux-user/linuxload.o] Error 1 > > make[1]: *** Waiting for unfinished jobs.... > > > > which implies there is a cross dependency between different targets > > somewhere. If I executed: > > > > rm -rf mips* > > > > before re-configuring and re-building then everything works again. > > > > ** Affects: qemu > > Importance: Undecided > > Status: New > > > > > > ** Tags: build linux-user mips > > > > FWIW, this does not seem to be a mips-only issue: I'm seeing the > threadcount test fail with s390x-linux-user as well, and it also goes > away (only) if I purge the build directory, re-configure, and re-build. > > Valuable info! -- = You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1883560 Title: mips linux-user builds occasionly crash randomly only to be fixed by a full clean re-build Status in QEMU: New Bug description: From time to time I find check-tcg crashes with a one of the MIPS binaries. The last time it crashed was running the test: ./mips64el-linux-user/qemu-mips64el ./tests/tcg/mips64el-linux- user/threadcount Inevitably after some time noodling around wondering what could be causing this weird behaviour I wonder if it is a build issue. I wipe all the mips* build directories, re-run configure and re-build and voila problem goes away. It seems there must be some sort of build artefact which isn't being properly re-generated on a build update which causes weird problems. Additional data point if I: rm -rf mips64el-linux-user ../../configure make then I see failures in mip32 builds - eg: GEN mipsn32el-linux-user/config-target.h In file included from /home/alex/lsrc/qemu.git/linux-user/syscall_defs.= h:10, from /home/alex/lsrc/qemu.git/linux-user/qemu.h:16, from /home/alex/lsrc/qemu.git/linux-user/linuxload.c:5: /home/alex/lsrc/qemu.git/linux-user/mips64/syscall_nr.h:1: error: unter= minated #ifndef #ifndef LINUX_USER_MIPS64_SYSCALL_NR_H make[1]: *** [/home/alex/lsrc/qemu.git/rules.mak:69: linux-user/linuxlo= ad.o] Error 1 make[1]: *** Waiting for unfinished jobs.... which implies there is a cross dependency between different targets somewhere. If I executed: rm -rf mips* before re-configuring and re-building then everything works again. To manage notifications about this bug go to: https://bugs.launchpad.net/qemu/+bug/1883560/+subscriptions