From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 9F1F33858D37; Mon, 17 Aug 2020 03:52:34 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 9F1F33858D37 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1597636354; bh=pzE5reEjVMRcO80WUyqnlQIsMVrzIW/TcA7UWftR6+A=; h=From:To:Subject:Date:From; b=FbjFIcV7n4A7oLBpFkQjQGLkVporF02X6krjUBortbkVWESUAMSeL7/h0cafMJgZz NhKoP7xcKqX8yXpw/UlFeExlGLMplJG7KX9+vgS8DKC0VpDVrFHUuoa1WMzWT0z1xw RWMZpnsef7kf0TNAgYkYwQfjzvk8sXSSmc9qsHmA= From: "asolokha at gmx dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug analyzer/96639] New: [11 Regression] ICE: Segmentation fault (in useless_type_conversion_p) Date: Mon, 17 Aug 2020 03:52:34 +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: 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 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, 17 Aug 2020 03:52:34 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D96639 Bug ID: 96639 Summary: [11 Regression] ICE: Segmentation fault (in useless_type_conversion_p) Product: gcc Version: 11.0 Status: UNCONFIRMED 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-alpha20200816 snapshot (g:c99116aeeb9644ebddec653ee8b19de4d38b65= bd) ICEs when compiling the following testcase w/ -fanalyzer: void * calloc (__SIZE_TYPE__, __SIZE_TYPE__); int x7 (void) { int **md =3D calloc (1, 1); return md[0][0]; } % gcc-11.0.0 -fanalyzer -c at88dqtc.c during IPA pass: analyzer at88dqtc.c: In function 'x7': at88dqtc.c:9:15: internal compiler error: Segmentation fault 9 | return md[0][0]; | ~~~~~^~~ 0xd7da1f crash_signal =20=20=20=20=20=20=20 /var/tmp/portage/sys-devel/gcc-11.0.0_alpha20200816/work/gcc-11-20200816/gc= c/toplev.c:327 0xab1798 useless_type_conversion_p(tree_node*, tree_node*) =20=20=20=20=20=20=20 /var/tmp/portage/sys-devel/gcc-11.0.0_alpha20200816/work/gcc-11-20200816/gc= c/gimple-expr.c:71 0x1108dce types_compatible_p =20=20=20=20=20=20=20 /var/tmp/portage/sys-devel/gcc-11.0.0_alpha20200816/work/gcc-11-20200816/gc= c/gimple-expr.h:67 0x1108dce ana::region::get_subregions_for_binding(ana::region_model_manager= *, generic_wide_int >, generic_wide_int >, tree_node*, auto_vec*) const =20=20=20=20=20=20=20 /var/tmp/portage/sys-devel/gcc-11.0.0_alpha20200816/work/gcc-11-20200816/gc= c/analyzer/region.cc:262 0x113822c ana::binding_cluster::get_representative_path_vars(ana::region_mo= del const*, hash_set >*, ana::region const*, ana::svalue const*, auto_vec*) const =20=20=20=20=20=20=20 /var/tmp/portage/sys-devel/gcc-11.0.0_alpha20200816/work/gcc-11-20200816/gc= c/analyzer/store.cc:1121 0x11392e7 ana::store::get_representative_path_vars(ana::region_model const*, hash_set= >*, ana::svalue const*, auto_vec*) const =20=20=20=20=20=20=20 /var/tmp/portage/sys-devel/gcc-11.0.0_alpha20200816/work/gcc-11-20200816/gc= c/analyzer/store.cc:1805 0x110dc5d ana::region_model::get_representative_path_var(ana::svalue const*, hash_set= >*) const =20=20=20=20=20=20=20 /var/tmp/portage/sys-devel/gcc-11.0.0_alpha20200816/work/gcc-11-20200816/gc= c/analyzer/region-model.cc:1806 0x110e3a7 ana::region_model::get_representative_tree(ana::svalue const*) co= nst =20=20=20=20=20=20=20 /var/tmp/portage/sys-devel/gcc-11.0.0_alpha20200816/work/gcc-11-20200816/gc= c/analyzer/region-model.cc:1851 0x10f8474 ana::impl_sm_context::get_diagnostic_tree(tree_node*) =20=20=20=20=20=20=20 /var/tmp/portage/sys-devel/gcc-11.0.0_alpha20200816/work/gcc-11-20200816/gc= c/analyzer/engine.cc:295 0x11320df on_stmt =20=20=20=20=20=20=20 /var/tmp/portage/sys-devel/gcc-11.0.0_alpha20200816/work/gcc-11-20200816/gc= c/analyzer/sm-malloc.cc:805 0x10f318f 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_alpha20200816/work/gcc-11-20200816/gc= c/analyzer/engine.cc:1098 0x10f426d ana::exploded_graph::process_node(ana::exploded_node*) =20=20=20=20=20=20=20 /var/tmp/portage/sys-devel/gcc-11.0.0_alpha20200816/work/gcc-11-20200816/gc= c/analyzer/engine.cc:2526 0x10f4d5a ana::exploded_graph::process_worklist() =20=20=20=20=20=20=20 /var/tmp/portage/sys-devel/gcc-11.0.0_alpha20200816/work/gcc-11-20200816/gc= c/analyzer/engine.cc:2341 0x10f6e8f ana::impl_run_checkers(ana::logger*) =20=20=20=20=20=20=20 /var/tmp/portage/sys-devel/gcc-11.0.0_alpha20200816/work/gcc-11-20200816/gc= c/analyzer/engine.cc:4107 0x10f7aac ana::run_checkers() =20=20=20=20=20=20=20 /var/tmp/portage/sys-devel/gcc-11.0.0_alpha20200816/work/gcc-11-20200816/gc= c/analyzer/engine.cc:4175 0x10ec468 execute =20=20=20=20=20=20=20 /var/tmp/portage/sys-devel/gcc-11.0.0_alpha20200816/work/gcc-11-20200816/gc= c/analyzer/analyzer-pass.cc:84=