Bug 27699 - Assertion failure on armv7l
Summary: Assertion failure on armv7l
Status: RESOLVED FIXED
Alias: None
Product: libabigail
Classification: Unclassified
Component: default (show other bugs)
Version: unspecified
: P2 normal
Target Milestone: ---
Assignee: Dodji Seketeli
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-04-06 06:40 UTC by Szabolcs Horvát
Modified: 2021-04-06 17:13 UTC (History)
2 users (show)

See Also:
Host:
Target:
Build:
Last reconfirmed: 2021-04-06 00:00:00


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Szabolcs Horvát 2021-04-06 06:40:51 UTC
I am using abidw on a Raspberry Pi 4, Raspbian Buster. When I compile the igraph project (https://github.com/igraph/igraph/) in debug mode, with link-time optimization, into a shared library, and call

abidw src/libigraph.so

it crashes with the following:

abidw: abg-dwarf-reader.cc:13241: void abigail::dwarf_reader::finish_member_function_reading(Dwarf_Die*, const function_decl_sptr&, const class_or_union_sptr&, abigail::dwarf_reader::read_context&): Assertion `__abg_cond__' failed.

This is libabigail 1.8.0 that I compiled myself from sources. However, the same crash happens also with libabigail 1.5.0 which is included in Raspbian Buster.

It only happens when I compile this project with link-time optimization. Compiler is: gcc (Raspbian 8.3.0-6+rpi1) 8.3.0 

I cannot reproduce the same issue on Ubuntu 20.04 on x86_64.

I am happy to provide the .so file, or more specific information about how I compiled igraph to obtain the offending .so file.
Comment 1 Matthias Maennich 2021-04-06 09:06:55 UTC
Thanks for taking the time to file this bug report.

Would you mind, retesting with the latest master? Also, would you be able to attach the reproducing binary to this bug report?
Comment 2 Szabolcs Horvát 2021-04-06 17:13:23 UTC
This no longer happens when I build libabigail from the master branch.