From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 048ED385E447; Wed, 14 Jul 2021 08:52:13 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 048ED385E447 From: "gprocida at google dot com" To: libabigail@sourceware.org Subject: [Bug default/28013] abidiff assertion failure Date: Wed, 14 Jul 2021 08:52:13 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: libabigail X-Bugzilla-Component: default X-Bugzilla-Version: unspecified X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: gprocida at google dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: dodji at redhat dot com X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: libabigail@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Mailing list of the Libabigail project List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 14 Jul 2021 08:52:14 -0000 https://sourceware.org/bugzilla/show_bug.cgi?id=3D28013 --- Comment #2 from gprocida at google dot com --- Looks like it might be a canonicalisation issue with variadic function parameters. #0 __GI_raise (sig=3Dsig@entry=3D6) at ../sysdeps/unix/sysv/linux/raise.c:= 50 #1 0x00007ffff798d537 in __GI_abort () at abort.c:79 #2 0x00007ffff798d40f in __assert_fail_base (fmt=3D0x7ffff7af6128 "%s%s%s:= %u: %s%sAssertion `%s' failed.\n%n", assertion=3D0x55555575e725 "__abg_cond__", file=3D0x55555575e711 "../../src/abg-ir.cc", line=3D24781, function=3D) at assert.c:92 #3 0x00007ffff799c662 in __GI___assert_fail (assertion=3Dassertion@entry=3D0x55555575e725 "__abg_cond__", file=3Dfile@entry=3D0x55555575e711 "../../src/abg-ir.cc", line=3Dline@entry= =3D24781,=20 function=3Dfunction@entry=3D0x55555575f0e0 "size_t abigail::ir::hash_as_canonical_type_or_constant(const abigail::ir::type_base*)") at assert.c:101 #4 0x0000555555587888 in abigail::ir::hash_as_canonical_type_or_constant (t=3D0x5555558358e0) at ../../src/abg-ir.cc:24781 #5 0x000055555558c783 in abigail::ir::hash_type (t=3D) at ../../src/abg-ir.cc:24728 #6 0x000055555559dd01 in abigail::ir::hash_type_or_decl (tod=3D0x555555835= 8b8) at ../../src/abg-ir.cc:24655 #7 0x000055555559e22b in abigail::ir::hash_type_or_decl (tod=3Dstd::shared_ptr (use count 13,= weak count 1) =3D {...}) at /usr/include/c++/10/bits/shared_ptr_base.h:1324 #8 0x000055555563f7f0 in abigail::comparison::types_or_decls_hash::operato= r() (d=3D{...}, this=3D0x55555581f838) at ../../src/abg-comparison-priv.h:61 #9=20 std::__detail::_Hash_code_base const, std::shared_ptr const>, std::pair const, std::shared_ptr con st> const, std::shared_ptr >, std::__detail::_Select1st, abigail::comparison::types_or_decls_hash, std::__detail::_Mod_range_hashing, std::__detail::_Default_ranged_hash, true>::_M_hash_code (__k=3D{...}, this=3D0x55555581f838) at /usr/include/c++/10/bits/hashtable_policy.h:1379 #10 std::_Hashtable const, std::shared_ptr const>, std::pair const, std::shared_ptr const> const, std: :shared_ptr >, std::allocator const, std::shared_ptr const> const, std::shared_ptr > >, std::__detail::_Select1st, abigail::comp arison::types_or_decls_equal, abigail::comparison::types_or_decls_hash, std::__detail::_Mod_range_hashing, std::__detail::_Default_ranged_hash, std::__detail::_Prime_rehash_policy, std::__detail::_Hashtable_traits >::find (this=3D0x55555581f838, __k=3D{...}) at /usr/include/c++/10/bits/hashtable.h:1452 #11 0x0000555555613829 in std::unordered_map const, std::shared_ptr const>, std::shared_ptr, abigail::comparison::types_or_decls_hash, abigail::comparison::types_or_ decls_equal, std::allocator const, std::shared_ptr const> const, std::shared_ptr > > >::find (__x=3D{...}, this=3D) at /usr/include/c++/10/bits/unordered_map.h:919 #12 abigail::comparison::diff_context::has_diff_for (this=3D, first=3Dstd::shared_ptr (use count 17= , weak count 8) =3D {...}, second=3Dstd::shared_ptr (use count 13, weak count 1) =3D {...}) at ../../src/abg-comparison.cc:993 #13 0x0000555555613cf9 in abigail::comparison::diff_context::get_canonical_diff_for (this=3Dthis@entry=3D0x5555558037f0, first=3Dstd::shared_ptr (use count 17, weak count 8) =3D {...},=20 second=3Dstd::shared_ptr (use cou= nt 13, weak count 1) =3D {...}) at /usr/include/c++/10/ext/atomicity.h:100 #14 0x000055555561a992 in abigail::comparison::diff_context::set_or_get_canonical_diff_for (this=3Dthis@entry=3D0x5555558037f0, first=3Dstd::shared_ptr (use count 17, weak count 8) =3D {...},=20 second=3Dstd::shared_ptr (use cou= nt 13, weak count 1) =3D {...}, canonical_diff=3Dstd::shared_ptr (use count 3, weak count 0) =3D {...}) at /usr/include/c++/10/ext/atomicity.h:100 #15 0x000055555561abd8 in abigail::comparison::diff_context::initialize_canonical_diff (this=3D0x5555558037f0, diff=3Dstd::shared_ptr (use count 3, weak count 0) =3D {...}) at /usr/include/c++/10/bits/shared_ptr_base.h:1324 #16 0x000055555561b557 in abigail::comparison::compute_diff (first=3Dstd::shared_ptr (use count 17, weak = count 8) =3D {...}, second=3Dstd::shared_ptr (use c= ount 13, weak count 1) =3D {...},=20 ctxt=3Dstd::shared_ptr (use co= unt 10, weak count 5) =3D {...}) at /usr/include/c++/10/ext/atomicity.h:100 #17 0x000055555565ae29 in abigail::comparison::try_to_diff (first=3Dstd::shared_ptr (use count 1= 7, weak count 8) =3D {...}, second=3Dstd::shared_ptr (use count 13, weak count 1) =3D {...},=20 ctxt=3Dstd::shared_ptr (use co= unt 10, weak count 5) =3D {...}) at /usr/include/c++/10/ext/atomicity.h:100 #18 0x0000555555626b44 in abigail::comparison::compute_diff_for_types (first=3Dstd::shared_ptr (use count 1= 7, weak count 8) =3D {...}, second=3Dstd::shared_ptr (use count 13, weak count 1) =3D {...},=20 ctxt=3Dstd::shared_ptr (use co= unt 10, weak count 5) =3D {...}) at /usr/include/c++/10/bits/shared_ptr_base.h:= 736 #19 0x000055555562e9ad in abigail::comparison::compute_diff (first=3Dstd::shared_ptr (use count 17, weak = count 8) =3D {...}, second=3Dstd::shared_ptr (use c= ount 13, weak count 1) =3D {...},=20 ctxt=3Dstd::shared_ptr (use co= unt 10, weak count 5) =3D {...}) at /usr/include/c++/10/ext/atomicity.h:100 #20 0x000055555562f26a in abigail::comparison::fn_parm_diff::fn_parm_diff (this=3D0x55555582a0c0, first=3Dstd::shared_ptr (use count 6, weak count 0) =3D {...= },=20 second=3Dstd::shared_ptr (= use count 5, weak count 0) =3D {...}, ctxt=3Dstd::shared_ptr (use count 10, weak count 5) =3D {...}) = at /usr/include/c++/10/bits/shared_ptr_base.h:1324 #21 0x000055555562f51d in abigail::comparison::compute_diff (first=3Dstd::shared_ptr (use = count 6, weak count 0) =3D {...}, second=3Dstd::shared_ptr (use count 5, weak count 0) =3D {...= },=20 ctxt=3Dstd::shared_ptr (use co= unt 10, weak count 5) =3D {...}) at /usr/include/c++/10/ext/atomicity.h:97 #22 0x000055555562fe4e in abigail::comparison::function_type_diff::ensure_lookup_tables_populated (this=3Dthis@entry=3D0x55555581f9a0) at /usr/include/c++/10/ext/atomicity.h= :100 #23 0x0000555555622928 in abigail::comparison::compute_diff (first=3Dstd::shared_ptr (use count 4, we= ak count 3) =3D {...}, second=3Dstd::shared_ptr (use count 4, weak count 3) =3D {...},=20 ctxt=3Dstd::shared_ptr (use co= unt 10, weak count 5) =3D {...}) at /usr/include/c++/10/bits/shared_ptr_base.h:= 1324 #24 0x0000555555622ae2 in abigail::comparison::compute_diff (first=3Dstd::shared_ptr (use count 2, we= ak count 0) =3D {...}, second=3Dstd::shared_ptr (use count 2, weak count 0) =3D {...},=20 ctxt=3Dstd::shared_ptr (use co= unt 10, weak count 5) =3D {...}) at /usr/include/c++/10/bits/shared_ptr_base.h:= 1324 #25 0x000055555563321f in abigail::comparison::corpus_diff::priv::ensure_lookup_tables_populated (this=3D0x55555582c470) at /usr/include/c++/10/ext/atomicity.h:100 #26 0x00005555556356c4 in abigail::comparison::compute_diff (f=3Dstd::shared_ptr (use count 3, weak count 0)= =3D {...}, s=3D..., ctxt=3D...) at /usr/include/c++/10/bits/shared_ptr_base.h:1= 324 #27 0x000055555557df82 in main (argc=3D, argv=3D0x7fffffffd7= a8) at /usr/include/c++/10/bits/shared_ptr_base.h:736 I'm going to leave this one to Dodji. --=20 You are receiving this mail because: You are on the CC list for the bug.=