public inbox for libabigail@sourceware.org
 help / color / mirror / Atom feed
From: "woodard at redhat dot com" <sourceware-bugzilla@sourceware.org>
To: libabigail@sourceware.org
Subject: [Bug default/26769] New: assert when comparing libstdc++ to itself
Date: Thu, 22 Oct 2020 05:10:06 +0000	[thread overview]
Message-ID: <bug-26769-9487@http.sourceware.org/bugzilla/> (raw)

https://sourceware.org/bugzilla/show_bug.cgi?id=26769

            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&, bool):
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='*debug*' install
/usr/lib/debug/.build-id/58/4de23b85a4e2ea2e5851f8e30aeba704560ed6.debug
Missing separate debuginfo for /lib64/libdw.so.1
Try: dnf --enablerepo='*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&, bool):
Assertion `__abg_cond__' failed.

Program received signal SIGABRT, Aborted.
__GI_raise (sig=sig@entry=6) 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=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:50
#1  0x00007ffff787f895 in __GI_abort () at abort.c:79
#2  0x00007ffff787f769 in __assert_fail_base (fmt=0x7ffff79ed0b8 "%s%s%s:%u:
%s%sAssertion `%s' failed.\n%n", assertion=0x7ffff7f13846 "__abg_cond__", 
    file=0x7ffff7f23a63 "abg-reader.cc", line=1359, function=<optimized out>)
at assert.c:92
#3  0x00007ffff788ee76 in __GI___assert_fail
(assertion=assertion@entry=0x7ffff7f13846 "__abg_cond__",
file=file@entry=0x7ffff7f23a63 "abg-reader.cc", 
    line=line@entry=1359, 
    function=function@entry=0x7ffff7f22b88 "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=0x55555558d850,
id="type-id-1541", add_decl_to_scope=<optimized out>)
    at /usr/include/c++/10/ext/atomicity.h:97
#5  0x00007ffff7e76d10 in abigail::xml_reader::build_qualified_type_decl
(ctxt=..., node=0x5555571f4650, add_to_current_scope=<optimized out>) at
abg-reader.cc:3542
#6  0x00007ffff7e80f14 in abigail::xml_reader::build_type (ctxt=...,
node=0x5555571f4650, add_to_current_scope=<optimized out>)
    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=0x55555558d850,
id=..., add_decl_to_scope=<optimized out>)
    at abg-reader.cc:1379
#8  0x00007ffff7e777e6 in abigail::xml_reader::build_pointer_type_def
(ctxt=..., node=0x5555571f4a60, add_to_current_scope=<optimized out>) at
abg-reader.cc:3643
#9  0x00007ffff7e80fb8 in abigail::xml_reader::build_type (ctxt=...,
node=0x5555571f4a60, add_to_current_scope=<optimized out>)
    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=0x55555558d850,
id=..., add_decl_to_scope=<optimized out>)
    at abg-reader.cc:1379
#11 0x00007ffff7e76d10 in abigail::xml_reader::build_qualified_type_decl
(ctxt=..., node=0x5555571f4e70, add_to_current_scope=<optimized out>) at
abg-reader.cc:3542
#12 0x00007ffff7e80f14 in abigail::xml_reader::build_type (ctxt=...,
node=0x5555571f4e70, add_to_current_scope=<optimized out>)
    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=0x55555558d850,
id=..., add_decl_to_scope=<optimized out>)
    at abg-reader.cc:1379
#14 0x00007ffff7e777e6 in abigail::xml_reader::build_pointer_type_def
(ctxt=..., node=0x5555571f5280, add_to_current_scope=<optimized out>) at
abg-reader.cc:3643
#15 0x00007ffff7e80fb8 in abigail::xml_reader::build_type (ctxt=...,
node=0x5555571f5280, add_to_current_scope=<optimized out>)
    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=0x55555558d850,
id=..., add_decl_to_scope=<optimized out>)
    at abg-reader.cc:1379
#17 0x00007ffff7e76d10 in abigail::xml_reader::build_qualified_type_decl
(ctxt=..., node=0x5555571f5690, add_to_current_scope=<optimized out>) at
abg-reader.cc:3542
#18 0x00007ffff7e80f14 in abigail::xml_reader::build_type (ctxt=...,
node=0x5555571f5690, add_to_current_scope=<optimized out>)
    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=0x55555558d850,
id=..., add_decl_to_scope=<optimized out>)
    at abg-reader.cc:1379
