From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id A791A3851C22; Mon, 29 Mar 2021 15:10:20 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org A791A3851C22 From: "gprocida+abigail at google dot com" 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 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: gprocida+abigail 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: 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: Mon, 29 Mar 2021 15:10:20 -0000 https://sourceware.org/bugzilla/show_bug.cgi?id=3D27661 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=3Dsig@entry=3D6) at ../sysdeps/unix/sysv/linux/raise.c:= 50 #1 0x00007ffff798a537 in __GI_abort () at abort.c:79 #2 0x00007ffff798a40f in __assert_fail_base (fmt=3D0x7ffff7af3128 "%s%s%s:= %u: %s%sAssertion `%s' failed.\n%n", assertion=3D0x555555763465 "__abg_cond__", file=3D0x555555763451 "../../src/abg-ir.cc", line=3D12554, function=3D) at assert.c:92 #3 0x00007ffff7999662 in __GI___assert_fail (assertion=3Dassertion@entry=3D0x555555763465 "__abg_cond__", file=3Dfile@entry=3D0x555555763451 "../../src/abg-ir.cc", line=3Dline@entry= =3D12554,=20 function=3Dfunction@entry=3D0x555555763050 "static abigail::ir::type_ba= se_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=3Dstd::shared_ptr (use count 11, weak coun= t 1) =3D {...}) at ../../src/abg-ir.cc:12554 #5 0x00005555555f0d98 in abigail::ir::canonicalize (t=3Dstd::shared_ptr (use count 11, weak count 1) =3D {...}) at /usr/include/c++/10/bits/shared_ptr_base.h:736 #6 0x00005555556eb980 in abigail::xml_reader::read_context::perform_late_type_canonicalizing (this=3D0x5555558308e0) at /usr/include/c++/10/ext/atomicity.h:100 #7 0x00005555556d53e7 in abigail::xml_reader::read_corpus_from_input (ctxt=3D...) at ../../src/abg-reader.cc:1977 #8 0x000055555559956f in main (argc=3D, argv=3D0x7fffffffd7= 38) 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. --=20 You are receiving this mail because: You are on the CC list for the bug.=