Bug 18844 - assertion failure in abidw at abg-dwarf-reader.cc:6537
Summary: assertion failure in abidw at abg-dwarf-reader.cc:6537
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: 2015-08-18 02:20 UTC by andrew.c.morrow
Modified: 2015-08-18 13:04 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:
Last reconfirmed:


Attachments
reproducing shared library (435.96 KB, application/x-sharedlib)
2015-08-18 02:20 UTC, andrew.c.morrow
Details

Note You need to log in before you can comment on or make changes to this bug.
Description andrew.c.morrow 2015-08-18 02:20:05 UTC
Created attachment 8528 [details]
reproducing shared library

Running abidw built from source at f38c19f8daece69475c090f0d4f5cde9949470ad against the attached shared library results in an assertion failure:

abidw: abg-dwarf-reader.cc:6537: abigail::ir::class_decl_sptr 
abigail::dwarf_reader::build_class_type_and_add_to_ir(abigail::dwarf_reader::read_context&, Dwarf_Die*, bool, abigail::ir::scope_decl*, bool, abigail::ir::class_decl_sptr, bool, size_t): Assertion `ctxt.is_decl_only_class_scheduled_for_resolution(b)' failed.
Comment 1 Dodji Seketeli 2015-08-18 10:38:01 UTC
Thanks for submitting this problem.

I can reproduce it.

Here is what I understand from the issue.

The libabigail DWARF reader is failing to schedule declaration-only classes for resolution (finding the definition of the declaration later in the current DSO being analyzed) for cases where the declaration-only class does have member types.

I am preparing a patch to address the issue.
Comment 2 Dodji Seketeli 2015-08-18 10:57:41 UTC
This bug should be fixed in the master branch by commit https://sourceware.org/git/?p=libabigail.git;a=commit;h=ba5b4452d54caf22fb1d0e847d69eef3745ea91d.

Thank you for taking the time to submit it and sorry for the inconvenience.
Comment 3 andrew.c.morrow 2015-08-18 13:04:26 UTC
I pulled your changes, and confirmed the fix. Thanks again! With this fix, I can now run abidw against all of the shared libraries generated during the MongoDB build.