From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 38848385783E; Fri, 23 Oct 2020 21:18:39 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 38848385783E From: "woodard at redhat dot com" To: libabigail@sourceware.org Subject: [Bug default/26771] abidw crashes reading /lib64/libclang-cpp.so.10 Date: Fri, 23 Oct 2020 21:18:39 +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: woodard at redhat dot com X-Bugzilla-Status: NEW 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: Fri, 23 Oct 2020 21:18:39 -0000 https://sourceware.org/bugzilla/show_bug.cgi?id=3D26771 --- Comment #2 from Ben Woodard --- With the trunk version of libabigail this appears to be a slightly different bug. It asserts rather than crashes. With the trunk version abidw doesn't s= egv when processing /lib64/libclang-cpp.so.11 abidw: ../../../libabigail/src/abg-dwarf-reader.cc:13223: void abigail::dwarf_reader::finish_member_function_reading(Dwarf_Die*, const function_decl_sptr&, const class_or_union_sptr&, abigail::dwarf_reader::read_context&): Assertion `__abg_cond__' failed. Program received signal SIGABRT, Aborted. __GI_raise (sig=3D) at ../sysdeps/unix/sysv/linux/raise.c:49 49 return ret; (gdb) bt #0 __GI_raise (sig=3D) at ../sysdeps/unix/sysv/linux/raise.= c:49 #1 0x00007ffff75098a4 in __GI_abort () at abort.c:79 #2 0x00007ffff7509789 in __assert_fail_base (fmt=3D0x7ffff7676e68 "%s%s%s:= %u: %s%sAssertion `%s' failed.\n%n", assertion=3D0x7ffff7f3bfa4 "__abg_cond__",= =20 file=3D0x7ffff7f49938 "../../../libabigail/src/abg-dwarf-reader.cc", line=3D13223, function=3D) at assert.c:92 #3 0x00007ffff7518fc6 in __GI___assert_fail (assertion=3D0x7ffff7f3bfa4 "__abg_cond__", file=3D0x7ffff7f49938 "../../../libabigail/src/abg-dwarf-reader.cc", line=3D13223,=20 function=3D0x7ffff7f4a758 "void abigail::dwarf_reader::finish_member_function_reading(Dwarf_Die*, const function_decl_sptr&, const class_or_union_sptr&, abigail::dwarf_reader::read_context&)") at assert.c:101 #4 0x00007ffff7ecc634 in abigail::dwarf_reader::finish_member_function_rea= ding (die=3D0x7fffffffa450, f=3D std::shared_ptr (use count 3, weak co= unt 0) =3D {...},=20 klass=3Dstd::shared_ptr (use count 2= , weak count 0) =3D {...}, ctxt=3D...) at /usr/include/c++/10/ext/atomicity.h:84 #5 0x00007ffff7ed2254 in abigail::dwarf_reader::build_ir_node_from_die (ctxt=3D..., die=3D0x7fffffffa450, scope=3D0xb92260, called_from_public_decl=3D,=20 where_offset=3D117049, is_declaration_only=3D, is_required_decl_spec=3Dfalse) at /usr/include/c++/10/bits/shared_ptr_base.= h:736 #6 0x00007ffff7ee0450 in abigail::dwarf_reader::add_or_update_member_funct= ion (where_offset=3D117049, called_from_public_decl=3Dtrue,=20 class_type=3Dstd::shared_ptr (use co= unt 9, weak count 5) =3D {...}, function_die=3D0x7fffffffa450, ctxt=3D...) at /usr/include/c++/10/bits/shared_ptr_base.h:1324 #7 abigail::dwarf_reader::add_or_update_class_type (ctxt=3D..., die=3D0x7fffffffaa10, scope=3D, is_struct=3D, klass=3D...,=20 called_from_public_decl=3Dtrue, where_offset=3D117049, is_declaration_only=3Dfalse) at ../../../libabigail/src/abg-dwarf-reader.cc= :13870 #8 0x00007ffff7ed1c7b in abigail::dwarf_reader::build_ir_node_from_die (ctxt=3D..., die=3D0x7fffffffaa10, scope=3D0x7aff20, called_from_public_decl=3D,=20 where_offset=3D117049, is_declaration_only=3Dfalse, is_required_decl_spec=3Dfalse) at /usr/include/c++/10/bits/shared_ptr_base.= h:619 #9 0x00007ffff7ed3770 in abigail::dwarf_reader::build_ir_node_from_die (ctxt=3D..., die=3D0x7fffffffaa10, called_from_public_decl=3D, where_offset=3D117049) at /usr/include/c++/10/bits/shared_ptr_base.h:1324 #10 0x00007ffff7ee0dac in abigail::dwarf_reader::add_or_update_class_type (ctxt=3D..., die=3D0x7fffffffaf90, scope=3D, is_struct=3D, klass=3D...,=20 called_from_public_decl=3Dtrue, where_offset=3D117049, is_declaration_only=3Dfalse) at ../../../libabigail/src/abg-dwarf-reader.cc= :13753 #11 0x00007ffff7ed1c7b in abigail::dwarf_reader::build_ir_node_from_die (ctxt=3D..., die=3D0x7fffffffaf90, scope=3D0x7aff20, called_from_public_decl=3D,=20 where_offset=3D117049, is_declaration_only=3Dfalse, is_required_decl_spec=3Dfalse) at /usr/include/c++/10/bits/shared_ptr_base.= h:619 #12 0x00007ffff7ed3770 in abigail::dwarf_reader::build_ir_node_from_die (ctxt=3D..., die=3D0x7fffffffaf90, called_from_public_decl=3D, where_offset=3D117049) at /usr/include/c++/10/bits/shared_ptr_base.h:1324 #13 0x00007ffff7ee0dac in abigail::dwarf_reader::add_or_update_class_type (ctxt=3D..., die=3D0x7fffffffb480, scope=3D, is_struct=3D, klass=3D...,=20 called_from_public_decl=3Dtrue, where_offset=3D117049, is_declaration_only=3Dfalse) at ../../../libabigail/src/abg-dwarf-reader.cc= :13753 #14 0x00007ffff7ed1c7b in abigail::dwarf_reader::build_ir_node_from_die (ctxt=3D..., die=3D0x7fffffffb480, scope=3D0xb8f3c0, called_from_public_decl=3D,=20 where_offset=3D117049, is_declaration_only=3Dfalse, is_required_decl_spec=3Dfalse) at /usr/include/c++/10/bits/shared_ptr_base.= h:619 #15 0x00007ffff7edfe51 in abigail::dwarf_reader::add_or_update_class_type (ctxt=3D..., die=3D0x7fffffffbac0, scope=3D, is_struct=3D, klass=3D...,=20 called_from_public_decl=3Dtrue, where_offset=3D117049, is_declaration_only=3Dfalse) at /usr/include/c++/10/bits/shared_ptr_base.h:= 1324 #16 0x00007ffff7ed1c7b in abigail::dwarf_reader::build_ir_node_from_die (ctxt=3D..., die=3D0x7fffffffbac0, scope=3D0x7aff20, called_from_public_decl=3D,=20 where_offset=3D117049, is_declaration_only=3Dfalse, is_required_decl_spec=3Dfalse) at /usr/include/c++/10/bits/shared_ptr_base.= h:619 #17 0x00007ffff7ed3770 in abigail::dwarf_reader::build_ir_node_from_die (ctxt=3D..., die=3D0x7fffffffbac0, called_from_public_decl=3D, where_offset=3D117049) at /usr/include/c++/10/bits/shared_ptr_base.h:1324 #18 0x00007ffff7ed329c in abigail::dwarf_reader::build_typedef_type (where_offset=3D117049, called_from_public_decl=3Dtrue, die=3D0x7fffffffbcb= 0, ctxt=3D...) at ../../../libabigail/src/abg-dwarf-reader.cc:15003 #19 abigail::dwarf_reader::build_ir_node_from_die (ctxt=3D..., die=3D0x7fffffffbcb0, scope=3D0xb8dcf0, called_from_public_decl=3D, where_offset=3D117049,=20 is_declaration_only=3D, is_required_decl_spec=3Dfalse) at ../../../libabigail/src/abg-dwarf-reader.cc:16351 #20 0x00007ffff7edfe51 in abigail::dwarf_reader::add_or_update_class_type (ctxt=3D..., die=3D0x7fffffffc270, scope=3D, is_struct=3D, klass=3D...,=20 called_from_public_decl=3Dtrue, where_offset=3D117049, is_declaration_only=3Dfalse) at /usr/include/c++/10/bits/shared_ptr_base.h:= 1324 #21 0x00007ffff7ed1c7b in abigail::dwarf_reader::build_ir_node_from_die (ctxt=3D..., die=3D0x7fffffffc270, scope=3D0x7aff20, called_from_public_decl=3D,=20 where_offset=3D117049, is_declaration_only=3Dfalse, is_required_decl_spec=3Dfalse) at /usr/include/c++/10/bits/shared_ptr_base.= h:619 #22 0x00007ffff7ed3770 in abigail::dwarf_reader::build_ir_node_from_die (ctxt=3D..., die=3D0x7fffffffc270, called_from_public_decl=3D, where_offset=3D117049) at /usr/include/c++/10/bits/shared_ptr_base.h:1324 #23 0x00007ffff7ee0dac in abigail::dwarf_reader::add_or_update_class_type (ctxt=3D..., die=3D0x7fffffffc870, scope=3D, is_struct=3D, klass=3D...,=20 called_from_public_decl=3Dtrue, where_offset=3D117049, is_declaration_only=3Dfalse) at ../../../libabigail/src/abg-dwarf-reader.cc= :13753 #24 0x00007ffff7ed1c7b in abigail::dwarf_reader::build_ir_node_from_die (ctxt=3D..., die=3D0x7fffffffc870, scope=3D0x7aff20, called_from_public_decl=3D,=20 where_offset=3D117049, is_declaration_only=3Dfalse, is_required_decl_spec=3Dfalse) at /usr/include/c++/10/bits/shared_ptr_base.= h:619 #25 0x00007ffff7ed3770 in abigail::dwarf_reader::build_ir_node_from_die (ctxt=3D..., die=3D0x7fffffffc870, called_from_public_decl=3D, where_offset=3D117049) at /usr/include/c++/10/bits/shared_ptr_base.h:1324 #26 0x00007ffff7ed1a48 in abigail::dwarf_reader::build_reference_type (where_offset=3D117049, called_from_public_decl=3Dtrue, die=3D0x7fffffffc9b= 0, ctxt=3D...) at ../../../libabigail/src/abg-dwarf-reader.cc:14466 #27 abigail::dwarf_reader::build_ir_node_from_die (ctxt=3D..., die=3D0x7fffffffc9b0, scope=3D0x7aff20, called_from_public_decl=3D, where_offset=3D117049,=20 is_declaration_only=3Dfalse, is_required_decl_spec=3Dfalse) at ../../../libabigail/src/abg-dwarf-reader.cc:16383 #28 0x00007ffff7ed3770 in abigail::dwarf_reader::build_ir_node_from_die (ctxt=3D..., die=3D0x7fffffffc9b0, called_from_public_decl=3D, where_offset=3D117049) at /usr/include/c++/10/bits/shared_ptr_base.h:1324 #29 0x00007ffff7ed4065 in abigail::dwarf_reader::build_var_decl (ctxt=3D..., die=3D0x7fffffffcff0, where_offset=3D117049,=20 result=3Dstd::shared_ptr (empty) =3D {...}= ) at ../../../libabigail/src/abg-dwarf-reader.cc:15149 #30 0x00007ffff7ed48ae in abigail::dwarf_reader::build_or_get_var_decl_if_not_suppressed (ctxt=3D..., scope=3D, die=3D0x7fffffffcff0, where_offset=3D117049,=20 result=3Dstd::shared_ptr (empty) =3D {...}, is_required_decl_spec=3Dtrue) at /usr/include/c++/10/ext/atomicity.h:100 #31 0x00007ffff7ed17d5 in abigail::dwarf_reader::build_ir_node_from_die (ctxt=3D..., die=3D0x7fffffffcff0, scope=3D0x7aff20, called_from_public_decl=3D,=20 where_offset=3D117049, is_declaration_only=3Dfalse, is_required_decl_sp= ec=3Dtrue) at /usr/include/c++/10/bits/shared_ptr_base.h:619 --Type for more, q to quit, c to continue without paging--c #32 0x00007ffff7ecfc75 in abigail::dwarf_reader::build_ir_node_from_die (ctxt=3D..., die=3D0x7fffffffd1d0, scope=3D0x7aff20, called_from_public_decl=3D, where_offset=3D117049, is_declaration_only=3Dfalse, is_required_decl_spec=3Dfalse) at ../../../libabigail/src/abg-dwarf-reader.cc:16623 #33 0x00007ffff7ed3770 in abigail::dwarf_reader::build_ir_node_from_die (ctxt=3D..., die=3D0x7fffffffd1d0, called_from_public_decl=3D, where_offset=3D117049) at /usr/include/c++/10/bits/shared_ptr_base.h:1324 #34 0x00007ffff7ee3080 in abigail::dwarf_reader::build_translation_unit_and_add_to_ir (ctxt=3D..., die=3D, address_size=3D) at ../../../libabigail/src/abg-dwarf-reader.cc:8556 #35 0x00007ffff7ee4f3a in abigail::dwarf_reader::read_debug_info_into_corpus (ctxt=3D...) at ../../../libabigail/src/abg-dwarf-reader.cc:15936 #36 abigail::dwarf_reader::read_corpus_from_elf (ctxt=3D..., status=3D@0x7fffffffd40c: abigail::dwarf_reader::STATUS_UNKNOWN) at ../../../libabigail/src/abg-dwarf-reader.cc:17149 #37 0x0000000000405c93 in load_corpus_and_write_abixml (opts=3D..., context=3Dstd::shared_ptr (use c= ount 1, weak count 0) =3D {...}, env=3Dstd::shared_ptr (use count 1, weak count 0) =3D {...}, argv=3D0x7fffffffd958) at ../../../libabigail/tools/abidw.cc:494 #38 main (argc=3D, argv=3D0x7fffffffd958) at ../../../libabigail/tools/abidw.cc:866 (gdb) --=20 You are receiving this mail because: You are on the CC list for the bug.=