public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "marxin at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/103050] [12 Regression] 520.omnetpp_r miscompiled after r12-4787-gb8ef019ab938471f
Date: Tue, 02 Nov 2021 20:35:26 +0000	[thread overview]
Message-ID: <bug-103050-4-KFlPgSF399@http.gcc.gnu.org/bugzilla/> (raw)
In-Reply-To: <bug-103050-4@http.gcc.gnu.org/bugzilla/>

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

--- Comment #10 from Martin Liška <marxin at gcc dot gnu.org> ---
Alternatively, one can see the memory corruption during LTO bootstrap in Go
library build:

$ ../configure --enable-languages=c,c++,lto,go --disable-multilib
--disable-libsanitizer --with-build-config=bootstrap-lto
...
$ make -j100
...

free(): invalid pointer
go1: internal compiler error: Aborted
libtool: compile:  /home/mliska/Programming/gcc/objdir/./gcc/gccgo
-B/home/mliska/Programming/gcc/objdir/./gcc/
-B/usr/local/x86_64-pc-linux-gnu/bin/ -B/usr/local/x86_64-pc-linux-gnu/lib/
-isystem /usr/local/x86_64-pc-linux-gnu/include -isystem
/usr/local/x86_64-pc-linux-gnu/sys-include -minline-all-stringops -O2 -g -I .
-c -fgo-pkgpath=image/color/palette
../../../libgo/go/image/color/palette/generate.go
../../../libgo/go/image/color/palette/palette.go -o image/color/palette.o
>/dev/null 2>&1
libtool: compile:  /home/mliska/Programming/gcc/objdir/./gcc/gccgo
-B/home/mliska/Programming/gcc/objdir/./gcc/
-B/usr/local/x86_64-pc-linux-gnu/bin/ -B/usr/local/x86_64-pc-linux-gnu/lib/
-isystem /usr/local/x86_64-pc-linux-gnu/include -isystem
/usr/local/x86_64-pc-linux-gnu/sys-include -minline-all-stringops -O2 -g -I .
-c -fgo-pkgpath=math -mfancy-math-387 -ffp-contract=off -fno-math-errno
-fno-trapping-math ../../../libgo/go/math/abs.go
../../../libgo/go/math/acosh.go ../../../libgo/go/math/asin.go
../../../libgo/go/math/asinh.go ../../../libgo/go/math/atan.go
../../../libgo/go/math/atan2.go ../../../libgo/go/math/atanh.go
../../../libgo/go/math/bits.go ../../../libgo/go/math/cbrt.go
../../../libgo/go/math/const.go ../../../libgo/go/math/copysign.go
../../../libgo/go/math/dim.go ../../../libgo/go/math/dim_noasm.go
../../../libgo/go/math/erf.go ../../../libgo/go/math/erfinv.go
../../../libgo/go/math/exp.go ../../../libgo/go/math/exp2_noasm.go
../../../libgo/go/math/exp_amd64.go ../../../libgo/go/math/exp_noasm.go
../../../libgo/go/math/expm1.go ../../../libgo/go/math/floor.go
../../../libgo/go/math/floor_noasm.go ../../../libgo/go/math/fma.go
../../../libgo/go/math/frexp.go ../../../libgo/go/math/gamma.go
../../../libgo/go/math/hypot.go ../../../libgo/go/math/j0.go
../../../libgo/go/math/j1.go ../../../libgo/go/math/jn.go
../../../libgo/go/math/ldexp.go ../../../libgo/go/math/lgamma.go
../../../libgo/go/math/log.go ../../../libgo/go/math/log10.go
../../../libgo/go/math/log1p.go ../../../libgo/go/math/logb.go
../../../libgo/go/math/mod.go ../../../libgo/go/math/modf.go
../../../libgo/go/math/modf_noasm.go ../../../libgo/go/math/nextafter.go
../../../libgo/go/math/pow.go ../../../libgo/go/math/pow10.go
../../../libgo/go/math/remainder.go ../../../libgo/go/math/signbit.go
../../../libgo/go/math/sin.go ../../../libgo/go/math/sincos.go
../../../libgo/go/math/sinh.go ../../../libgo/go/math/sqrt.go
../../../libgo/go/math/stubs.go ../../../libgo/go/math/tan.go
../../../libgo/go/math/tanh.go ../../../libgo/go/math/trig_reduce.go
../../../libgo/go/math/unsafe.go -o math.o >/dev/null 2>&1
0xe694a3 crash_signal
        ../../gcc/toplev.c:322
0x9492cc Struct_type::write_to_c_header(std::basic_ostream<char,
std::char_traits<char> >&) const
        ../../gcc/go/gofrontend/types.cc:7055
0x8d16a3 Gogo::write_c_header()
        ../../gcc/go/gofrontend/gogo.cc:5382
0x8eea19 Gogo::do_exports()
        ../../gcc/go/gofrontend/gogo.cc:5251
0x8ef0e3 Gogo::do_exports()
        ../../gcc/go/gofrontend/gogo.cc:5204
0x8ef0e3 go_parse_input_files(char const**, unsigned int, bool, bool)
        ../../gcc/go/gofrontend/go.cc:159
0x8ad773 go_langhook_parse_file
        ../../gcc/go/go-lang.c:359

  parent reply	other threads:[~2021-11-02 20:35 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-11-02 18:24 [Bug tree-optimization/103050] New: " marxin at gcc dot gnu.org
2021-11-02 18:29 ` [Bug tree-optimization/103050] " hubicka at gcc dot gnu.org
2021-11-02 18:32 ` marxin at gcc dot gnu.org
2021-11-02 18:39 ` marxin at gcc dot gnu.org
2021-11-02 18:41 ` marxin at gcc dot gnu.org
2021-11-02 18:47 ` marxin at gcc dot gnu.org
2021-11-02 19:53 ` marxin at gcc dot gnu.org
2021-11-02 19:58 ` marxin at gcc dot gnu.org
2021-11-02 20:06 ` marxin at gcc dot gnu.org
2021-11-02 20:08 ` marxin at gcc dot gnu.org
2021-11-02 20:35 ` marxin at gcc dot gnu.org [this message]
2021-11-02 20:35 ` marxin at gcc dot gnu.org
2021-11-03  8:11 ` [Bug ipa/103050] " marxin at gcc dot gnu.org

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bug-103050-4-KFlPgSF399@http.gcc.gnu.org/bugzilla/ \
    --to=gcc-bugzilla@gcc.gnu.org \
    --cc=gcc-bugs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).