From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id DFE353851168; Tue, 6 Sep 2022 13:36:20 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org DFE353851168 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1662471380; bh=qcyvbG5Qlsimj0aFWzlPRtyhtQuplI475DtkTnbk1EM=; h=From:To:Subject:Date:In-Reply-To:References:From; b=KdFWmU0SR9JXl+x+dm8avGa9QDvIkVp3PYG3gJ6Ha+w28C8Y/NstTmkAi7eX3waQa 7n6x01vuBA2sYD2LORQ7+LDdEPe6z5ZTbW+8e8wU2s97dDXIpLBLwL5mZv2GwdUGIP Nps7VqJzdKM+mUhA0Oos3wBRnWBWgeU86f9VKYoE= From: "dmalcolm at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug analyzer/106845] [13 Regression] ICE in exceeds_p, at analyzer/store.cc:464 since r13-2029-g7e3b45befdbbf1a1 Date: Tue, 06 Sep 2022 13:36:20 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: analyzer X-Bugzilla-Version: 13.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: dmalcolm at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: dmalcolm at gcc dot gnu.org X-Bugzilla-Target-Milestone: 13.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: 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=3D106845 --- Comment #2 from David Malcolm --- Failing assertion here: #1 0x00000000014df116 in ana::byte_range::exceeds_p (this=3D0x7fffffffbf80, other=3D..., out_overhanging_byte_range=3D0x7fffffffbfc0) at ../../src/gcc/analyzer/store.cc:464 464 gcc_assert (size > 0); (gdb) list 459 { 460 /* THIS definitely exceeds OTHER. */ 461 byte_offset_t start =3D MAX (get_start_byte_offset (), 462 other.get_next_byte_offset ()); 463 byte_offset_t size =3D get_next_byte_offset () - start; 464 gcc_assert (size > 0); 465 out_overhanging_byte_range->m_start_byte_offset =3D start; 466 out_overhanging_byte_range->m_size_in_bytes =3D size; 467 return true; 468 } where "this" and "other" are both empty, having 0 size: (gdb) call this->dump() bytes 1-0 (gdb) call other.dump() bytes 0--1 due to the cst_capacity_tree in the region_model::check_region_bounds calle= r is zero.=