https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86287

            Bug ID: 86287
           Summary: AddressSanitizer: heap-use-after-free on bootstrap
                    with -O3
           Product: gcc
           Version: 8.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 have just tried to bootstrap trunk revision 261907 with address
sanitizer and got this:

==14968==ERROR: AddressSanitizer: heap-use-after-free on address 0x6110004afa94
at pc 0x00000295ba08 bp 0x7ffcee5bc280 sp 0x7ffcee5bc278
READ of size 4 at 0x6110004afa94 thread T0
    #0 0x295ba07 in vect_transform_loop_stmt
../../trunk/gcc/tree-vect-loop.c:8332
    #1 0x29a1ffc in vect_transform_loop(_loop_vec_info*)
../../trunk/gcc/tree-vect-loop.c:8567
    #2 0x2a232dd in try_vectorize_loop_1 ../../trunk/gcc/tree-vectorizer.c:757
    #3 0x2a26163 in try_vectorize_loop ../../trunk/gcc/tree-vectorizer.c:807

Configure line was

../trunk/configure --prefix=/home/dcb/gcc/results.261907.asan \
        --with-build-config=bootstrap-asan \
        --disable-multilib \
        --disable-werror \
        --enable-checking=df,extra,fold,rtl,yes \
        --enable-languages=c,c++,fortran

with

sed 's/-O2/-O3 -funroll-loops -Wlogical-op/' < Makefile > Makefile.tmp
mv Makefile.tmp Makefile

This used to work at revision 261641, so it looks like 
someone has broken something in the last few days.

Reply via email to