From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 7F0533858415; Tue, 2 Nov 2021 20:35:26 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 7F0533858415 From: "marxin at gcc dot 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 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Version: 12.0 X-Bugzilla-Keywords: wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: marxin at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 02 Nov 2021 20:35:26 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D103050 --- Comment #10 from Martin Li=C5=A1ka --- Alternatively, one can see the memory corruption during LTO bootstrap in Go library build: $ ../configure --enable-languages=3Dc,c++,lto,go --disable-multilib --disable-libsanitizer --with-build-config=3Dbootstrap-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=3Dimage/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=3Dmath -mfancy-math-387 -ffp-contract=3Doff -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 >&) 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=