From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 912203858034; Tue, 6 Apr 2021 11:00:03 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 912203858034 From: "szhorvat at gmail dot com" To: libabigail@sourceware.org Subject: [Bug default/27700] New: Assertion failure when using --drop-private-types Date: Tue, 06 Apr 2021 11:00:02 +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: szhorvat at gmail 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: Tue, 06 Apr 2021 11:00:03 -0000 https://sourceware.org/bugzilla/show_bug.cgi?id=3D27700 Bug ID: 27700 Summary: Assertion failure when using --drop-private-types Product: libabigail Version: unspecified Status: UNCONFIRMED Severity: normal Priority: P2 Component: default Assignee: dodji at redhat dot com Reporter: szhorvat at gmail dot com CC: libabigail at sourceware dot org Target Milestone: --- Created attachment 13351 --> https://sourceware.org/bugzilla/attachment.cgi?id=3D13351&action=3Ded= it Offending shared library I see an assertion failure when using abidw with the --drop-private-types f= lag: abidw: ../../src/abg-ir.cc:23638: size_t abigail::ir::hash_as_canonical_type_or_constant(const abigail::ir::type_bas= e*): Assertion `__abg_cond__' failed. This is with the current master branch from the git repo (as of today). With version 1.8, I see a segmentation fault instead. I am working on Ubuntu 20.04 x86_64, and using abidw on the igraph library (version 0.9.1). https://github.com/igraph/igraph/ While I realize that the following is far from a *minimal* example, here is how to reproduce the problem: Compile igraph: git clone https://github.com/igraph/igraph.git cd igraph && mkdir build && cd build cmake .. -DBUILD_SHARED_LIBS=3DON -DCMAKE_BUILD_TYPE=3DDebug make Run abidw: touch foo.h abidw --hf foo.h --drop-private-types src/libigraph.so > /dev/null abidw: ../../src/abg-ir.cc:23638: size_t abigail::ir::hash_as_canonical_type_or_constant(const abigail::ir::type_bas= e*): Assertion `__abg_cond__' failed. Aborted (core dumped) foo.h is a dummy empty header. The --hf or --hd options are necessary to trigger the problem. Originally, I used --hd to specify the location of the igraph headers, however, it seems to be sufficient to provide an empty head= er. This is what I did in the example above. I am attaching the offending shared library. P.S. The igraph build system auto-detects some external dependencies, so the above method to build igraph produces system-dependent results. However, it does not seem to matter which external libraries I link to=E2=80=94it crash= es all the same. --=20 You are receiving this mail because: You are on the CC list for the bug.=