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.
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.
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.
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.