public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/105738] New: asan error during bootstrap
@ 2022-05-26  9:59 dcb314 at hotmail dot com
  2022-05-26 10:07 ` [Bug target/105738] " pinskia at gcc dot gnu.org
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: dcb314 at hotmail dot com @ 2022-05-26  9:59 UTC (permalink / raw)
  To: gcc-bugs

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

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2022-06-04 20:08 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-05-26  9:59 [Bug c/105738] New: asan error during bootstrap dcb314 at hotmail dot com
2022-05-26 10:07 ` [Bug target/105738] " pinskia at gcc dot gnu.org
2022-05-26 18:01 ` dcb314 at hotmail dot com
2022-05-30  9:48 ` marxin at gcc dot gnu.org
2022-06-04 20:08 ` dcb314 at hotmail dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).