From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id B66973857B98; Mon, 21 Nov 2022 05:56:12 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org B66973857B98 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1669010173; bh=izJCawqeXnD1Xveik/kQry1xjxOSWCVkn48HKMc8k0Q=; h=From:To:Subject:Date:From; b=H1xuL2iOow0ujrppMrOgXTvTiCdX7lhCS7d0BNmv+QhIXCeEvGRmiDwWOI67rtfNO JU9KIp+1t2j/oMgzyrE0wLZTQCm4TlWA8qhHhRfTYZtz76wfDTbAB1cb6RBEBdT1DB hvyHJl1s1N+pxd3MlQYEMxdf8+qAVS3GConvB5fM= From: "asolokha at gmx dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug analyzer/107777] New: [13 Regression] ICE in get_representative_path_var_1, at analyzer/region-model.cc:4750 Date: Mon, 21 Nov 2022 05:55:30 +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=3D107777 Bug ID: 107777 Summary: [13 Regression] ICE in get_representative_path_var_1, at analyzer/region-model.cc:4750 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: int * __errno_location (void); long int read (int, void *, unsigned long int); struct IOBUF { int fd; }; void do_getline_end_data (struct IOBUF *iop, int tree) { char end_data; if (tree) *__errno_location () =3D 0; read (iop->fd, &end_data, sizeof end_data); } % gcc-13 -fanalyzer -c ofd9impz.c during IPA pass: analyzer ofd9impz.c: In function 'do_getline_end_data': ofd9impz.c:19:3: internal compiler error: in get_representative_path_var_1,= at analyzer/region-model.cc:4750 19 | read (iop->fd, &end_data, sizeof end_data); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 0x7bd41c ana::region_model::get_representative_path_var_1(ana::region const= *, hash_set= >*) 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:4750 0x12cbbd8 ana::region_model::get_representative_path_var(ana::region const*, hash_set= >*) 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:4896 0x131dc1f 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-13.0.0_p20221120/work/gcc-13-20221120/gcc/an= alyzer/store.cc:2111 0x131e7e8 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-13.0.0_p20221120/work/gcc-13-20221120/gcc/an= alyzer/store.cc:2987 0x12cb1a8 ana::region_model::get_representative_path_var_1(ana::svalue cons= t*, hash_set= >*) 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:4626 0x12cb501 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-13.0.0_p20221120/work/gcc-13-20221120/gcc/an= alyzer/region-model.cc:4693 0x12cb501 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-13.0.0_p20221120/work/gcc-13-20221120/gcc/an= alyzer/region-model.cc:4685 0x12cb501 ana::region_model::get_representative_tree(ana::svalue const*) co= nst =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:4712 0x12add04 ana::impl_sm_context::get_diagnostic_tree(tree_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:433 0x13089ef check_for_open_fd =20=20=20=20=20=20=20 /var/tmp/portage/sys-devel/gcc-13.0.0_p20221120/work/gcc-13-20221120/gcc/an= alyzer/sm-fd.cc:1550 0x1309cfc on_read =20=20=20=20=20=20=20 /var/tmp/portage/sys-devel/gcc-13.0.0_p20221120/work/gcc-13-20221120/gcc/an= alyzer/sm-fd.cc:1533 0x1309cfc on_stmt =20=20=20=20=20=20=20 /var/tmp/portage/sys-devel/gcc-13.0.0_p20221120/work/gcc-13-20221120/gcc/an= alyzer/sm-fd.cc:1246 0x12a590f 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:1485 0x12a8895 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 0x12a984a 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 0x12abfd4 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 0x12acfd6 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 0x129b8d8 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=