#20 0x00007ffff7e79100 in abigail::xml_reader::build_array_type_def (ctxt=...,
node=0x5555571e0000, add_to_current_scope=<optimized out>) at
abg-reader.cc:4000
#21 0x00007ffff7e88db4 in abigail::xml_reader::handle_array_type_def
(add_to_current_scope=true, node=0x5555571e0000, ctxt=...) at
abg-reader.cc:5661
#22 abigail::xml_reader::handle_element_node (ctxt=..., node=0x5555571e0000,
add_to_current_scope=true) at abg-reader.cc:2212
#23 0x00007ffff7e725e3 in abigail::xml_reader::read_translation_unit
(node=<optimized out>, tu=..., ctxt=...) at abg-reader.cc:1480
#24 abigail::xml_reader::get_or_read_and_add_translation_unit (ctxt=...,
node=<optimized out>) at abg-reader.cc:1532
#25 0x00007ffff7e763e0 in abigail::xml_reader::read_context::get_scope_for_node
(this=0x55555558d850, node=<optimized out>, access=<optimized out>)
    at abg-reader.cc:1322
#26 0x00007ffff7e76255 in abigail::xml_reader::read_context::get_scope_for_node
(this=0x55555558d850, node=<optimized out>, access=<optimized out>)
    at abg-reader.cc:1328
#27 0x00007ffff7e76255 in abigail::xml_reader::read_context::get_scope_for_node
(this=0x55555558d850, node=<optimized out>, access=<optimized out>)
    at abg-reader.cc:1328
#28 0x00007ffff7e766ba in
abigail::xml_reader::read_context::build_or_get_type_decl (this=0x55555558d850,
id="type-id-1740", add_decl_to_scope=<optimized out>)
    at abg-reader.cc:1365
#29 0x00007ffff7e777e6 in abigail::xml_reader::build_pointer_type_def
(ctxt=..., node=0x555558fc7360, add_to_current_scope=<optimized out>) at
abg-reader.cc:3643
#30 0x00007ffff7e88a01 in abigail::xml_reader::handle_pointer_type_def
(add_to_current_scope=true, node=0x555558fc7360, ctxt=...) at
abg-reader.cc:5611
#31 abigail::xml_reader::handle_element_node (ctxt=..., node=0x555558fc7360,
add_to_current_scope=true) at abg-reader.cc:2208
#32 0x00007ffff7e725e3 in abigail::xml_reader::read_translation_unit
(node=<optimized out>, tu=..., ctxt=...) at abg-reader.cc:1480
#33 abigail::xml_reader::get_or_read_and_add_translation_unit (ctxt=...,
node=<optimized out>) at abg-reader.cc:1532
#34 0x00007ffff7e763e0 in abigail::xml_reader::read_context::get_scope_for_node
(this=0x55555558d850, node=<optimized out>, access=<optimized out>)
    at abg-reader.cc:1322
#35 0x00007ffff7e766ba in
abigail::xml_reader::read_context::build_or_get_type_decl (this=0x55555558d850,
id="type-id-224", add_decl_to_scope=<optimized out>)
    at abg-reader.cc:1365
#36 0x00007ffff7e78afe in abigail::xml_reader::build_function_parameter
(ctxt=..., node=0x55555627c4c0) at abg-reader.cc:3067
#37 0x00007ffff7e7c788 in abigail::xml_reader::build_function_decl (ctxt=...,
node=0x55555627b800, 
    as_method_decl=std::shared_ptr<class abigail::ir::class_or_union> (use
count 26, weak count 22) = {...}, add_to_current_scope=<optimized out>)
    at abg-reader.cc:3152
#38 0x00007ffff7e7d69f in
abigail::xml_reader::build_function_decl_if_not_suppressed (ctxt=...,
node=0x55555627b800, 
    as_method_decl=std::shared_ptr<class abigail::ir::class_or_union> (use
count 26, weak count 22) = {...}, add_to_current_scope=<optimized out>)
    at /usr/include/c++/10/ext/atomicity.h:100
#39 0x00007ffff7e83bca in abigail::xml_reader::build_class_decl (ctxt=...,
node=<optimized out>, add_to_current_scope=<optimized out>)
--Type <RET> 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=...,
node=0x5555562651e0, add_to_current_scope=<optimized out>)
    at abg-reader.cc:4320
