https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105738
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 = "$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 ================================================================= ==46366==ERROR: AddressSanitizer: unknown-crash on address 0x7fe50bb02c10 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:1477 #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|^==" mk.out ... Configuring stage 3 in ./gcc ================================================================= ==46366==ERROR: AddressSanitizer: unknown-crash on address 0x7fe50bb02c10 at pc 0x000002bb655b bp 0x7ffe2f90ce00 sp 0x7ffe2f90cdf8 ==46366==ABORTING Configure line is CC="clang -Wall" CXX="clang++ -Wall" \ ../trunk.git/configure --prefix=/home/dcb/gcc/$PREFIX \ --with-build-config=bootstrap-ubsan \ --with-build-config=bootstrap-asan \ --disable-multilib \ --disable-werror \ --enable-checking=df,extra,fold,rtl,yes \ --enable-languages=c,c++,fortran sed 's/-O2/-O3 -march=bdver2/' < Makefile > Makefile.tmp mv Makefile.tmp Makefile