From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 50F0D3858D20; Sat, 3 Dec 2022 14:20:37 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 50F0D3858D20 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1670077237; bh=xza6ngGwOyN2sZRtO/wYnM7aHcavZgnp4Ks8/49E9Ik=; h=From:To:Subject:Date:From; b=nPV0Op5FnSQBlkNBUIdPnKqJXT+2CVXXYJoejd2+/G9HI3Sv+2e4Nz5Rm3+eXPkFJ DCJGt4hq5jdGg9XNe++Gh09bBDj2V/FJLttRyKgyT/w3mTAjNVHCmhufstOa41Amac TICpp7cQjWNyJ6FmfWFG8JsHOVIMxSNbDGkGKyq0= From: "zsojka at seznam dot cz" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/107956] New: [12/13 Regression] ICE: SIGSEGV in contains_struct_check (tree.h:3641) with -fsanitize=float-cast-overflow -ftree-slp-vectorize -fexceptions Date: Sat, 03 Dec 2022 14:20:35 +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: 13.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 cf_gcctarget 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 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D107956 Bug ID: 107956 Summary: [12/13 Regression] ICE: SIGSEGV in contains_struct_check (tree.h:3641) with -fsanitize=3Dfloat-cast-overflow -ftree-slp-vectorize -fexceptions Product: gcc Version: 13.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 Target: x86_64-pc-linux-gnu Created attachment 54007 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=3D54007&action=3Dedit reduced testcase Compiler output: $ x86_64-pc-linux-gnu-gcc -O -fsanitize=3Dfloat-cast-overflow -fno-delete-dead-exceptions -ftree-slp-vectorize -fexceptions -mavx512f testcase.c -wrapper valgrind,-q =3D=3D25396=3D=3D Invalid read of size 2 =3D=3D25396=3D=3D at 0x2523A88: contains_struct_check (tree.h:3641) =3D=3D25396=3D=3D by 0x2523A88: vect_recog_mask_conversion_pattern(vec_i= nfo*, _stmt_vec_info*, tree_node**) (tree-vect-patterns.cc:4967) =3D=3D25396=3D=3D by 0x2524C98: vect_pattern_recog_1(vec_info*, vect_rec= og_func*, _stmt_vec_info*) (tree-vect-patterns.cc:6153) =3D=3D25396=3D=3D by 0x252C491: vect_pattern_recog(vec_info*) (tree-vect-patterns.cc:6310) =3D=3D25396=3D=3D by 0x165225B: vect_slp_analyze_bb_1 (tree-vect-slp.cc:= 7310) =3D=3D25396=3D=3D by 0x165225B: vect_slp_region(vec, vec, vec*, unsigned int, loop*) (tree-vect-slp.cc:7419) =3D=3D25396=3D=3D by 0x165450C: vect_slp_bbs(vec const&, loop*) (tree-vect-slp.cc:7610) =3D=3D25396=3D=3D by 0x1654786: vect_slp_function(function*) (tree-vect-= slp.cc:7698) =3D=3D25396=3D=3D by 0x165D3C1: (anonymous namespace)::pass_slp_vectorize::execute(function*) (tree-vectorizer.cc:1532) =3D=3D25396=3D=3D by 0x1294D1A: execute_one_pass(opt_pass*) (passes.cc:2= 644) =3D=3D25396=3D=3D by 0x129560F: execute_pass_list_1(opt_pass*) (passes.c= c:2753) =3D=3D25396=3D=3D by 0x1295621: execute_pass_list_1(opt_pass*) (passes.c= c:2754) =3D=3D25396=3D=3D by 0x1295621: execute_pass_list_1(opt_pass*) (passes.c= c:2754) =3D=3D25396=3D=3D by 0x1295648: execute_pass_list(function*, opt_pass*) (passes.cc:2764) =3D=3D25396=3D=3D Address 0x0 is not stack'd, malloc'd or (recently) free'd =3D=3D25396=3D=3D=20 during GIMPLE pass: slp testcase.c: In function 'foo': testcase.c:5:1: internal compiler error: Segmentation fault 5 | foo (V v) | ^~~ 0x139d00f crash_signal /repo/gcc-trunk/gcc/toplev.cc:314 0x2523a88 contains_struct_check(tree_node*, tree_node_structure_enum, char const*, int, char const*) /repo/gcc-trunk/gcc/tree.h:3641 0x2523a88 vect_recog_mask_conversion_pattern /repo/gcc-trunk/gcc/tree-vect-patterns.cc:4967 0x2524c98 vect_pattern_recog_1 /repo/gcc-trunk/gcc/tree-vect-patterns.cc:6153 0x252c491 vect_pattern_recog(vec_info*) /repo/gcc-trunk/gcc/tree-vect-patterns.cc:6310 0x165225b vect_slp_analyze_bb_1 /repo/gcc-trunk/gcc/tree-vect-slp.cc:7310 0x165225b vect_slp_region /repo/gcc-trunk/gcc/tree-vect-slp.cc:7419 0x165450c vect_slp_bbs /repo/gcc-trunk/gcc/tree-vect-slp.cc:7610 0x1654786 vect_slp_function(function*) /repo/gcc-trunk/gcc/tree-vect-slp.cc:7698 0x165d3c1 execute /repo/gcc-trunk/gcc/tree-vectorizer.cc:1532 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-r13-4468-20221202115005-= g76dd48f8956-checking-yes-rtl-df-extra-amd64/bin/../libexec/gcc/x86_64-pc-l= inux-gnu/13.0.0/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-r13-4468-20221202115005-g76dd48f89= 56-checking-yes-rtl-df-extra-amd64 Thread model: posix Supported LTO compression algorithms: zlib zstd gcc version 13.0.0 20221202 (experimental) (GCC)=