From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id E92E2384B801; Thu, 9 Sep 2021 09:30:48 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org E92E2384B801 From: "gprocida at google dot com" To: libabigail@sourceware.org Subject: [Bug default/28320] New: abidw - (non-deterministic) infinite loop in XML writer Date: Thu, 09 Sep 2021 09:30:48 +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 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 attachments.created 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: Thu, 09 Sep 2021 09:30:49 -0000 https://sourceware.org/bugzilla/show_bug.cgi?id=3D28320 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=3D13659&action=3Ded= it compressed library file libabigail version: https://android.googlesource.com/platform/external/libabigail/+/4e975fe2bc0= 39f3354fd7bb3df0ea9ed289fda40 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 is emitted in a tight loop. --=20 You are receiving this mail because: You are on the CC list for the bug.=