https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98293
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: gs...@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=undefined $ $ gcc-11-20201213 -c pr93399.c -fanalyzer -fsanitize=undefined during IPA pass: analyzer pr93399.c: In function 'main': pr93399.c:14:18: internal compiler error: Segmentation fault 14 | char *substr = 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 const*, 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_node*, ana::region_model_manager*) ../../gcc/analyzer/store.cc:549 0xe990f0 ana::binding_map::apply_ctor_pair_to_child_region(ana::region const*, 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_node*, 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*) const ../../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