public inbox for libabigail@sourceware.org
 help / color / mirror / Atom feed
* [Bug default/27769] New: XML reader shares a corpus object between corpora
@ 2021-04-23  7:52 gprocida+abigail at google dot com
  2021-04-23 15:31 ` [Bug default/27769] " gprocida+abigail at google dot com
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: gprocida+abigail at google dot com @ 2021-04-23  7:52 UTC (permalink / raw)
  To: libabigail

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

            Bug ID: 27769
           Summary: XML reader shares a corpus object between corpora
           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: ---

Created attachment 13396
  --> https://sourceware.org/bugzilla/attachment.cgi?id=13396&action=edit
fresh corpus object patch

Commit ebaf3305bc5adc5eb45cca2dbb9b7d94b99b6800 added a more detailed error
message around an assertion about architecture consistency.

I revisited the trigger for this today as I've been testing using whole
histories of XML versions, including a few ABIs which contained stray objects
from a different architecture. Note that the corpora in the XML were
consistently of one architecture each (as abi-instr has no architecture
attribute).

I also separately noticed yesterday that parts of the ABI get dropped if the
same abi-instr path is used in multiple corpora.

Both the assertion failure and the path collision issue go away if the XML
reader allocates a fresh corpus object for each corpus element. I have a
trivial patch to do this (and the test suite passes). However, I haven't yet
looked into whether there was an underlying reason for re-using the corpus
object.

I've attached the patch here for completeness.

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2021-08-23  9:00 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-04-23  7:52 [Bug default/27769] New: XML reader shares a corpus object between corpora gprocida+abigail at google dot com
2021-04-23 15:31 ` [Bug default/27769] " gprocida+abigail at google dot com
2021-04-27 11:32 ` gprocida+abigail at google dot com
2021-08-23  8:59 ` gprocida at google dot com

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).