From: Mark Wielaard Date: Mon, 21 Feb 2011 15:58:26 +0000 (+0100) Subject: Workaround weird (buggy) self referential DW_AT_containing_type case. X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=2664290538c387bca3b8f05d3e3f8a8894aa5958;p=thirdparty%2Felfutils.git Workaround weird (buggy) self referential DW_AT_containing_type case. https://fedorahosted.org/pipermail/elfutils-devel/2011-February/001792.html --- diff --git a/libdw/c++/dwarf_output b/libdw/c++/dwarf_output index 1f756f69d..aeb192c4d 100644 --- a/libdw/c++/dwarf_output +++ b/libdw/c++/dwarf_output @@ -1401,7 +1401,15 @@ namespace elfutils const entry *ref = dynamic_cast (it->second._m_value); if (ref != NULL) - attr_rhashes ^= ref->get_reference_hash (stack); + { + // Workaround weird case (bug?) + // https://fedorahosted.org/pipermail/elfutils-devel/2011-February/001792.html + if (it->first == DW_AT_containing_type + && ref->_m_pending == this) + continue; + else + attr_rhashes ^= ref->get_reference_hash (stack); + } } subr::hash_combine (rhash, attr_rhashes);