From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 0BD713870840; Tue, 15 Dec 2020 17:17:18 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 0BD713870840 From: "gscfq@t-online.de" To: gcc-bugs@gcc.gnu.org Subject: [Bug analyzer/98293] New: [11 Regression] ICE in get_subregion_within_ctor, at analyzer/store.cc:494 Date: Tue, 15 Dec 2020 17:17:17 +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: gscfq@t-online.de 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: Tue, 15 Dec 2020 17:17:18 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D98293 Bug ID: 98293 Summary: [11 Regression] ICE in get_subregion_within_ctor, at analyzer/store.cc:494 Product: gcc Version: 11.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: analyzer Assignee: dmalcolm at gcc dot gnu.org Reporter: gscfq@t-online.de Target Milestone: --- Following options produce an ICE for several testsuite files, e.g. file pr93399.c (changed between 20201004 and 20201018) : $ gcc-10 -c pr93399.c -fanalyzer -fsanitize=3Dundefined $ $ gcc-11-20201213 -c pr93399.c -fanalyzer -fsanitize=3Dundefined during IPA pass: analyzer pr93399.c: In function 'main': pr93399.c:14:18: internal compiler error: Segmentation fault 14 | char *substr =3D strstr (argv[0], "\n"); | ^~~~~~~~~~~~~~~~~~~~~~ 0xb5028f crash_signal ../../gcc/toplev.c:327 0xe936f5 get_subregion_within_ctor ../../gcc/analyzer/store.cc:494 0xe98ef7 ana::binding_map::apply_ctor_pair_to_child_region(ana::region cons= t*, ana::region_model_manager*, tree_node*, tree_node*) ../../gcc/analyzer/store.cc:615 0xe99219 ana::binding_map::apply_ctor_to_region(ana::region const*, tree_no= de*, ana::region_model_manager*) ../../gcc/analyzer/store.cc:549 0xe990f0 ana::binding_map::apply_ctor_pair_to_child_region(ana::region cons= t*, ana::region_model_manager*, tree_node*, tree_node*) ../../gcc/analyzer/store.cc:617 0xe99219 ana::binding_map::apply_ctor_to_region(ana::region const*, tree_no= de*, ana::region_model_manager*) ../../gcc/analyzer/store.cc:549 0xe7361c ana::decl_region::get_svalue_for_constructor(tree_node*, ana::region_model_manager*) const ../../gcc/analyzer/region.cc:931 0xe7372a ana::decl_region::get_svalue_for_initializer(ana::region_model_manager*) co= nst ../../gcc/analyzer/region.cc:973 0xe75812 ana::region_model::get_initial_value_for_global(ana::region const*) const ../../gcc/analyzer/region-model.cc:1451 0xe8a4bc ana::reachable_regions::add(ana::region const*, bool) ../../gcc/analyzer/region-model-reachability.cc:137 0xe780c0 ana::region_model::handle_unrecognized_call(gcall const*, ana::region_model_context*) ../../gcc/analyzer/region-model.cc:967 0xe78382 ana::region_model::on_call_post(gcall const*, bool, ana::region_model_context*) ../../gcc/analyzer/region-model.cc:923 0xe5e3a4 ana::exploded_node::on_stmt(ana::exploded_graph&, ana::supernode const*, gimple const*, ana::program_state*) const ../../gcc/analyzer/engine.cc:1210 0xe603ae ana::exploded_graph::process_node(ana::exploded_node*) ../../gcc/analyzer/engine.cc:2948 0xe60a52 ana::exploded_graph::process_worklist() ../../gcc/analyzer/engine.cc:2573 0xe629e2 ana::impl_run_checkers(ana::logger*) ../../gcc/analyzer/engine.cc:4738 0xe6427d ana::run_checkers() ../../gcc/analyzer/engine.cc:4809 0xe57828 execute ../../gcc/analyzer/analyzer-pass.cc:87=