From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id AEBE73858D33; Sun, 24 Apr 2022 19:00:09 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org AEBE73858D33 From: "zsojka at seznam dot cz" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/105367] New: [12 Regression] ICE: SIGSEGV in contains_struct_check (tree.h:3570) with -Ofast -mveclibabi=acml Date: Sun, 24 Apr 2022 19:00:09 +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: 12.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: Sun, 24 Apr 2022 19:00:09 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D105367 Bug ID: 105367 Summary: [12 Regression] ICE: SIGSEGV in contains_struct_check (tree.h:3570) with -Ofast -mveclibabi=3Dacml Product: gcc Version: 12.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 52860 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=3D52860&action=3Dedit reduced testcase Compiler output: $ x86_64-pc-linux-gnu-gcc -Ofast -mveclibabi=3Dacml testcase.c -wrapper valgrind,-q =3D=3D27510=3D=3D Invalid read of size 2 =3D=3D27510=3D=3D at 0x172F0A7: contains_struct_check (tree.h:3570) =3D=3D27510=3D=3D by 0x172F0A7: ix86_veclibabi_acml(combined_fn, tree_no= de*, tree_node*) (i386.cc:18903) =3D=3D27510=3D=3D by 0x24C3B67: vectorizable_call(vec_info*, _stmt_vec_i= nfo*, gimple_stmt_iterator*, gimple**, _slp_tree*, vec*) (tree-vect-stmts.cc:3435) =3D=3D27510=3D=3D by 0x24D4CDC: vect_analyze_stmt(vec_info*, _stmt_vec_i= nfo*, bool*, _slp_tree*, _slp_instance*, vec*) (tree-vect-stmts.cc:11173) =3D=3D27510=3D=3D by 0x1641EF8: vect_slp_analyze_node_operations_1 (tree-vect-slp.cc:4501) =3D=3D27510=3D=3D by 0x1641EF8: vect_slp_analyze_node_operations(vec_inf= o*, _slp_tree*, _slp_instance*, hash_set<_slp_tree*, false, default_hash_traits<_slp_tree*> >&, vec<_slp_tree*, va_heap, vl_ptr>&, vec*) (tree-vect-slp.cc:4685) =3D=3D27510=3D=3D by 0x164363A: vect_slp_analyze_operations(vec_info*) (tree-vect-slp.cc:4924) =3D=3D27510=3D=3D by 0x164906B: vect_slp_analyze_bb_1 (tree-vect-slp.cc:= 5892) =3D=3D27510=3D=3D by 0x164906B: vect_slp_region(vec, vec, vec*, unsigned int, loop*) (tree-vect-slp.cc:5939) =3D=3D27510=3D=3D by 0x164A864: vect_slp_bbs(vec const&, loop*) (tree-vect-slp.cc:6130) =3D=3D27510=3D=3D by 0x164AC2C: vect_slp_function(function*) (tree-vect-= slp.cc:6218) =3D=3D27510=3D=3D by 0x1652A32: (anonymous namespace)::pass_slp_vectorize::execute(function*) (tree-vectorizer.cc:1506) =3D=3D27510=3D=3D by 0x1298129: execute_one_pass(opt_pass*) (passes.cc:2= 638) =3D=3D27510=3D=3D by 0x12989EF: execute_pass_list_1(opt_pass*) (passes.c= c:2738) =3D=3D27510=3D=3D by 0x1298A01: execute_pass_list_1(opt_pass*) (passes.c= c:2739) =3D=3D27510=3D=3D Address 0x0 is not stack'd, malloc'd or (recently) free'd =3D=3D27510=3D=3D=20 during GIMPLE pass: slp testcase.c: In function 'foo': testcase.c:4:1: internal compiler error: Segmentation fault 4 | foo() { | ^~~ 0x13a3d9f crash_signal /repo/gcc-trunk/gcc/toplev.cc:322 0x172f0a7 contains_struct_check(tree_node*, tree_node_structure_enum, char const*, int, char const*) /repo/gcc-trunk/gcc/tree.h:3570 0x172f0a7 ix86_veclibabi_acml(combined_fn, tree_node*, tree_node*) /repo/gcc-trunk/gcc/config/i386/i386.cc:18903 0x24c3b67 vectorizable_call /repo/gcc-trunk/gcc/tree-vect-stmts.cc:3435 0x24d4cdc vect_analyze_stmt(vec_info*, _stmt_vec_info*, bool*, _slp_tree*, _slp_instance*, vec*) /repo/gcc-trunk/gcc/tree-vect-stmts.cc:11173 0x1641ef8 vect_slp_analyze_node_operations_1 /repo/gcc-trunk/gcc/tree-vect-slp.cc:4501 0x1641ef8 vect_slp_analyze_node_operations /repo/gcc-trunk/gcc/tree-vect-slp.cc:4685 0x164363a vect_slp_analyze_operations(vec_info*) /repo/gcc-trunk/gcc/tree-vect-slp.cc:4924 0x164906b vect_slp_analyze_bb_1 /repo/gcc-trunk/gcc/tree-vect-slp.cc:5892 0x164906b vect_slp_region /repo/gcc-trunk/gcc/tree-vect-slp.cc:5939 0x164a864 vect_slp_bbs /repo/gcc-trunk/gcc/tree-vect-slp.cc:6130 0x164ac2c vect_slp_function(function*) /repo/gcc-trunk/gcc/tree-vect-slp.cc:6218 0x1652a32 execute /repo/gcc-trunk/gcc/tree-vectorizer.cc:1506 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. $ x86_64-pc-linux-gnu-gcc -v Using built-in specs. COLLECT_GCC=3D/repo/gcc-trunk/binary-latest-amd64/bin/x86_64-pc-linux-gnu-g= cc COLLECT_LTO_WRAPPER=3D/repo/gcc-trunk/binary-trunk-r12-8236-20220424133922-= g6b7441a46c7-checking-yes-rtl-df-extra-nobootstrap-amd64/bin/../libexec/gcc= /x86_64-pc-linux-gnu/12.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 --disable-bootstrap --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-r12-8236-20220424133922-g6b7441a46= c7-checking-yes-rtl-df-extra-nobootstrap-amd64 Thread model: posix Supported LTO compression algorithms: zlib zstd gcc version 12.0.1 20220424 (experimental) (GCC)=