https://gcc.gnu.org/bugzilla/show_bug.cgi?id=125699
--- Comment #2 from Drea Pinski <pinskia at gcc dot gnu.org> --- ==2182063== Invalid read of size 8 ==2182063== at 0x1027CD5: hash_map<tree_node*, tree_node*, simple_hashmap_traits<default_hash_traits<tree_node*>, tree_node*> >::put(tree_node* const&, tree_node* const&) [clone .isra.0] (hash-map.h:176) ==2182063== by 0x1028957: ipa_param_body_adjustments::prepare_debug_expressions(tree_node*) (ipa-param-manipulation.cc:1390) ==2182063== by 0x102897A: ipa_param_body_adjustments::prepare_debug_expressions(tree_node*) (ipa-param-manipulation.cc:1401) ==2182063== by 0x102897A: ipa_param_body_adjustments::prepare_debug_expressions(tree_node*) (ipa-param-manipulation.cc:1401) ==2182063== by 0x102897A: ipa_param_body_adjustments::prepare_debug_expressions(tree_node*) (ipa-param-manipulation.cc:1401) ==2182063== by 0x102897A: ipa_param_body_adjustments::prepare_debug_expressions(tree_node*) (ipa-param-manipulation.cc:1401) ==2182063== by 0x10298B9: ipa_param_body_adjustments::common_initialization(tree_node*, tree_node**, vec<ipa_replace_map*, va_gc, vl_embed>*) (ipa-param-manipulation.cc:1668) ==2182063== by 0x1370A85: tree_function_versioning(tree_node*, tree_node*, vec<ipa_replace_map*, va_gc, vl_embed>*, ipa_param_adjustments*, bool, bitmap_head*, basic_block_def*) (tree-inline.cc:6459) ==2182063== by 0xCE1A68: cgraph_node::materialize_clone() (cgraphclones.cc:1249) ==2182063== by 0xCCDD3D: cgraph_node::get_untransformed_body() (cgraph.cc:4601) ==2182063== by 0xFD8E97: maybe_materialize_called_clones(cgraph_node*) [clone .isra.0] (ipa-inline-transform.cc:790) ==2182063== by 0xFDB91B: inline_transform(cgraph_node*) (ipa-inline-transform.cc:848) ==2182063== Address 0x5a96068 is 56 bytes inside a block of size 208 free'd ==2182063== at 0x4849B2C: free (vg_replace_malloc.c:985) ==2182063== by 0x1027CFC: find_slot_with_hash (hash-table.h:1040) ==2182063== by 0x1027CFC: hash_map<tree_node*, tree_node*, simple_hashmap_traits<default_hash_traits<tree_node*>, tree_node*> >::put(tree_node* const&, tree_node* const&) [clone .isra.0] (hash-map.h:170) ==2182063== by 0x1028957: ipa_param_body_adjustments::prepare_debug_expressions(tree_node*) (ipa-param-manipulation.cc:1390) ==2182063== by 0x102897A: ipa_param_body_adjustments::prepare_debug_expressions(tree_node*) (ipa-param-manipulation.cc:1401) ==2182063== by 0x102897A: ipa_param_body_adjustments::prepare_debug_expressions(tree_node*) (ipa-param-manipulation.cc:1401) ==2182063== by 0x102897A: ipa_param_body_adjustments::prepare_debug_expressions(tree_node*) (ipa-param-manipulation.cc:1401) ==2182063== by 0x102897A: ipa_param_body_adjustments::prepare_debug_expressions(tree_node*) (ipa-param-manipulation.cc:1401) ==2182063== by 0x10298B9: ipa_param_body_adjustments::common_initialization(tree_node*, tree_node**, vec<ipa_replace_map*, va_gc, vl_embed>*) (ipa-param-manipulation.cc:1668) ==2182063== by 0x1370A85: tree_function_versioning(tree_node*, tree_node*, vec<ipa_replace_map*, va_gc, vl_embed>*, ipa_param_adjustments*, bool, bitmap_head*, basic_block_def*) (tree-inline.cc:6459) ==2182063== by 0xCE1A68: cgraph_node::materialize_clone() (cgraphclones.cc:1249) ==2182063== by 0xCCDD3D: cgraph_node::get_untransformed_body() (cgraph.cc:4601) ==2182063== by 0xFD8E97: maybe_materialize_called_clones(cgraph_node*) [clone .isra.0] (ipa-inline-transform.cc:790) ==2182063== Block was alloc'd at ==2182063== at 0x484DF70: calloc (vg_replace_malloc.c:1595) ==2182063== by 0x29A36B4: xcalloc (xmalloc.c:164) ==2182063== by 0x102FA05: data_alloc (hash-table.h:275) ==2182063== by 0x102FA05: alloc_entries (hash-table.h:765) ==2182063== by 0x102FA05: hash_table<hash_map<tree_node*, tree_node*, simple_hashmap_traits<default_hash_traits<tree_node*>, tree_node*> >::hash_entry, false, xcallocator>::hash_table(unsigned long, bool, bool, bool, mem_alloc_origin) (hash-table.h:673) ==2182063== by 0x102A712: hash_map (hash-map.h:142) ==2182063== by 0x102A712: ipa_param_body_adjustments::ipa_param_body_adjustments(ipa_param_adjustments*, tree_node*, tree_node*, copy_body_data*, tree_node**, vec<ipa_replace_map*, va_gc, vl_embed>*) (ipa-param-manipulation.cc:1724) ==2182063== by 0x1370A85: tree_function_versioning(tree_node*, tree_node*, vec<ipa_replace_map*, va_gc, vl_embed>*, ipa_param_adjustments*, bool, bitmap_head*, basic_block_def*) (tree-inline.cc:6459) ==2182063== by 0xCE1A68: cgraph_node::materialize_clone() (cgraphclones.cc:1249) ==2182063== by 0xCCDD3D: cgraph_node::get_untransformed_body() (cgraph.cc:4601) ==2182063== by 0xFD8E97: maybe_materialize_called_clones(cgraph_node*) [clone .isra.0] (ipa-inline-transform.cc:790) ==2182063== by 0xFDB91B: inline_transform(cgraph_node*) (ipa-inline-transform.cc:848) ==2182063== by 0x118185D: execute_one_ipa_transform_pass (passes.cc:2327) ==2182063== by 0x118185D: execute_all_ipa_transforms(bool) (passes.cc:2390) ==2182063== by 0xCDB18D: expand (cgraphunit.cc:1867) ==2182063== by 0xCDB18D: cgraph_node::expand() (cgraphunit.cc:1827) ==2182063== by 0xCDD1FA: expand_all_functions (cgraphunit.cc:2057) ==2182063== by 0xCDD1FA: symbol_table::compile() [clone .part.0] (cgraphunit.cc:2435)
