From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from esa4.mentor.iphmx.com (esa4.mentor.iphmx.com [68.232.137.252]) by sourceware.org (Postfix) with ESMTPS id 76C903858D37 for ; Wed, 2 Mar 2022 10:06:08 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 76C903858D37 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=codesourcery.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=mentor.com X-IronPort-AV: E=Sophos;i="5.90,148,1643702400"; d="scan'208";a="72595135" Received: from orw-gwy-02-in.mentorg.com ([192.94.38.167]) by esa4.mentor.iphmx.com with ESMTP; 02 Mar 2022 02:06:07 -0800 IronPort-SDR: eoVkUZiSO04eiBC+SKUFS+zNNmgtCdxb3PqaBZWtGy7YnJkxrQ5lg/l7euLO0yKJKfCzNaZxH4 Kl1JIa8IsWTKVA+6mRnSrwnAz9zLUdFnIldg1awgfeLjPtoAaAaM88Z76rlhcpZ/Dh67A3Wv90 KfOPp4QJ7uLFJ7h0XqfcfPccnr43pnASioVNgwEx/ptFm9aVpHl4V3VDqYqwbWayWkLgAa2rj5 vvDNThjGFzk5hl2uDlvEYz4CPTRBt9mgfsmi98bfjUZ7MfQshowVonUkj0+1asveja9yAyD2DS 8uY= From: Thomas Schwinge To: Philip Herron , Arthur Cohen CC: Mark Wielaard , , Subject: Re: Buildbot failure in Wildebeest Builder on whole buildset In-Reply-To: <87h78glmd5.fsf@dem-tschwing-1.ger.mentorg.com> References: <20220301190815.EE6CD8176B0@builder.wildebeest.org> <87ee3kstu1.fsf@euler.schwinge.homeip.net> <87h78glmd5.fsf@dem-tschwing-1.ger.mentorg.com> User-Agent: Notmuch/0.29.1+93~g67ed7df (https://notmuchmail.org) Emacs/26.3 (x86_64-pc-linux-gnu) Date: Wed, 2 Mar 2022 11:05:57 +0100 Message-ID: <87ee3klldm.fsf@dem-tschwing-1.ger.mentorg.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Originating-IP: [137.202.0.90] X-ClientProxiedBy: svr-ies-mbx-15.mgc.mentorg.com (139.181.222.15) To svr-ies-mbx-01.mgc.mentorg.com (139.181.222.1) X-Spam-Status: No, score=-6.0 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS, KAM_DMARC_STATUS, KAM_SHORT, SPF_HELO_PASS, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE, WEIRD_PORT autolearn=no autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org X-BeenThere: gcc-rust@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: gcc-rust mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 02 Mar 2022 10:06:10 -0000 Hi! On 2022-03-02T10:44:38+0100, I wrote: > On 2022-03-02T09:03:48+0000, Philip Herron w= rote: >> Yet again the build bots are out doing github automation :D. Would you >> be able to give Arthur access to the failing buildbot to test his fix? > > I suggest as a first step to figure out why your local build aren't > running into this issue. What does running 'build-gcc/gcc/xgcc -v' > should for you, and 'grep -i checking build-gcc/gcc/auto-host.h'? > >> We think we know what the issue is. We changed the lexer so we could >> give it a buffer instead of a file for macro expansion, but the string >> is going out of scope when we set it up. > > Ah! So, "standard C/C++ undefined behavior, memory corruption"... ;-) Indeed. Building GCC with '--enable-valgrind-annotations' and running the GCC self-test through '-wrapper valgrind,--leak-check=3Dfull', we see: $ [...]/build-gcc/./gcc/xgcc -B[...]/build-gcc/./gcc/ -xrs -nostdinc /d= ev/null -S -o /dev/null -fself-test=3D[...]/source-gcc/gcc/testsuite/selfte= sts -wrapper valgrind,--leak-check=3Dfull =3D=3D3228208=3D=3D Memcheck, a memory error detector =3D=3D3228208=3D=3D Copyright (C) 2002-2017, and GNU GPL'd, by Julian S= eward et al. =3D=3D3228208=3D=3D Using Valgrind-3.18.1 and LibVEX; rerun with -h for= copyright info =3D=3D3228208=3D=3D Command: [...]/build-gcc/./gcc/rust1 /dev/null -qui= et -dumpbase null -mtune=3Dgeneric -march=3Dx86-64 -fself-test=3D[...]/sour= ce-gcc/gcc/testsuite/selftests -o /dev/null -L[...]/build-gcc/./gcc -L/lib/= x86_64-linux-gnu -L/lib/../lib64 -L/usr/lib/x86_64-linux-gnu =3D=3D3228208=3D=3D rust1: error: unexpected character =E2=80=981=E2=80=99 rust1: error: unexpected character =E2=80=980=E2=80=99 rust1: error: unexpected character =E2=80=980=E2=80=99 rust1: error: unexpected character =E2=80=980=E2=80=99 rust1: error: unexpected character =E2=80=981=E2=80=99 rust1: error: unexpected character =E2=80=980=E2=80=99 rust1: error: unexpected character =E2=80=980=E2=80=99 rust1: error: unexpected character =E2=80=980=E2=80=99 =3D=3D3228208=3D=3D Conditional jump or move depends on uninitialised v= alue(s) =3D=3D3228208=3D=3D at 0x983D5E: Rust::Lexer::build_token() (rust-le= x.cc:365) =3D=3D3228208=3D=3D by 0x987DB4: Rust::buffered_queue, Rust::Lexer::TokenSource>::peek(int) (rust-lex.h:233) =3D=3D3228208=3D=3D by 0x988A46: Rust::parse_cfg_option(std::__cxx11= ::basic_string, std::allocator >&, std::= __cxx11::basic_string, std::allocator >&= , std::__cxx11::basic_string, std::allocator >&) (rust-lex.h:166) =3D=3D3228208=3D=3D by 0x988D83: selftest::rust_cfg_parser_test() (r= ust-cfg-parser.cc:67) =3D=3D3228208=3D=3D by 0x96C5EE: selftest::run_rust_tests() (rust-la= ng.cc:457) =3D=3D3228208=3D=3D by 0x2527223: selftest::run_tests() (selftest-ru= n-tests.cc:119) =3D=3D3228208=3D=3D by 0x11C2C29: toplev::run_self_tests() (toplev.c= c:2217) =3D=3D3228208=3D=3D by 0x96991B: toplev::main(int, char**) (toplev.c= c:2317) =3D=3D3228208=3D=3D by 0x96BFD6: main (main.cc:39) [...] Before commit 6cf9f8c99c5813a23d7cec473fedf00683f409e4 "Merge #983", that was "clean" (just some lost memory etc.). > I can easily test any patches that you need tested. Gr=C3=BC=C3=9Fe Thomas >> On Wed, 2 Mar 2022 at 07:21, Thomas Schwinge w= rote: >>> >>> Hi! >>> >>> On 2022-03-02T00:15:41+0100, Mark Wielaard wrote: >>> > On Tue, Mar 01, 2022 at 07:08:15PM +0000, buildbot@builder.wildebeest= .org wrote: >>> >> The Buildbot has detected a new failure on builder gccrust-debian-ar= m64 while building gccrust. >>> >> Full details are available at: >>> >> https://builder.wildebeest.org/buildbot/#builders/58/builds/1710 >>> >> >>> >> Buildbot URL: https://builder.wildebeest.org/buildbot/ >>> >> >>> >> Worker for this Build: debian-arm64 >>> >> >>> >> Build Reason: >>> >> Blamelist: Arthur Cohen >>> >> >>> >> BUILD FAILED: failed compile (failure) >>> > >>> > And the same for all other builders. >>> >>> ... and me: >>> "'[...]/gcc/rust/parse/rust-cfg-parser.cc:67: rust_cfg_parser_test: >>> FAIL: ASSERT_TRUE ((Rust::parse_cfg_option (input, key, value)))'". >>> >>> > I haven't figured out yet why the last commit caused this. >>> >>> (Same here.) >>> >>> > But it can be replicated when configuring with --enable-checking=3Dye= s >>> >>> That's strange -- isn't some '--enable-checking=3D[...]' actually the >>> default for GCC builds? >>> >>> > That causes the selftests to trigger: >>> >>> At least we can see that the GCC/Rust self-tests are executing! ;-P >>> >>> >>> Gr=C3=BC=C3=9Fe >>> Thomas >>> >>> >>> > make[2]: Entering directory '/home/mark/build/gccrs-obj/gcc' >>> > /home/mark/build/gccrs-obj/./gcc/xgcc -B/home/mark/build/gccrs-obj/./= gcc/ -xrs -nostdinc /dev/null -S -o /dev/null -fself-test=3D/home/mark/src/= gccrs/gcc/testsuite/selftests >>> > rust1: error: unexpected character =E2=80=981=E2=80=99 >>> > rust1: error: unexpected character =E2=80=980=E2=80=99 >>> > rust1: error: unexpected character =E2=80=980=E2=80=99 >>> > rust1: error: unexpected character =E2=80=980=E2=80=99 >>> > rust1: error: unexpected character =E2=80=981=E2=80=99 >>> > rust1: error: unexpected character =E2=80=980=E2=80=99 >>> > rust1: error: unexpected character =E2=80=980=E2=80=99 >>> > rust1: error: unexpected character =E2=80=980=E2=80=99 >>> > rust1: error: unexpected character =E2=80=98e0=E2=80=99 >>> > rust1: error: unexpected character =E2=80=98d3=E2=80=99 >>> > rust1: error: unexpected character =E2=80=9889=E2=80=99 >>> > /home/mark/src/gccrs/gcc/rust/parse/rust-cfg-parser.cc:68: rust_cfg_p= arser_test: FAIL: ASSERT_EQ ((key), ("key_no_value")) >>> > rust1: internal compiler error: in fail, at selftest.cc:47 >>> > 0x1cf096b selftest::fail(selftest::location const&, char const*) >>> > /home/mark/src/gccrs/gcc/selftest.cc:47 >>> > 0x7bb9a3 selftest::rust_cfg_parser_test() >>> > /home/mark/src/gccrs/gcc/rust/parse/rust-cfg-parser.cc:68 >>> > 0x1c143b7 selftest::run_tests() >>> > /home/mark/src/gccrs/gcc/selftest-run-tests.cc:119 >>> > 0xf1310b toplev::run_self_tests() >>> > /home/mark/src/gccrs/gcc/toplev.cc:2217 >>> > Please submit a full bug report, >>> > with preprocessed source if appropriate. >>> > Please include the complete backtrace with any bug report. >>> > See for instructions. >>> > make[2]: *** [/home/mark/src/gccrs/gcc/rust/Make-lang.in:232: s-selft= est-rust] Error 1 >>> > make[2]: Leaving directory '/home/mark/build/gccrs-obj/gcc' >>> > >>> > Cheers, >>> > >>> > Mark >>> > >>> > -- >>> > Gcc-rust mailing list >>> > Gcc-rust@gcc.gnu.org >>> > https://gcc.gnu.org/mailman/listinfo/gcc-rust >>> ----------------- >>> Siemens Electronic Design Automation GmbH; Anschrift: Arnulfstra=C3=9Fe= 201, 80634 M=C3=BCnchen; Gesellschaft mit beschr=C3=A4nkter Haftung; Gesch= =C3=A4ftsf=C3=BChrer: Thomas Heurung, Frank Th=C3=BCrauf; Sitz der Gesellsc= haft: M=C3=BCnchen; Registergericht M=C3=BCnchen, HRB 106955 >>> -- >>> Gcc-rust mailing list >>> Gcc-rust@gcc.gnu.org >>> https://gcc.gnu.org/mailman/listinfo/gcc-rust ----------------- Siemens Electronic Design Automation GmbH; Anschrift: Arnulfstra=C3=9Fe 201= , 80634 M=C3=BCnchen; Gesellschaft mit beschr=C3=A4nkter Haftung; Gesch=C3= =A4ftsf=C3=BChrer: Thomas Heurung, Frank Th=C3=BCrauf; Sitz der Gesellschaf= t: M=C3=BCnchen; Registergericht M=C3=BCnchen, HRB 106955