From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 55485393BC35; Tue, 28 Apr 2020 12:21:40 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 55485393BC35 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1588076500; bh=HiLAuHsmI2Hm685W/RDZA/AvbV//MrGRurqmNtELsqo=; h=From:To:Subject:Date:From; b=XwYXiDqF8i2Q6cYB5VMbnpC5lHpyPTjHQ7lfKDmxXQ0iJD1lSSmjgHelcnmU6Lum2 MtswrPL4Rry9IkGT3FMteEV9AImQ3ViERA1Xdey5Ua9NFOV8COzU0MzRzjP1MlScz3 Woogs+ljLQ8xQP1B8CEPusubTimAN+Sb+OYxM7NY= From: "asolokha at gmx dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug analyzer/94816] New: ICE: Segmentation fault (in ana::region_model::add_region_for_type) Date: Tue, 28 Apr 2020 12:21:40 +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: unknown 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 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: Tue, 28 Apr 2020 12:21:40 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D94816 Bug ID: 94816 Summary: ICE: Segmentation fault (in ana::region_model::add_region_for_type) Product: gcc Version: unknown 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: --- g++-10.0.1-alpha20200426 snapshot (g:29f55115583a0dab6cbac749c4f0804fd88e95= 36) ICEs when compiling the following testcase, reduced from gcc/testsuite/g++.dg/init/array51.C, w/ -O1 -fanalyzer: struct jr; struct ch { int jr::*rx; }; ch ad () { return ch (); } % g++-10.0.1 -O1 -fanalyzer -c noivoaih.C during IPA pass: analyzer noivoaih.C: In function 'ch ad()': noivoaih.C:10:14: internal compiler error: Segmentation fault 10 | return ch (); | ^ 0xfebacf crash_signal =20=20=20=20=20=20=20 /var/tmp/portage/sys-devel/gcc-10.0.1_alpha20200426/work/gcc-10-20200426/gc= c/toplev.c:328 0x136769e ana::region_model::add_region_for_type(ana::region_id, tree_node*, ana::region_model_context*) =20=20=20=20=20=20=20 /var/tmp/portage/sys-devel/gcc-10.0.1_alpha20200426/work/gcc-10-20200426/gc= c/analyzer/region-model.cc:6491 0x136d918 ana::map_region::get_or_create(ana::region_model*, ana::region_id, tree_node*, tree_node*, ana::region_model_context*) =20=20=20=20=20=20=20 /var/tmp/portage/sys-devel/gcc-10.0.1_alpha20200426/work/gcc-10-20200426/gc= c/analyzer/region-model.cc:1832 0x136ec2e ana::region_model::copy_struct_region(ana::region_id, ana::struct_region*, ana::struct_region*, ana::region_model_context*) =20=20=20=20=20=20=20 /var/tmp/portage/sys-devel/gcc-10.0.1_alpha20200426/work/gcc-10-20200426/gc= c/analyzer/region-model.cc:1304 0x134e9d1 ana::exploded_node::on_stmt(ana::exploded_graph&, ana::supernode const*, gimple const*, ana::program_state*, ana::state_change*) const =20=20=20=20=20=20=20 /var/tmp/portage/sys-devel/gcc-10.0.1_alpha20200426/work/gcc-10-20200426/gc= c/analyzer/engine.cc:1022 0x134f3e1 ana::exploded_graph::process_node(ana::exploded_node*) =20=20=20=20=20=20=20 /var/tmp/portage/sys-devel/gcc-10.0.1_alpha20200426/work/gcc-10-20200426/gc= c/analyzer/engine.cc:2530 0x134f8ca ana::exploded_graph::process_worklist() =20=20=20=20=20=20=20 /var/tmp/portage/sys-devel/gcc-10.0.1_alpha20200426/work/gcc-10-20200426/gc= c/analyzer/engine.cc:2348 0x134fffb ana::impl_run_checkers(ana::logger*) =20=20=20=20=20=20=20 /var/tmp/portage/sys-devel/gcc-10.0.1_alpha20200426/work/gcc-10-20200426/gc= c/analyzer/engine.cc:4029 0x1350bcc ana::run_checkers() =20=20=20=20=20=20=20 /var/tmp/portage/sys-devel/gcc-10.0.1_alpha20200426/work/gcc-10-20200426/gc= c/analyzer/engine.cc:4097 0x1345778 execute =20=20=20=20=20=20=20 /var/tmp/portage/sys-devel/gcc-10.0.1_alpha20200426/work/gcc-10-20200426/gc= c/analyzer/analyzer-pass.cc:84=