public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "zsojka at seznam dot cz" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/112807] New: ICE: SIGSEGV in contains_struct_check (tree.h:3747) with _BitInt() at -O1 and above Date: Fri, 01 Dec 2023 09:56:25 +0000 [thread overview] Message-ID: <bug-112807-4@http.gcc.gnu.org/bugzilla/> (raw) https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112807 Bug ID: 112807 Summary: ICE: SIGSEGV in contains_struct_check (tree.h:3747) with _BitInt() at -O1 and above 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 CC: jakub at gcc dot gnu.org Target Milestone: --- Host: x86_64-pc-linux-gnu Target: x86_64-pc-linux-gnu Created attachment 56751 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=56751&action=edit reduced testcase Compiler output: $ x86_64-pc-linux-gnu-gcc -O testcase.c -wrapper valgrind,-q ==11799== Invalid read of size 2 ==11799== at 0x253EF3F: contains_struct_check (tree.h:3747) ==11799== by 0x253EF3F: (anonymous namespace)::bitint_large_huge::lower_addsub_overflow(tree_node*, gimple*) (gimple-lower-bitint.cc:3951) ==11799== by 0x2543129: (anonymous namespace)::bitint_large_huge::lower_call(tree_node*, gimple*) (gimple-lower-bitint.cc:5039) ==11799== by 0x254D626: gimple_lower_bitint() (gimple-lower-bitint.cc:6386) ==11799== by 0x13A2D3A: execute_one_pass(opt_pass*) (passes.cc:2641) ==11799== by 0x13A361F: execute_pass_list_1(opt_pass*) (passes.cc:2750) ==11799== by 0x13A3631: execute_pass_list_1(opt_pass*) (passes.cc:2751) ==11799== by 0x13A3658: execute_pass_list(function*, opt_pass*) (passes.cc:2761) ==11799== by 0xFB0755: expand (cgraphunit.cc:1841) ==11799== by 0xFB0755: cgraph_node::expand() (cgraphunit.cc:1794) ==11799== by 0xFB1A9A: expand_all_functions (cgraphunit.cc:2024) ==11799== by 0xFB1A9A: symbol_table::compile() [clone .part.0] (cgraphunit.cc:2398) ==11799== by 0xFB4607: compile (cgraphunit.cc:2311) ==11799== by 0xFB4607: symbol_table::finalize_compilation_unit() (cgraphunit.cc:2583) ==11799== by 0x14E5F21: compile_file() (toplev.cc:473) ==11799== by 0xDD221B: do_compile (toplev.cc:2150) ==11799== by 0xDD221B: toplev::main(int, char**) (toplev.cc:2306) ==11799== Address 0x0 is not stack'd, malloc'd or (recently) free'd ==11799== during GIMPLE pass: bitintlower testcase.c: In function 'foo': testcase.c:2:1: internal compiler error: Segmentation fault 2 | foo (unsigned a, _BitInt (2) b, _BitInt (256) c) | ^~~ 0x14e5a3f crash_signal /repo/gcc-trunk/gcc/toplev.cc:316 0x253ef3f contains_struct_check(tree_node*, tree_node_structure_enum, char const*, int, char const*) /repo/gcc-trunk/gcc/tree.h:3747 0x253ef3f lower_addsub_overflow /repo/gcc-trunk/gcc/gimple-lower-bitint.cc:3951 0x2543129 lower_call /repo/gcc-trunk/gcc/gimple-lower-bitint.cc:5039 0x254d626 gimple_lower_bitint /repo/gcc-trunk/gcc/gimple-lower-bitint.cc:6386 Please submit a full bug report, with preprocessed source (by using -freport-bug). Please include the complete backtrace with any bug report. See <https://gcc.gnu.org/bugs/> for instructions. $ x86_64-pc-linux-gnu-gcc -v Using built-in specs. COLLECT_GCC=/repo/gcc-trunk/binary-latest-amd64/bin/x86_64-pc-linux-gnu-gcc COLLECT_LTO_WRAPPER=/repo/gcc-trunk/binary-trunk-r14-6048-20231201170246-g6563d6767ed-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=c,c++ --enable-valgrind-annotations --disable-nls --enable-checking=yes,rtl,df,extra --disable-bootstrap --with-cloog --with-ppl --with-isl --build=x86_64-pc-linux-gnu --host=x86_64-pc-linux-gnu --target=x86_64-pc-linux-gnu --with-ld=/usr/bin/x86_64-pc-linux-gnu-ld --with-as=/usr/bin/x86_64-pc-linux-gnu-as --disable-libstdcxx-pch --prefix=/repo/gcc-trunk//binary-trunk-r14-6048-20231201170246-g6563d6767ed-checking-yes-rtl-df-extra-nobootstrap-amd64 Thread model: posix Supported LTO compression algorithms: zlib zstd gcc version 14.0.0 20231201 (experimental) (GCC)
next reply other threads:[~2023-12-01 9:56 UTC|newest] Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top 2023-12-01 9:56 zsojka at seznam dot cz [this message] 2023-12-01 17:03 ` [Bug tree-optimization/112807] " jakub at gcc dot gnu.org 2023-12-01 17:52 ` jakub at gcc dot gnu.org 2023-12-03 16:54 ` cvs-commit at gcc dot gnu.org 2023-12-03 16:56 ` jakub at gcc dot gnu.org
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=bug-112807-4@http.gcc.gnu.org/bugzilla/ \ --to=gcc-bugzilla@gcc.gnu.org \ --cc=gcc-bugs@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).