From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 10C683857829; Thu, 22 Oct 2020 05:10:07 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 10C683857829 From: "woodard at redhat dot com" To: libabigail@sourceware.org Subject: [Bug default/26769] New: assert when comparing libstdc++ to itself Date: Thu, 22 Oct 2020 05:10:06 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new 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: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter cc target_milestone Message-ID: 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: Thu, 22 Oct 2020 05:10:07 -0000 https://sourceware.org/bugzilla/show_bug.cgi?id=3D26769 Bug ID: 26769 Summary: assert when comparing libstdc++ to itself Product: libabigail Version: unspecified Status: NEW Severity: normal Priority: P2 Component: default Assignee: dodji at redhat dot com Reporter: woodard at redhat dot com CC: libabigail at sourceware dot org Target Milestone: --- On Fedora 32 with the distro standard versions of libabigail and libstdc++ installed. $ abidw /lib64/libstdc++.so.6.0.28 > bar $ abidiff bar /lib64/libstdc++.so.6.0.28 abidiff: abg-reader.cc:1359: abigail::ir::type_base_sptr abigail::xml_reader::read_context::build_or_get_type_decl(const string&, bo= ol): Assertion `__abg_cond__' failed. Aborted (core dumped) $ rpm -q libstdc++ libabigail libstdc++-10.2.1-5.fc32.x86_64 libabigail-1.7-1.fc32.x86_64 The backtrace is pretty extensive: [ben@alien dwqual]$ gdb --silent --args abidiff bar /lib64/libstdc++.so.6.0= .28 Reading symbols from abidiff... Reading symbols from /usr/lib/debug/usr/bin/abidiff-1.7-1.fc32.x86_64.debug= ... (gdb) r Starting program: /usr/bin/abidiff bar /lib64/libstdc++.so.6.0.28 [Thread debugging using libthread_db enabled] Using host libthread_db library "/lib64/libthread_db.so.1". Missing separate debuginfo for /lib64/libelf.so.1 Try: dnf --enablerepo=3D'*debug*' install /usr/lib/debug/.build-id/58/4de23b85a4e2ea2e5851f8e30aeba704560ed6.debug Missing separate debuginfo for /lib64/libdw.so.1 Try: dnf --enablerepo=3D'*debug*' install /usr/lib/debug/.build-id/20/d8e828160b52d02f63cbd763da0994575d0db4.debug abidiff: abg-reader.cc:1359: abigail::ir::type_base_sptr abigail::xml_reader::read_context::build_or_get_type_decl(const string&, bo= ol): Assertion `__abg_cond__' failed. Program received signal SIGABRT, Aborted. __GI_raise (sig=3Dsig@entry=3D6) at ../sysdeps/unix/sysv/linux/raise.c:50 50 return ret; Missing separate debuginfos, use: dnf debuginfo-install bzip2-libs-1.0.8-2.fc32.x86_64 libxml2-2.9.10-7.fc32.x86_64 xz-libs-5.2.5-1.fc32.x86_64 zlib-1.2.11-21.fc32.x86_64 (gdb) bt #0 __GI_raise (sig=3Dsig@entry=3D6) at ../sysdeps/unix/sysv/linux/raise.c:= 50 #1 0x00007ffff787f895 in __GI_abort () at abort.c:79 #2 0x00007ffff787f769 in __assert_fail_base (fmt=3D0x7ffff79ed0b8 "%s%s%s:= %u: %s%sAssertion `%s' failed.\n%n", assertion=3D0x7ffff7f13846 "__abg_cond__",= =20 file=3D0x7ffff7f23a63 "abg-reader.cc", line=3D1359, function=3D) at assert.c:92 #3 0x00007ffff788ee76 in __GI___assert_fail (assertion=3Dassertion@entry=3D0x7ffff7f13846 "__abg_cond__", file=3Dfile@entry=3D0x7ffff7f23a63 "abg-reader.cc",=20 line=3Dline@entry=3D1359,=20 function=3Dfunction@entry=3D0x7ffff7f22b88 "abigail::ir::type_base_sptr abigail::xml_reader::read_context::build_or_get_type_decl(const string&, bool)") at assert.c:101 #4 0x00007ffff7e76999 in abigail::xml_reader::read_context::build_or_get_type_decl (this=3D0x5555555= 8d850, id=3D"type-id-1541", add_decl_to_scope=3D) at /usr/include/c++/10/ext/atomicity.h:97 #5 0x00007ffff7e76d10 in abigail::xml_reader::build_qualified_type_decl (ctxt=3D..., node=3D0x5555571f4650, add_to_current_scope=3D)= at abg-reader.cc:3542 #6 0x00007ffff7e80f14 in abigail::xml_reader::build_type (ctxt=3D..., node=3D0x5555571f4650, add_to_current_scope=3D) at /usr/include/c++/10/bits/shared_ptr_base.h:1180 #7 0x00007ffff7e76777 in abigail::xml_reader::read_context::build_or_get_type_decl (this=3D0x5555555= 8d850, id=3D..., add_decl_to_scope=3D) at abg-reader.cc:1379 #8 0x00007ffff7e777e6 in abigail::xml_reader::build_pointer_type_def (ctxt=3D..., node=3D0x5555571f4a60, add_to_current_scope=3D)= at abg-reader.cc:3643 #9 0x00007ffff7e80fb8 in abigail::xml_reader::build_type (ctxt=3D..., node=3D0x5555571f4a60, add_to_current_scope=3D) at /usr/include/c++/10/bits/shared_ptr_base.h:1180 #10 0x00007ffff7e76777 in abigail::xml_reader::read_context::build_or_get_type_decl (this=3D0x5555555= 8d850, id=3D..., add_decl_to_scope=3D) at abg-reader.cc:1379 #11 0x00007ffff7e76d10 in abigail::xml_reader::build_qualified_type_decl (ctxt=3D..., node=3D0x5555571f4e70, add_to_current_scope=3D)= at abg-reader.cc:3542 #12 0x00007ffff7e80f14 in abigail::xml_reader::build_type (ctxt=3D..., node=3D0x5555571f4e70, add_to_current_scope=3D) at /usr/include/c++/10/bits/shared_ptr_base.h:1180 #13 0x00007ffff7e76777 in abigail::xml_reader::read_context::build_or_get_type_decl (this=3D0x5555555= 8d850, id=3D..., add_decl_to_scope=3D) at abg-reader.cc:1379 #14 0x00007ffff7e777e6 in abigail::xml_reader::build_pointer_type_def (ctxt=3D..., node=3D0x5555571f5280, add_to_current_scope=3D)= at abg-reader.cc:3643 #15 0x00007ffff7e80fb8 in abigail::xml_reader::build_type (ctxt=3D..., node=3D0x5555571f5280, add_to_current_scope=3D) at /usr/include/c++/10/bits/shared_ptr_base.h:1180 #16 0x00007ffff7e76777 in abigail::xml_reader::read_context::build_or_get_type_decl (this=3D0x5555555= 8d850, id=3D..., add_decl_to_scope=3D) at abg-reader.cc:1379 #17 0x00007ffff7e76d10 in abigail::xml_reader::build_qualified_type_decl (ctxt=3D..., node=3D0x5555571f5690, add_to_current_scope=3D)= at abg-reader.cc:3542 #18 0x00007ffff7e80f14 in abigail::xml_reader::build_type (ctxt=3D..., node=3D0x5555571f5690, add_to_current_scope=3D) at /usr/include/c++/10/bits/shared_ptr_base.h:1180 #19 0x00007ffff7e76777 in abigail::xml_reader::read_context::build_or_get_type_decl (this=3D0x5555555= 8d850, id=3D..., add_decl_to_scope=3D) at abg-reader.cc:1379 #20 0x00007ffff7e79100 in abigail::xml_reader::build_array_type_def (ctxt= =3D..., node=3D0x5555571e0000, add_to_current_scope=3D) at abg-reader.cc:4000 #21 0x00007ffff7e88db4 in abigail::xml_reader::handle_array_type_def (add_to_current_scope=3Dtrue, node=3D0x5555571e0000, ctxt=3D...) at abg-reader.cc:5661 #22 abigail::xml_reader::handle_element_node (ctxt=3D..., node=3D0x5555571e= 0000, add_to_current_scope=3Dtrue) at abg-reader.cc:2212 #23 0x00007ffff7e725e3 in abigail::xml_reader::read_translation_unit (node=3D, tu=3D..., ctxt=3D...) at abg-reader.cc:1480 #24 abigail::xml_reader::get_or_read_and_add_translation_unit (ctxt=3D..., node=3D) at abg-reader.cc:1532 #25 0x00007ffff7e763e0 in abigail::xml_reader::read_context::get_scope_for_= node (this=3D0x55555558d850, node=3D, access=3D) at abg-reader.cc:1322 #26 0x00007ffff7e76255 in abigail::xml_reader::read_context::get_scope_for_= node (this=3D0x55555558d850, node=3D, access=3D) at abg-reader.cc:1328 #27 0x00007ffff7e76255 in abigail::xml_reader::read_context::get_scope_for_= node (this=3D0x55555558d850, node=3D, access=3D) at abg-reader.cc:1328 #28 0x00007ffff7e766ba in abigail::xml_reader::read_context::build_or_get_type_decl (this=3D0x5555555= 8d850, id=3D"type-id-1740", add_decl_to_scope=3D) at abg-reader.cc:1365 #29 0x00007ffff7e777e6 in abigail::xml_reader::build_pointer_type_def (ctxt=3D..., node=3D0x555558fc7360, add_to_current_scope=3D)= at abg-reader.cc:3643 #30 0x00007ffff7e88a01 in abigail::xml_reader::handle_pointer_type_def (add_to_current_scope=3Dtrue, node=3D0x555558fc7360, ctxt=3D...) at abg-reader.cc:5611 #31 abigail::xml_reader::handle_element_node (ctxt=3D..., node=3D0x555558fc= 7360, add_to_current_scope=3Dtrue) at abg-reader.cc:2208 #32 0x00007ffff7e725e3 in abigail::xml_reader::read_translation_unit (node=3D, tu=3D..., ctxt=3D...) at abg-reader.cc:1480 #33 abigail::xml_reader::get_or_read_and_add_translation_unit (ctxt=3D..., node=3D) at abg-reader.cc:1532 #34 0x00007ffff7e763e0 in abigail::xml_reader::read_context::get_scope_for_= node (this=3D0x55555558d850, node=3D, access=3D) at abg-reader.cc:1322 #35 0x00007ffff7e766ba in abigail::xml_reader::read_context::build_or_get_type_decl (this=3D0x5555555= 8d850, id=3D"type-id-224", add_decl_to_scope=3D) at abg-reader.cc:1365 #36 0x00007ffff7e78afe in abigail::xml_reader::build_function_parameter (ctxt=3D..., node=3D0x55555627c4c0) at abg-reader.cc:3067 #37 0x00007ffff7e7c788 in abigail::xml_reader::build_function_decl (ctxt=3D= ..., node=3D0x55555627b800,=20 as_method_decl=3Dstd::shared_ptr (use count 26, weak count 22) =3D {...}, add_to_current_scope=3D) at abg-reader.cc:3152 #38 0x00007ffff7e7d69f in abigail::xml_reader::build_function_decl_if_not_suppressed (ctxt=3D..., node=3D0x55555627b800,=20 as_method_decl=3Dstd::shared_ptr (use count 26, weak count 22) =3D {...}, add_to_current_scope=3D) at /usr/include/c++/10/ext/atomicity.h:100 #39 0x00007ffff7e83bca in abigail::xml_reader::build_class_decl (ctxt=3D..., node=3D, add_to_current_scope=3D) --Type for more, q to quit, c to continue without paging-- at /usr/include/c++/10/bits/shared_ptr_base.h:733 #40 0x00007ffff7e84cf9 in abigail::xml_reader::build_class_decl_if_not_suppressed (ctxt=3D..., node=3D0x5555562651e0, add_to_current_scope=3D) at abg-reader.cc:4320 #41 0x00007ffff7e89923 in abigail::xml_reader::handle_class_decl (add_to_current_scope=3Dtrue, node=3D0x5555562651e0, ctxt=3D...) at abg-reader.cc:5742 #42 abigail::xml_reader::handle_element_node (ctxt=3D..., node=3D0x55555626= 51e0, add_to_current_scope=3Dtrue) at abg-reader.cc:2221 #43 0x00007ffff7e885b3 in abigail::xml_reader::build_namespace_decl (add_to_current_scope=3Dtrue, node=3D0x555556259440, ctxt=3D...) at abg-reader.cc:2785 #44 abigail::xml_reader::handle_namespace_decl (add_to_current_scope=3Dtrue, node=3D0x555556259440, ctxt=3D...) at abg-reader.cc:5579 #45 abigail::xml_reader::handle_element_node (ctxt=3D..., node=3D0x55555625= 9440, add_to_current_scope=3Dtrue) at abg-reader.cc:2204 #46 0x00007ffff7e762fc in abigail::xml_reader::read_context::get_scope_for_= node (this=3D0x55555558d850, node=3D, access=3D) at abg-reader.cc:1330 #47 0x00007ffff7e76255 in abigail::xml_reader::read_context::get_scope_for_= node (this=3D0x55555558d850, node=3D, access=3D) at abg-reader.cc:1328 #48 0x00007ffff7e766ba in abigail::xml_reader::read_context::build_or_get_type_decl (this=3D0x5555555= 8d850, id=3D"type-id-14", add_decl_to_scope=3D) at abg-reader.cc:1365 #49 0x00007ffff7e79100 in abigail::xml_reader::build_array_type_def (ctxt= =3D..., node=3D0x55555620b610, add_to_current_scope=3D) at abg-reader.cc:4000 #50 0x00007ffff7e88db4 in abigail::xml_reader::handle_array_type_def (add_to_current_scope=3Dtrue, node=3D0x55555620b610, ctxt=3D...) at abg-reader.cc:5661 #51 abigail::xml_reader::handle_element_node (ctxt=3D..., node=3D0x55555620= b610, add_to_current_scope=3Dtrue) at abg-reader.cc:2212 #52 0x00007ffff7e725e3 in abigail::xml_reader::read_translation_unit (node=3D, tu=3D..., ctxt=3D...) at abg-reader.cc:1480 #53 abigail::xml_reader::get_or_read_and_add_translation_unit (ctxt=3D..., node=3D) at abg-reader.cc:1532 #54 0x00007ffff7e72d45 in abigail::xml_reader::read_translation_unit_from_i= nput (ctxt=3D...) at abg-reader.cc:1590 #55 0x00007ffff7e73fdc in abigail::xml_reader::read_corpus_from_input (ctxt=3D...) at abg-reader.cc:2004 #56 0x000055555555a949 in main (argc=3D, argv=3D0x7fffffffd9= 58) at /usr/include/c++/10/bits/shared_ptr_base.h:1321 --=20 You are receiving this mail because: You are on the CC list for the bug.=