From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 1646E385B189; Sat, 26 Nov 2022 19:36:19 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 1646E385B189 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1669491379; bh=eQVe2eOiM20cR0B9+5mLs607KvXmxqhg5RBfCmJ+3ss=; h=From:To:Subject:Date:From; b=UqBCVU/4lFcqMyUk2im+eGkvz65038SfujXau0u18ZDTcg//apTK4you/GY3PlaLF ARiS58f6jSDbTOBK31/B+RcW+JKeZWtVMARiGUoYpkdEE72gCqfKZvLxE2OnK2rrzC fv7WNMPvryvjoySeCXT9U3XO5KfeydT8a/XqKDnI= From: "asolokha at gmx dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug analyzer/107882] New: [13 Regression] ICE in get_last_bit_offset, at analyzer/store.h:255 Date: Sat, 26 Nov 2022 19:36:18 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: analyzer X-Bugzilla-Version: 13.0 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: asolokha at gmx dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: dmalcolm 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 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=3D107882 Bug ID: 107882 Summary: [13 Regression] ICE in get_last_bit_offset, at analyzer/store.h:255 Product: gcc Version: 13.0 Status: UNCONFIRMED Keywords: ice-on-valid-code Severity: normal Priority: P3 Component: analyzer Assignee: dmalcolm at gcc dot gnu.org Reporter: asolokha at gmx dot com Target Milestone: --- gcc 13.0.0 20221120 snapshot (g:a16a5460447eaaff0b4468064e4d7b1cc8fc42eb) I= CEs when compiling the following testcase w/ -fanalyzer: void foo (int *x, int y) { int *a =3D x, *b =3D (int *) &a; __builtin_memcpy (b + 1, x, y); foo (a, 0); } % gcc-13 -fanalyzer -c umtf33bl.c during IPA pass: analyzer umtf33bl.c: In function 'foo': umtf33bl.c:7:3: internal compiler error: in get_last_bit_offset, at analyzer/store.h:255 7 | foo (a, 0); | ^~~~~~~~~~ 0x7bf2d1 ana::bit_range::get_last_bit_offset() const =20=20=20=20=20=20=20 /var/tmp/portage/sys-devel/gcc-13.0.0_p20221120/work/gcc-13-20221120/gcc/an= alyzer/store.h:255 0x7bf2d1 ana::bit_range::get_last_bit_offset() const =20=20=20=20=20=20=20 /var/tmp/portage/sys-devel/gcc-13.0.0_p20221120/work/gcc-13-20221120/gcc/an= alyzer/store.h:253 0x7bf2d1 ana::bit_range::contains_p(ana::bit_range const&, ana::bit_range*) const =20=20=20=20=20=20=20 /var/tmp/portage/sys-devel/gcc-13.0.0_p20221120/work/gcc-13-20221120/gcc/an= alyzer/store.cc:243 0x1326bff ana::binding_cluster::maybe_get_compound_binding(ana::store_manag= er*, ana::region const*) const =20=20=20=20=20=20=20 /var/tmp/portage/sys-devel/gcc-13.0.0_p20221120/work/gcc-13-20221120/gcc/an= alyzer/store.cc:1716 0x12ca6c6 ana::region_model::get_store_value(ana::region const*, ana::region_model_context*) const =20=20=20=20=20=20=20 /var/tmp/portage/sys-devel/gcc-13.0.0_p20221120/work/gcc-13-20221120/gcc/an= alyzer/region-model.cc:3158 0x12cae4c ana::region_model::get_rvalue(ana::path_var, ana::region_model_context*) const =20=20=20=20=20=20=20 /var/tmp/portage/sys-devel/gcc-13.0.0_p20221120/work/gcc-13-20221120/gcc/an= alyzer/region-model.cc:3052 0x12d1e97 ana::region_model::on_assignment(gassign const*, ana::region_model_context*) =20=20=20=20=20=20=20 /var/tmp/portage/sys-devel/gcc-13.0.0_p20221120/work/gcc-13-20221120/gcc/an= alyzer/region-model.cc:1093 0x12a34d4 ana::exploded_node::on_stmt(ana::exploded_graph&, ana::supernode const*, gimple const*, ana::program_state*, ana::uncertainty_t*, ana::path_context*) =20=20=20=20=20=20=20 /var/tmp/portage/sys-devel/gcc-13.0.0_p20221120/work/gcc-13-20221120/gcc/an= alyzer/engine.cc:1466 0x12a65c5 ana::exploded_graph::process_node(ana::exploded_node*) =20=20=20=20=20=20=20 /var/tmp/portage/sys-devel/gcc-13.0.0_p20221120/work/gcc-13-20221120/gcc/an= alyzer/engine.cc:4054 0x12a757a ana::exploded_graph::process_worklist() =20=20=20=20=20=20=20 /var/tmp/portage/sys-devel/gcc-13.0.0_p20221120/work/gcc-13-20221120/gcc/an= alyzer/engine.cc:3457 0x12a9d34 ana::impl_run_checkers(ana::logger*) =20=20=20=20=20=20=20 /var/tmp/portage/sys-devel/gcc-13.0.0_p20221120/work/gcc-13-20221120/gcc/an= alyzer/engine.cc:6110 0x12aad66 ana::run_checkers() =20=20=20=20=20=20=20 /var/tmp/portage/sys-devel/gcc-13.0.0_p20221120/work/gcc-13-20221120/gcc/an= alyzer/engine.cc:6198 0x1299578 execute =20=20=20=20=20=20=20 /var/tmp/portage/sys-devel/gcc-13.0.0_p20221120/work/gcc-13-20221120/gcc/an= alyzer/analyzer-pass.cc:87=