From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id D6F713858C20; Mon, 25 Dec 2023 11:09:29 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org D6F713858C20 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1703502569; bh=wafibNAH69taPIB38KLcbJIGEk9351gQvRbo049RJxk=; h=From:To:Subject:Date:From; b=vI9fUpS2xAqp9P226+eFYBo8GOL5Tqa/VeP7u5mEaV7O5D0sXd4oZoFZWtUm6ipXx AqcmLGs6dzD9d/VafCovXcRunInPULtdUPErV9mbpROQeNLwSlfHTHOnt+u86Q8b06 9vcZIJVsgmSyQg3b0QRPPeTv9JQ4GResvW0Eme+Q= From: "zsojka at seznam dot cz" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/113133] New: [14 Regression] ICE: SIGSEGV in mark_label_nuses(rtx_def*) (emit-rtl.cc:3896) with -O -fno-tree-ter -mavx512f -march=barcelona Date: Mon, 25 Dec 2023 11:09:27 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 14.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=3D113133 Bug ID: 113133 Summary: [14 Regression] ICE: SIGSEGV in mark_label_nuses(rtx_def*) (emit-rtl.cc:3896) with -O -fno-tree-ter -mavx512f -march=3Dbarcelona Product: gcc Version: 14.0 Status: UNCONFIRMED Keywords: ice-on-valid-code Severity: normal Priority: P3 Component: target 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 56931 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=3D56931&action=3Dedit reduced testcase I am observing these kind of SEGSEGV, -O -fno-tree-ter -mavx512f -march=3D"= some older amd64" seems to be the common set of flags. Up to try_split() seems t= o be the common backtrace. Compiler output: $ x86_64-pc-linux-gnu-gcc -O -fno-tree-ter -mavx512f -march=3Dbarcelona testcase.c -wrapper valgrind,-q =3D=3D3147=3D=3D Invalid read of size 1 =3D=3D3147=3D=3D at 0x1079841: mark_label_nuses(rtx_def*) (emit-rtl.cc:3= 896) =3D=3D3147=3D=3D by 0x10798C4: mark_label_nuses(rtx_def*) (emit-rtl.cc:3= 904) =3D=3D3147=3D=3D by 0x10798C4: mark_label_nuses(rtx_def*) (emit-rtl.cc:3= 904) =3D=3D3147=3D=3D by 0x10798C4: mark_label_nuses(rtx_def*) (emit-rtl.cc:3= 904) =3D=3D3147=3D=3D by 0x108057A: try_split(rtx_def*, rtx_insn*, int) (emit-rtl.cc:4093) =3D=3D3147=3D=3D by 0x144AB28: split_insn(rtx_insn*) (recog.cc:3405) =3D=3D3147=3D=3D by 0x14519C5: split_all_insns() (recog.cc:3509) =3D=3D3147=3D=3D by 0x1451AE8: (anonymous namespace)::pass_split_all_insns::execute(function*) (recog.cc:4433) =3D=3D3147=3D=3D by 0x13C9A6A: execute_one_pass(opt_pass*) (passes.cc:26= 46) =3D=3D3147=3D=3D by 0x13CA35F: execute_pass_list_1(opt_pass*) (passes.cc= :2755) =3D=3D3147=3D=3D by 0x13CA371: execute_pass_list_1(opt_pass*) (passes.cc= :2756) =3D=3D3147=3D=3D by 0x13CA371: execute_pass_list_1(opt_pass*) (passes.cc= :2756) =3D=3D3147=3D=3D Address 0x2 is not stack'd, malloc'd or (recently) free'd =3D=3D3147=3D=3D=20 during RTL pass: split2 testcase.c: In function 'foo0': testcase.c:68:1: internal compiler error: Segmentation fault 68 | } | ^ 0x150b4af crash_signal /repo/gcc-trunk/gcc/toplev.cc:316 0x1079841 mark_label_nuses /repo/gcc-trunk/gcc/emit-rtl.cc:3896 0x10798c4 mark_label_nuses /repo/gcc-trunk/gcc/emit-rtl.cc:3904 0x10798c4 mark_label_nuses /repo/gcc-trunk/gcc/emit-rtl.cc:3904 0x10798c4 mark_label_nuses /repo/gcc-trunk/gcc/emit-rtl.cc:3904 0x108057a try_split(rtx_def*, rtx_insn*, int) /repo/gcc-trunk/gcc/emit-rtl.cc:4093 0x144ab28 split_insn /repo/gcc-trunk/gcc/recog.cc:3405 0x14519c5 split_all_insns() /repo/gcc-trunk/gcc/recog.cc:3509 0x1451ae8 execute /repo/gcc-trunk/gcc/recog.cc:4433 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-r14-6825-20231224193009-= ga657c7e3518-checking-yes-rtl-df-extra-nobootstrap-amd64/bin/../libexec/gcc= /x86_64-pc-linux-gnu/14.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 --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-r14-6825-20231224193009-ga657c7e35= 18-checking-yes-rtl-df-extra-nobootstrap-amd64 Thread model: posix Supported LTO compression algorithms: zlib zstd gcc version 14.0.0 20231224 (experimental) (GCC)=