From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 7D2163858C24; Fri, 5 Apr 2024 04:19:51 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 7D2163858C24 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1712290791; bh=EBv7dFvHBGdARaec2B4uN9wJQ6mIEJOl+zESnzcPfus=; h=From:To:Subject:Date:From; b=o6yEcWrg7ScURePnlghhLQwRrtMfzampBbtpegro/VL4PjnxhylThemGJipZ88DjH UPgPjA/icyligRnrm37PXQ4l1uJoZiERP9jhXMHvHelD/UyiEChFlL968Kt+D+NkuA JfC5/qcs91Xe8CZeusTsPHCYQw7XSYKFbq3H/Zdc= From: "zsojka at seznam dot cz" To: gcc-bugs@gcc.gnu.org Subject: [Bug ipa/114599] New: ICE: SIGSEGV in bitmap_set_bit(bitmap_head*, int) (bitmap.cc:975) with -O2 -fcondition-coverage Date: Fri, 05 Apr 2024 04:19:50 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: ipa 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=3D114599 Bug ID: 114599 Summary: ICE: SIGSEGV in bitmap_set_bit(bitmap_head*, int) (bitmap.cc:975) with -O2 -fcondition-coverage Product: gcc Version: 14.0 Status: UNCONFIRMED Keywords: ice-on-valid-code Severity: normal Priority: P3 Component: ipa 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 57884 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=3D57884&action=3Dedit reduced testcase Compiler output: $ x86_64-pc-linux-gnu-gcc -O2 -fcondition-coverage testcase.c -wrapper valgrind,-q =3D=3D26792=3D=3D Invalid write of size 4 =3D=3D26792=3D=3D at 0xF3D16E: bitmap_set_bit(bitmap_head*, int) (bitmap= .cc:975) =3D=3D26792=3D=3D by 0xFB61F3: symtab_node::check_ifunc_callee_symtab_no= des() (symtab.cc:1449) =3D=3D26792=3D=3D by 0xFCF454: symbol_table::compile() [clone .part.0] (cgraphunit.cc:2320) =3D=3D26792=3D=3D by 0xFD2797: compile (cgraphunit.cc:2315) =3D=3D26792=3D=3D by 0xFD2797: symbol_table::finalize_compilation_unit() (cgraphunit.cc:2589) =3D=3D26792=3D=3D by 0x1513631: compile_file() (toplev.cc:476) =3D=3D26792=3D=3D by 0xDE845B: do_compile (toplev.cc:2154) =3D=3D26792=3D=3D by 0xDE845B: toplev::main(int, char**) (toplev.cc:2310) =3D=3D26792=3D=3D by 0xDE9C3A: main (main.cc:39) =3D=3D26792=3D=3D Address 0x527a330 is 32 bytes inside a block of size 65,= 536 alloc'd =3D=3D26792=3D=3D at 0x483E804: malloc (vg_replace_malloc.c:442) =3D=3D26792=3D=3D by 0x2AA5B4B: xmalloc (xmalloc.c:149) =3D=3D26792=3D=3D by 0x2AA2384: call_chunkfun (obstack.c:94) =3D=3D26792=3D=3D by 0x2AA2384: _obstack_begin_worker (obstack.c:141) =3D=3D26792=3D=3D by 0xFD0EDE: analyze_functions(bool) (cgraphunit.cc:11= 72) =3D=3D26792=3D=3D by 0xFD272D: symbol_table::finalize_compilation_unit() (cgraphunit.cc:2560) =3D=3D26792=3D=3D by 0x1513631: compile_file() (toplev.cc:476) =3D=3D26792=3D=3D by 0xDE845B: do_compile (toplev.cc:2154) =3D=3D26792=3D=3D by 0xDE845B: toplev::main(int, char**) (toplev.cc:2310) =3D=3D26792=3D=3D by 0xDE9C3A: main (main.cc:39) ... during IPA pass: profile testcase.c: In function 'do_all_fn_LHASH_DOALL_ARG_arg2': testcase.c:16:1: internal compiler error: Segmentation fault 16 | } | ^ 0x151314f crash_signal /repo/gcc-trunk/gcc/toplev.cc:319 0x15fba9a hash_table_mod1(unsigned int, unsigned int) /repo/gcc-trunk/gcc/hash-table.h:344 0x15fba9a hash_table, unsigned int> >::hash_en= try, false, xcallocator>::find_with_hash(gcond* const&, unsigned int) /repo/gcc-trunk/gcc/hash-table.h:985 0x15f9c9b hash_map, unsigned int> >::get(gco= nd* const&) /repo/gcc-trunk/gcc/hash-map.h:191 0x15f9c9b condition_uid /repo/gcc-trunk/gcc/tree-profile.cc:370 0x15f9c9b find_conditions(function*) /repo/gcc-trunk/gcc/tree-profile.cc:877 0x140dc23 branch_prob(bool) /repo/gcc-trunk/gcc/profile.cc:1549 0x15f92f4 tree_profiling /repo/gcc-trunk/gcc/tree-profile.cc:1917 0x15f92f4 execute /repo/gcc-trunk/gcc/tree-profile.cc:2046 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-9799-20240405035546-= g4c8b3600c48-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 --enable-libsanitizer --disable-libstdcxx-pch --prefix=3D/repo/gcc-trunk//binary-trunk-r14-9799-20240405035546-g4c8b3600c= 48-checking-yes-rtl-df-extra-nobootstrap-amd64 Thread model: posix Supported LTO compression algorithms: zlib zstd gcc version 14.0.1 20240405 (experimental) (GCC)=