From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id EC9263858C42; Sat, 30 Dec 2023 19:43:41 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org EC9263858C42 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1703965421; bh=v4CdRM3K+IUh4/wco6M3+vYKbIslHoWCHXm05ZDjFxc=; h=From:To:Subject:Date:In-Reply-To:References:From; b=DS5mYYyR17SRfo/nN/P9mCu85lYb3QfJSLrFqAgTEiAxKJXzUJs4xULna/dCY57hz ORAs2oRh2knEvnM8JuY5DA/QvQQctk8wQ4i2hl33tExGsidXQQ1N+bhZZzmnpyL/f8 dOwmDco301VUxrlkMwPA5KvmmuDssYxsm3/7AG/o= From: "pinskia at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug lto/113183] LTO crashes with Segmentation fault Date: Sat, 30 Dec 2023 19:43:41 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: lto X-Bugzilla-Version: 13.2.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: pinskia at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED 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 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D113183 --- Comment #2 from Andrew Pinski --- But changing env to Ubuntu, upstream GCC produces an ICE: ``` Segmentation fault 0xf370cf crash_signal /home/apinski/src/upstream-gcc/gcc/gcc/toplev.cc:316 0x7f1bac5a351f ??? ./signal/../sysdeps/unix/sysv/linux/x86_64/libc_sigaction.c:0 0xf940b6 default_tree_printer(pretty_printer*, text_info*, char const*, int, bool, bool, bool, bool*, char const**) /home/apinski/src/upstream-gcc/gcc/gcc/tree-diagnostic.cc:274 0xf940b6 default_tree_printer(pretty_printer*, text_info*, char const*, int, bool, bool, bool, bool*, char const**) /home/apinski/src/upstream-gcc/gcc/gcc/tree-diagnostic.cc:251 0x21d2ef4 pp_format(pretty_printer*, text_info*, urlifier const*) /home/apinski/src/upstream-gcc/gcc/gcc/pretty-print.cc:1602 0x21ad9cb diagnostic_context::report_diagnostic(diagnostic_info*) /home/apinski/src/upstream-gcc/gcc/gcc/diagnostic.cc:1604 0x21b1dd7 diagnostic_impl /home/apinski/src/upstream-gcc/gcc/gcc/diagnostic.cc:1767 0x21b1dd7 warning(int, char const*, ...) /home/apinski/src/upstream-gcc/gcc/gcc/diagnostic.cc:1900 0x12bdd17 switch_to_section(section*, tree_node*) /home/apinski/src/upstream-gcc/gcc/gcc/varasm.cc:7935 0x12c9cd2 assemble_variable(tree_node*, int, int, int) /home/apinski/src/upstream-gcc/gcc/gcc/varasm.cc:2407 0x12ce2f9 varpool_node::assemble_decl() /home/apinski/src/upstream-gcc/gcc/gcc/varpool.cc:596 0x12cee6e varpool_node::assemble_decl() /home/apinski/src/upstream-gcc/gcc/gcc/varpool.cc:568 0x12cee6e symbol_table::output_variables() /home/apinski/src/upstream-gcc/gcc/gcc/varpool.cc:764 0xa4865a symbol_table::compile() /home/apinski/src/upstream-gcc/gcc/gcc/cgraphunit.cc:2402 0x9951d1 lto_main() /home/apinski/src/upstream-gcc/gcc/gcc/lto/lto.cc:685 Please submit a full bug report, with preprocessed source (by using -freport-bug). Please include the complete backtrace with any bug report. See for instructions. lto-wrapper: fatal error: /home/apinski/upstream-gcc/bin/gcc returned 1 exit status compilation terminated. /usr/bin/ld: error: lto-wrapper failed collect2: error: ld returned 1 exit status ```=