From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 110AB3834E4B; Thu, 26 May 2022 09:59:18 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 110AB3834E4B From: "dcb314 at hotmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c/105738] New: asan error during bootstrap Date: Thu, 26 May 2022 09:59:17 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c X-Bugzilla-Version: 12.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: dcb314 at hotmail dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 26 May 2022 09:59:18 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D105738 Bug ID: 105738 Summary: asan error during bootstrap Product: gcc Version: 12.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: dcb314 at hotmail dot com Target Milestone: --- I just got the following error during a bootstrap with asan enabled: echo NO_PIE_CFLAGS =3D "$NO_PIE_CFLAGS" >> tmp-libgcc.mvars mv tmp-libgcc.mvars libgcc.mvars /bin/sh ../../trunk.git/gcc/../move-if-change tmp-fixinc_list fixinc_list echo timestamp > s-fixinc_list =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D =3D=3D46366=3D=3DERROR: AddressSanitizer: unknown-crash on address 0x7fe50b= b02c10 at pc 0x000002bb655b bp 0x7ffe2f90ce00 sp 0x7ffe2f90cdf8 READ of size 8 at 0x7fe50bb02c10 thread T0 #0 0x2bb655a in NEXT_INSN(rtx_insn const*) ../../trunk.git/gcc/rtl.h:14= 77 #1 0x2bb655a in expensive_function_p(int) ../../trunk.git/gcc/predict.cc:3702 #2 0x3f57001 in ix86_compute_frame_layout ../../trunk.git/gcc/config/i386/i386.cc:6644 #3 0x285d1c6 in update_reg_eliminate ../../trunk.git/gcc/lra-eliminations.cc:1132 This seems to happen late in stage 3: $ egrep "^Config|^=3D=3D" mk.out ... Configuring stage 3 in ./gcc =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D =3D=3D46366=3D=3DERROR: AddressSanitizer: unknown-crash on address 0x7fe50b= b02c10 at pc 0x000002bb655b bp 0x7ffe2f90ce00 sp 0x7ffe2f90cdf8 =3D=3D46366=3D=3DABORTING Configure line is CC=3D"clang -Wall" CXX=3D"clang++ -Wall" \ ../trunk.git/configure --prefix=3D/home/dcb/gcc/$PREFIX \ --with-build-config=3Dbootstrap-ubsan \ --with-build-config=3Dbootstrap-asan \ --disable-multilib \ --disable-werror \ --enable-checking=3Ddf,extra,fold,rtl,yes \ --enable-languages=3Dc,c++,fortran sed 's/-O2/-O3 -march=3Dbdver2/' < Makefile > Makefile.tmp mv Makefile.tmp Makefile=