public inbox for libabigail@sourceware.org
 help / color / mirror / Atom feed
* [Bug default/28320] New: abidw - (non-deterministic) infinite loop in XML writer
@ 2021-09-09  9:30 gprocida at google dot com
  2021-09-09  9:44 ` [Bug default/28320] " gprocida at google dot com
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: gprocida at google dot com @ 2021-09-09  9:30 UTC (permalink / raw)
  To: libabigail

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

            Bug ID: 28320
           Summary: abidw - (non-deterministic) infinite loop in XML
                    writer
           Product: libabigail
           Version: unspecified
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: default
          Assignee: dodji at redhat dot com
          Reporter: gprocida at google dot com
                CC: libabigail at sourceware dot org
  Target Milestone: ---

Created attachment 13659
  --> https://sourceware.org/bugzilla/attachment.cgi?id=13659&action=edit
compressed library file

libabigail version:

https://android.googlesource.com/platform/external/libabigail/+/4e975fe2bc039f3354fd7bb3df0ea9ed289fda40

This corresponds roughly to current master
190350a35f842574cf15b9a98f1ccbc3aa31a840. However, there are some minor
differences. None currently in the XML writer or IR.

$ git diff --stat aosp/upstream-master HEAD include src tools
 include/abg-comparison.h  |    6 +
 include/abg-version.h     |    8 +
 src/abg-comparison-priv.h |    2 +
 src/abg-comparison.cc     |   16 ++
 src/abg-config.cc         |    9 +
 src/abg-leaf-reporter.cc  |   55 ++++-
 src/abg-reader.cc         |   54 ++--
 src/abg-reporter-priv.cc  |   88 ++-----
 src/abg-reporter-priv.h   |    2 +-
 src/abg-tools-utils.cc    |   11 +-
 tools/Makefile.am         |    8 +-
 tools/abidiff.cc          |    9 +-
 tools/abitidy.cc          | 1428
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 13 files changed, 1577 insertions(+), 119 deletions(-)

More significantly, abidw and its dependencies are compiled within a
standardised Android build environment (Clang, compile flags, libc++ etc.).

With the attached file, libc.so, about 4% of

abidw libc.so --out-file /dev/null

invocations result in an infinite loop.

The line

    <class-decl name='DIR' is-struct='yes' visibility='default'
is-declaration-only='yes' id='type-id-1114'/>

is emitted in a tight loop.

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

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

end of thread, other threads:[~2021-09-14 16:54 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-09-09  9:30 [Bug default/28320] New: abidw - (non-deterministic) infinite loop in XML writer gprocida at google dot com
2021-09-09  9:44 ` [Bug default/28320] " gprocida at google dot com
2021-09-09 12:30 ` gprocida at google dot com
2021-09-13 10:23 ` dodji at redhat dot com
2021-09-13 15:12 ` dodji at redhat dot com
2021-09-13 20:09 ` gprocida at google dot com
2021-09-14 16:54 ` 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).