#41 0x00007ffff7e89923 in abigail::xml_reader::handle_class_decl
(add_to_current_scope=true, node=0x5555562651e0, ctxt=...) at
abg-reader.cc:5742
#42 abigail::xml_reader::handle_element_node (ctxt=..., node=0x5555562651e0,
add_to_current_scope=true) at abg-reader.cc:2221
#43 0x00007ffff7e885b3 in abigail::xml_reader::build_namespace_decl
(add_to_current_scope=true, node=0x555556259440, ctxt=...) at
abg-reader.cc:2785
#44 abigail::xml_reader::handle_namespace_decl (add_to_current_scope=true,
node=0x555556259440, ctxt=...) at abg-reader.cc:5579
#45 abigail::xml_reader::handle_element_node (ctxt=..., node=0x555556259440,
add_to_current_scope=true) at abg-reader.cc:2204
#46 0x00007ffff7e762fc in abigail::xml_reader::read_context::get_scope_for_node
(this=0x55555558d850, node=<optimized out>, access=<optimized out>)
    at abg-reader.cc:1330
#47 0x00007ffff7e76255 in abigail::xml_reader::read_context::get_scope_for_node
(this=0x55555558d850, node=<optimized out>, access=<optimized out>)
    at abg-reader.cc:1328
#48 0x00007ffff7e766ba in
abigail::xml_reader::read_context::build_or_get_type_decl (this=0x55555558d850,
id="type-id-14", add_decl_to_scope=<optimized out>)
    at abg-reader.cc:1365
#49 0x00007ffff7e79100 in abigail::xml_reader::build_array_type_def (ctxt=...,
node=0x55555620b610, add_to_current_scope=<optimized out>) at
abg-reader.cc:4000
#50 0x00007ffff7e88db4 in abigail::xml_reader::handle_array_type_def
(add_to_current_scope=true, node=0x55555620b610, ctxt=...) at
abg-reader.cc:5661
#51 abigail::xml_reader::handle_element_node (ctxt=..., node=0x55555620b610,
add_to_current_scope=true) at abg-reader.cc:2212
#52 0x00007ffff7e725e3 in abigail::xml_reader::read_translation_unit
(node=<optimized out>, tu=..., ctxt=...) at abg-reader.cc:1480
#53 abigail::xml_reader::get_or_read_and_add_translation_unit (ctxt=...,
node=<optimized out>) at abg-reader.cc:1532
#54 0x00007ffff7e72d45 in abigail::xml_reader::read_translation_unit_from_input
(ctxt=...) at abg-reader.cc:1590
#55 0x00007ffff7e73fdc in abigail::xml_reader::read_corpus_from_input
(ctxt=...) at abg-reader.cc:2004
#56 0x000055555555a949 in main (argc=<optimized out>, argv=0x7fffffffd958) at
/usr/include/c++/10/bits/shared_ptr_base.h:1321

-- 
You are receiving this mail because:
You are on the CC list for the bug.

             reply	other threads:[~2020-10-22  5:10 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-10-22  5:10 woodard at redhat dot com [this message]
2020-10-22  6:00 ` [Bug default/26769] " woodard at redhat dot com
2020-10-23  4:48 ` woodard at redhat dot com
2020-10-23 22:22 ` woodard at redhat dot com
2020-11-10 10:22 ` dodji at redhat dot com
2020-11-12 22:23 ` woodard at redhat dot com
2020-11-16 17:15 ` dodji at redhat dot com
2020-11-16 20:33 ` woodard at redhat dot com
2020-11-17 17:39   ` Dodji Seketeli
2020-11-19 10:13   ` Dodji Seketeli
2020-11-17 17:39 ` dodji at seketeli dot org
2020-11-17 17:50 ` woodard at redhat dot com
2020-11-19 16:56 ` dodji at redhat dot com
2020-11-19 16:58 ` [Bug default/26769] abixml writer misses some member types in the output dodji at redhat dot com
2020-11-20 15:29 ` dodji at redhat dot com
2020-11-20 15:34 ` dodji at redhat dot com
2020-11-20 17:49 ` dodji at seketeli dot org
2020-11-20 22:29 ` woodard at redhat dot com
2020-11-23 12:26 ` dodji at redhat dot com
2020-11-23 17:42 ` woodard at redhat dot com
2020-11-24 10:39 ` dodji at redhat dot com

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bug-26769-9487@http.sourceware.org/bugzilla/ \
    --to=sourceware-bugzilla@sourceware.org \
    --cc=libabigail@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).