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

* [Bug target/105738] asan error during bootstrap
  2022-05-26  9:59 [Bug c/105738] New: asan error during bootstrap dcb314 at hotmail dot com
@ 2022-05-26 10:07 ` pinskia at gcc dot gnu.org
  2022-05-26 18:01 ` dcb314 at hotmail dot com
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: pinskia at gcc dot gnu.org @ 2022-05-26 10:07 UTC (permalink / raw)
  To: gcc-bugs

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

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |build, wrong-code
          Component|c                           |target

--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
It could be clang/llvm miscompiling stage 2. Can you try with gcc as the
original compiler?

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

* [Bug target/105738] asan error during bootstrap
  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
  3 siblings, 0 replies; 5+ messages in thread
From: dcb314 at hotmail dot com @ 2022-05-26 18:01 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #2 from David Binderman <dcb314 at hotmail dot com> ---
(In reply to Andrew Pinski from comment #1)
> It could be clang/llvm miscompiling stage 2. Can you try with gcc as the
> original compiler?

Thanks for the suggestion. I did that, and the problem seems to have gone away
;->

7.5 hours of compilation and not yet finished, though.

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

* [Bug target/105738] asan error during bootstrap
  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
  3 siblings, 0 replies; 5+ messages in thread
From: marxin at gcc dot gnu.org @ 2022-05-30  9:48 UTC (permalink / raw)
  To: gcc-bugs

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

Martin Liška <marxin at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
     Ever confirmed|0                           |1
                 CC|                            |marxin at gcc dot gnu.org
   Last reconfirmed|                            |2022-05-30
             Status|UNCONFIRMED                 |WAITING

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

* [Bug target/105738] asan error during bootstrap
  2022-05-26  9:59 [Bug c/105738] New: asan error during bootstrap dcb314 at hotmail dot com
                   ` (2 preceding siblings ...)
  2022-05-30  9:48 ` marxin at gcc dot gnu.org
@ 2022-06-04 20:08 ` dcb314 at hotmail dot com
  3 siblings, 0 replies; 5+ messages in thread
From: dcb314 at hotmail dot com @ 2022-06-04 20:08 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #3 from David Binderman <dcb314 at hotmail dot com> ---
I think if the problem has gone away, then it looks like clang is miscompiling.
Not a problem in gcc, then. I think this bug can be closed.

^ 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).