valadoc 0.43.90 fails to build docs for glib-2.0 and gobject-2.0
Building docs of glib-2.0 and gobject-2.0 for valadoc.org [1] fails.
Regression of 54ba304e
[1] https://github.com/Valadoc/valadoc-org
$ G_DEBUG=fatal-criticals gdb --args valadoc --target-glib 2.98 --importdir girs --doclet "." -o "tmp/glib-2.0" "/home/rico/jhbuild/install/share/vala-0.44/vapi/glib-2.0.vapi" --vapidir "/home/rico/jhbuild/install/share/vala-0.44/vapi" --girdir "girs/gir-1.0" --pkg posix --use-svg-images -X --disable-devhelp --importdir documentation/glib-2.0 --import glib-2.0 --importdir "girs/gir-1.0" --import GLib-2.0 --metadatadir documentation/glib-2.0 --importdir examples --import glib-2.0-examples --wiki documentation/glib-2.0/wiki
** (valadoc:8178): CRITICAL **: 10:40:34.273: vala_symbol_get_parent_symbol: assertion 'self != NULL' failed
Program received signal SIGTRAP, Trace/breakpoint trap.
0x00007ffff7ade6f5 in _g_log_abort (breakpoint=1) at ../glib/gmessages.c:554
554 G_BREAKPOINT ();
(gdb) bt
#0 0x00007ffff7ade6f5 in _g_log_abort (breakpoint=1) at ../glib/gmessages.c:554
#1 0x00007ffff7adf9fd in g_logv (log_domain=0x0, log_level=G_LOG_LEVEL_CRITICAL, format=<optimized out>,
args=args@entry=0x7fffffffcdd0) at ../glib/gmessages.c:1371
#2 0x00007ffff7adfbcf in g_log (log_domain=log_domain@entry=0x0, log_level=log_level@entry=G_LOG_LEVEL_CRITICAL,
format=format@entry=0x7ffff7b2e668 "%s: assertion '%s' failed") at ../glib/gmessages.c:1413
#3 0x00007ffff7ae03c9 in g_return_if_fail_warning (log_domain=log_domain@entry=0x0,
pretty_function=pretty_function@entry=0x7ffff7e8b990 <__func__.22730> "vala_symbol_get_parent_symbol",
expression=expression@entry=0x7ffff7e60010 "self != NULL") at ../glib/gmessages.c:2767
#4 0x00007ffff7e488cd in vala_symbol_get_parent_symbol (self=0x0) at valasymbol.c:1285
#5 vala_symbol_get_parent_symbol (self=self@entry=0x0) at valasymbol.c:1280
#6 0x00005555555658a4 in valadoc_drivers_tree_builder_get_namespace (file=0x5555571433a0, symbol=<optimized out>,
pkg=0x5555571512c0, self=0x555555583e40) at treebuilder.c:1176
#7 valadoc_drivers_tree_builder_get_parent_node_for (element=<optimized out>, self=0x555555583e40) at treebuilder.c:1612
#8 valadoc_drivers_tree_builder_get_parent_node_for (self=0x555555583e40, element=<optimized out>) at treebuilder.c:1569
#9 0x0000555555567f27 in valadoc_drivers_tree_builder_real_visit_class (base=0x555555583e40, element=0x5555562d2de0)
at treebuilder.c:1669
#10 0x00007ffff7dfbc00 in vala_namespace_real_accept_children (base=0x555555597150, visitor=0x555555583e40) at valanamespace.c:1673
#11 0x00007ffff7d78a14 in vala_code_context_accept (self=self@entry=0x555555596190, visitor=visitor@entry=0x555555583e40)
at valacodecontext.c:823
#12 0x0000555555568662 in valadoc_drivers_tree_builder_build (self=self@entry=0x555555583e40,
settings=settings@entry=0x555555588040, reporter=reporter@entry=0x555555585080) at treebuilder.c:3041
#13 0x000055555555f84b in valadoc_drivers_driver_real_build (base=0x555555587c50, settings=0x555555588040, reporter=0x555555585080)
at driver.c:224
#14 0x000055555555f1b8 in vala_doc_run (reporter=0x555555585080, self=0x555555586ea0) at valadoc.c:882
#15 vala_doc_main (args_length1=<optimized out>, args=<optimized out>) at valadoc.c:1502
#16 main (argc=<optimized out>, argv=<optimized out>) at valadoc.c:1512
Edited by Rico Tzschichholz