From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id AB8D63857C5B; Mon, 21 Sep 2020 04:41:02 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org AB8D63857C5B DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1600663262; bh=uMRbYa0mam1PjEzHpgMeG/iPriSqxIgeei128FId/0w=; h=From:To:Subject:Date:From; b=xW9u2V+qVlsjWIx6h8EiH7NS6kxwPvPkF7nT9dblMUY+iDCvKbktuBH0jKtEA0SiV JPx3SzdQb0zV/VtEShwO61eGYnT1E4x3lJL41fo47mnP+0a7mQYdt0zbqveoZagkNb GXa6ZJewOb92LhnadzZrgGVlOKg8lMvCYY8IQbA4= From: "asolokha at gmx dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug analyzer/97130] New: [11 Regression] ICE in deref_rvalue, at analyzer/region-model.cc:1462 Date: Mon, 21 Sep 2020 04:41:02 +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: 11.0 X-Bugzilla-Keywords: ice-on-invalid-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 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 21 Sep 2020 04:41:02 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D97130 Bug ID: 97130 Summary: [11 Regression] ICE in deref_rvalue, at analyzer/region-model.cc:1462 Product: gcc Version: 11.0 Status: UNCONFIRMED Keywords: ice-on-invalid-code Severity: normal Priority: P3 Component: analyzer Assignee: dmalcolm at gcc dot gnu.org Reporter: asolokha at gmx dot com Target Milestone: --- gcc-11.0.0-alpha20200920 snapshot (g:363e7755f227656684c8e284307ceee451503c= a4) ICEs when compiling the following testcase w/ -fanalyzer: void * memset (int, int, __SIZE_TYPE__); void mp (int xl) { memset (xl, 0, sizeof xl); } % gcc-11.0.0 -fanalyzer -w -c oxnsb1da.c during IPA pass: analyzer oxnsb1da.c: In function 'mp': oxnsb1da.c:7:3: internal compiler error: in deref_rvalue, at analyzer/region-model.cc:1462 7 | memset (xl, 0, sizeof xl); | ^~~~~~~~~~~~~~~~~~~~~~~~~ 0x7335ac ana::region_model::deref_rvalue(ana::svalue const*, tree_node*, ana::region_model_context*) =20=20=20=20=20=20=20 /var/tmp/portage/sys-devel/gcc-11.0.0_alpha20200920/work/gcc-11-20200920/gc= c/analyzer/region-model.cc:1462 0x114a98e ana::region_model::impl_call_memset(ana::call_details const&) =20=20=20=20=20=20=20 /var/tmp/portage/sys-devel/gcc-11.0.0_alpha20200920/work/gcc-11-20200920/gc= c/analyzer/region-model-impl-calls.cc:312 0x114092d ana::region_model::on_call_pre(gcall const*, ana::region_model_context*) =20=20=20=20=20=20=20 /var/tmp/portage/sys-devel/gcc-11.0.0_alpha20200920/work/gcc-11-20200920/gc= c/analyzer/region-model.cc:742 0x111dfc4 ana::exploded_node::on_stmt(ana::exploded_graph&, ana::supernode const*, gimple const*, ana::program_state*) const =20=20=20=20=20=20=20 /var/tmp/portage/sys-devel/gcc-11.0.0_alpha20200920/work/gcc-11-20200920/gc= c/analyzer/engine.cc:1084 0x111fa7d ana::exploded_graph::process_node(ana::exploded_node*) =20=20=20=20=20=20=20 /var/tmp/portage/sys-devel/gcc-11.0.0_alpha20200920/work/gcc-11-20200920/gc= c/analyzer/engine.cc:2724 0x112055a ana::exploded_graph::process_worklist() =20=20=20=20=20=20=20 /var/tmp/portage/sys-devel/gcc-11.0.0_alpha20200920/work/gcc-11-20200920/gc= c/analyzer/engine.cc:2359 0x112265f ana::impl_run_checkers(ana::logger*) =20=20=20=20=20=20=20 /var/tmp/portage/sys-devel/gcc-11.0.0_alpha20200920/work/gcc-11-20200920/gc= c/analyzer/engine.cc:4310 0x112327c ana::run_checkers() =20=20=20=20=20=20=20 /var/tmp/portage/sys-devel/gcc-11.0.0_alpha20200920/work/gcc-11-20200920/gc= c/analyzer/engine.cc:4378 0x1117038 execute =20=20=20=20=20=20=20 /var/tmp/portage/sys-devel/gcc-11.0.0_alpha20200920/work/gcc-11-20200920/gc= c/analyzer/analyzer-pass.cc:84 The failing assert was introduced in g:35e3f0829d8e9cdc7ea19917c9f3a7add3f14847.=