From: "gprocida+abigail at google dot com" <sourceware-bugzilla@sourceware.org>
To: libabigail@sourceware.org
Subject: [Bug default/27661] New: The XML reader gives anonymous types non-empty linkage_name
Date: Mon, 29 Mar 2021 15:10:20 +0000 [thread overview]
Message-ID: <bug-27661-9487@http.sourceware.org/bugzilla/> (raw)
https://sourceware.org/bugzilla/show_bug.cgi?id=27661
Bug ID: 27661
Summary: The XML reader gives anonymous types non-empty
linkage_name
Product: libabigail
Version: unspecified
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: default
Assignee: dodji at redhat dot com
Reporter: gprocida+abigail at google dot com
CC: libabigail at sourceware dot org
Target Milestone: ---
The title of the bug is just a statement of fact. Debugging shows that the
anonymous structs etc. get linkage names like "__anonymous_struct__".
With post-processed XML (so, not necessarily trustworthy), I've managed to
trigger an assertion related to this:
Line numbers are offset due some debugging statements.
#0 __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:50
#1 0x00007ffff798a537 in __GI_abort () at abort.c:79
#2 0x00007ffff798a40f in __assert_fail_base (fmt=0x7ffff7af3128 "%s%s%s:%u:
%s%sAssertion `%s' failed.\n%n", assertion=0x555555763465 "__abg_cond__",
file=0x555555763451 "../../src/abg-ir.cc", line=12554, function=<optimized
out>)
at assert.c:92
#3 0x00007ffff7999662 in __GI___assert_fail
(assertion=assertion@entry=0x555555763465 "__abg_cond__",
file=file@entry=0x555555763451 "../../src/abg-ir.cc", line=line@entry=12554,
function=function@entry=0x555555763050 "static abigail::ir::type_base_sptr
abigail::ir::type_base::get_canonical_type_for(abigail::ir::type_base_sptr)")
at assert.c:101
#4 0x00005555555e9c88 in abigail::ir::type_base::get_canonical_type_for
(t=std::shared_ptr<class abigail::ir::type_base> (use count 11, weak count 1) =
{...}) at ../../src/abg-ir.cc:12554
#5 0x00005555555f0d98 in abigail::ir::canonicalize (t=std::shared_ptr<class
abigail::ir::type_base> (use count 11, weak count 1) = {...}) at
/usr/include/c++/10/bits/shared_ptr_base.h:736
#6 0x00005555556eb980 in
abigail::xml_reader::read_context::perform_late_type_canonicalizing
(this=0x5555558308e0) at /usr/include/c++/10/ext/atomicity.h:100
#7 0x00005555556d53e7 in abigail::xml_reader::read_corpus_from_input
(ctxt=...) at ../../src/abg-reader.cc:1977
#8 0x000055555559956f in main (argc=<optimized out>, argv=0x7fffffffd738) at
/usr/include/c++/10/bits/shared_ptr_base.h:1324
The assertion is:
ABG_ASSERT(!class_or_union
|| !class_or_union->get_is_anonymous()
|| class_or_union->get_linkage_name().empty());
I'll see if I can reproduce this with a minimum of XML transformation.
--
You are receiving this mail because:
You are on the CC list for the bug.
next reply other threads:[~2021-03-29 15:10 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-03-29 15:10 gprocida+abigail at google dot com [this message]
2021-03-29 15:34 ` [Bug default/27661] " gprocida+abigail at google 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-27661-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).