From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id AEA563858D33; Wed, 22 Apr 2020 16:31:46 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org AEA563858D33 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1587573106; bh=bWWo1JMqfzfl+mTCCPGdx0AixHtVwWDvGxi3kfMEKss=; h=From:To:Subject:Date:From; b=LlZf/Nc5gN3siGNpYHsmrXxMAMyE5wu1k/L59ICOmHnz3gq/vytaBJ7cqNlfoyH4k Ee6DyUwzQnr1IkzlnxXBGlLbxmkQYZyecxd76TJPx1szYU3PgymkHWIapLgwJjwCJc UcolnlZ5feE25LynETGcxmpZPAWCeNQ8nQG1PDMk= From: "zsojka at seznam dot cz" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/94717] New: [10 Regression] ICE: SIGSEGV in output_merged_store (gimple-ssa-store-merging.c:4307) with -O2 -fnon-call-exceptions -ftracer Date: Wed, 22 Apr 2020 16:31:46 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Version: 10.0 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: zsojka at seznam dot cz 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: bug_id short_desc product version bug_status keywords bug_severity priority component assigned_to reporter target_milestone cf_gcchost attachments.created Message-ID: 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: Wed, 22 Apr 2020 16:31:46 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D94717 Bug ID: 94717 Summary: [10 Regression] ICE: SIGSEGV in output_merged_store (gimple-ssa-store-merging.c:4307) with -O2 -fnon-call-exceptions -ftracer Product: gcc Version: 10.0 Status: UNCONFIRMED Keywords: ice-on-valid-code Severity: normal Priority: P3 Component: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: zsojka at seznam dot cz Target Milestone: --- Host: x86_64-pc-linux-gnu Created attachment 48355 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=3D48355&action=3Dedit reduced testcase Compiler output: $ x86_64-pc-linux-gnu-g++ -O2 -fnon-call-exceptions -ftracer testcase.C -wrapper valgrind,-q =3D=3D19787=3D=3D Invalid read of size 4 =3D=3D19787=3D=3D at 0x1C19FA2: (anonymous namespace)::imm_store_chain_info::output_merged_store((anonymous namespace)::merged_store_group*) (gimple-ssa-store-merging.c:4307) =3D=3D19787=3D=3D by 0x1C1C81A: output_merged_stores (gimple-ssa-store-merging.c:4363) =3D=3D19787=3D=3D by 0x1C1C81A: terminate_and_process_chain (gimple-ssa-store-merging.c:4407) =3D=3D19787=3D=3D by 0x1C1C81A: (anonymous namespace)::pass_store_merging::terminate_and_process_chain((anonymous namespace)::imm_store_chain_info*) (gimple-ssa-store-merging.c:2207) =3D=3D19787=3D=3D by 0x1C1DDEF: terminate_and_process_all_chains (gimple-ssa-store-merging.c:2142) =3D=3D19787=3D=3D by 0x1C1DDEF: (anonymous namespace)::pass_store_merging::execute(function*) (gimple-ssa-store-merging.c:4953) =3D=3D19787=3D=3D by 0x1150047: execute_one_pass(opt_pass*) (passes.c:25= 02) =3D=3D19787=3D=3D by 0x11509BF: execute_pass_list_1(opt_pass*) (passes.c= :2590) =3D=3D19787=3D=3D by 0x11509D1: execute_pass_list_1(opt_pass*) (passes.c= :2591) =3D=3D19787=3D=3D by 0x11509F8: execute_pass_list(function*, opt_pass*) (passes.c:2601) =3D=3D19787=3D=3D by 0xDB2AAB: cgraph_node::expand() (cgraphunit.c:2300) =3D=3D19787=3D=3D by 0xDB3CBF: expand_all_functions (cgraphunit.c:2471) =3D=3D19787=3D=3D by 0xDB3CBF: symbol_table::compile() [clone .part.0] (cgraphunit.c:2822) =3D=3D19787=3D=3D by 0xDB602C: compile (cgraphunit.c:2735) =3D=3D19787=3D=3D by 0xDB602C: symbol_table::finalize_compilation_unit() (cgraphunit.c:3002) =3D=3D19787=3D=3D by 0x123C10E: compile_file() (toplev.c:483) =3D=3D19787=3D=3D by 0xA81BF7: do_compile (toplev.c:2273) =3D=3D19787=3D=3D by 0xA81BF7: toplev::main(int, char**) (toplev.c:2412) =3D=3D19787=3D=3D Address 0x24 is not stack'd, malloc'd or (recently) free= 'd =3D=3D19787=3D=3D=20 during GIMPLE pass: store-merging testcase.C: In function 'void foo(S*)': testcase.C:18:1: internal compiler error: Segmentation fault 18 | foo (S *x) | ^~~ Please submit a full bug report, with preprocessed source if appropriate. See for instructions. $ x86_64-pc-linux-gnu-g++ -v Using built-in specs. COLLECT_GCC=3D/repo/gcc-trunk/binary-latest/bin/x86_64-pc-linux-gnu-g++ COLLECT_LTO_WRAPPER=3D/repo/gcc-trunk/binary-trunk-r10-7870-20200422110559-= g413232a55b9-checking-yes-rtl-df-extra-amd64/bin/../libexec/gcc/x86_64-pc-l= inux-gnu/10.0.1/lto-wrapper Target: x86_64-pc-linux-gnu Configured with: /repo/gcc-trunk//configure --enable-languages=3Dc,c++ --enable-valgrind-annotations --disable-nls --enable-checking=3Dyes,rtl,df,= extra --with-cloog --with-ppl --with-isl --build=3Dx86_64-pc-linux-gnu --host=3Dx86_64-pc-linux-gnu --target=3Dx86_64-pc-linux-gnu --with-ld=3D/usr/bin/x86_64-pc-linux-gnu-ld --with-as=3D/usr/bin/x86_64-pc-linux-gnu-as --disable-libstdcxx-pch --prefix=3D/repo/gcc-trunk//binary-trunk-r10-7870-20200422110559-g413232a55= b9-checking-yes-rtl-df-extra-amd64 Thread model: posix Supported LTO compression algorithms: zlib zstd gcc version 10.0.1 20200422 (experimental) (GCC)=