From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 53C973858003; Mon, 15 Jan 2024 12:00:49 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 53C973858003 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1705320049; bh=Kfpx+FICIVB1JYP2Oc5BdDl2GzEkKeIcK2QRj9qrWtY=; h=From:To:Subject:Date:From; b=b3W9xoiwMmzLE9vnHgHgnftnQ6j2YpxX2TkM7+X74kApHRtu/8mW0BFTtQR5sU7Q6 HOayA6BTypdlFqcuEw0CHJn5BSGJ3y5ZSorGliK+2th3mMVFE54/dtWacNqPyPyBOF 97McIQH7AS2vyK1V9ZdU3madxB+mMmHfJOb8jrPU= From: "zsojka at seznam dot cz" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/113397] New: [14 Regression] ICE: SIGSEGV in tree_check (tree.h:3611) with -fdump-ada-spec-slim on gcc.c-torture/execute/pr22061-2.c Date: Mon, 15 Jan 2024 12:00:47 +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: 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 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=3D113397 Bug ID: 113397 Summary: [14 Regression] ICE: SIGSEGV in tree_check (tree.h:3611) with -fdump-ada-spec-slim on gcc.c-torture/execute/pr22061-2.c Product: gcc Version: 14.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 This fails on the gcc.c-torture/execute/pr22061-2.c testcase with -fdump-ada-spec-slim Compiler output: $ x86_64-pc-linux-gnu-gcc -fdump-ada-spec-slim /repo/gcc-trunk/gcc/testsuite/gcc.c-torture/execute/pr22061-2.c -wrapper valgrind,-q =3D=3D1560=3D=3D Invalid read of size 2 =3D=3D1560=3D=3D at 0xF0BC45: tree_check (tree.h:3611) =3D=3D1560=3D=3D by 0xF0BC45: check_type_name_conflict(pretty_printer*, = tree_node*) (c-ada-spec.cc:1570) =3D=3D1560=3D=3D by 0xF0E692: dump_ada_function_declaration(pretty_print= er*, tree_node*, bool, bool, bool, int) (c-ada-spec.cc:1654) =3D=3D1560=3D=3D by 0xF0FFA3: dump_ada_declaration(pretty_printer*, tree= _node*, tree_node*, int) (c-ada-spec.cc:3135) =3D=3D1560=3D=3D by 0xF11859: dump_ada_nodes (c-ada-spec.cc:826) =3D=3D1560=3D=3D by 0xF11859: dump_ads (c-ada-spec.cc:3525) =3D=3D1560=3D=3D by 0xF11859: dump_ada_specs(void (*)(char const*), int (*)(tree_node*, cpp_operation)) (c-ada-spec.cc:3604) =3D=3D1560=3D=3D by 0xE0D6BF: c_parse_final_cleanups() (c-decl.cc:13416) =3D=3D1560=3D=3D by 0xEFAE00: c_common_parse_file() (c-opts.cc:1319) =3D=3D1560=3D=3D by 0x150D66D: compile_file() (toplev.cc:447) =3D=3D1560=3D=3D by 0xDE6B0B: do_compile (toplev.cc:2152) =3D=3D1560=3D=3D by 0xDE6B0B: toplev::main(int, char**) (toplev.cc:2308) =3D=3D1560=3D=3D by 0xDE82EA: main (main.cc:39) =3D=3D1560=3D=3D Address 0x0 is not stack'd, malloc'd or (recently) free'd =3D=3D1560=3D=3D=20 /repo/gcc-trunk/gcc/testsuite/gcc.c-torture/execute/pr22061-2.c:8:1: intern= al compiler error: Segmentation fault 8 | } | ^ 0x150d36f crash_signal /repo/gcc-trunk/gcc/toplev.cc:317 0xf0bc45 tree_check(tree_node*, char const*, int, char const*, tree_code) /repo/gcc-trunk/gcc/tree.h:3611 0xf0bc45 check_type_name_conflict /repo/gcc-trunk/gcc/c-family/c-ada-spec.cc:1570 0xf0e692 dump_ada_function_declaration /repo/gcc-trunk/gcc/c-family/c-ada-spec.cc:1654 0xf0ffa3 dump_ada_declaration /repo/gcc-trunk/gcc/c-family/c-ada-spec.cc:3135 0xf11859 dump_ada_nodes /repo/gcc-trunk/gcc/c-family/c-ada-spec.cc:826 0xf11859 dump_ads /repo/gcc-trunk/gcc/c-family/c-ada-spec.cc:3525 0xf11859 dump_ada_specs(void (*)(char const*), int (*)(tree_node*, cpp_operation)) /repo/gcc-trunk/gcc/c-family/c-ada-spec.cc:3604 0xe0d6bf c_parse_final_cleanups() /repo/gcc-trunk/gcc/c/c-decl.cc:13416 0xefae00 c_common_parse_file() /repo/gcc-trunk/gcc/c-family/c-opts.cc:1319 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-7239-20240115095837-= g8a1927856a1-checking-yes-rtl-df-extra-nobootstrap-amd64/bin/../libexec/gcc= /x86_64-pc-linux-gnu/14.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-r14-7239-20240115095837-g8a1927856= a1-checking-yes-rtl-df-extra-nobootstrap-amd64 Thread model: posix Supported LTO compression algorithms: zlib zstd gcc version 14.0.1 20240115 (experimental) (GCC)=