g-ir-scanner hangs using clang and asan
Symptom
A meson build hangs (never finishes) and ps -ef shows that g-ir-scanner and a tmp-introspect.../Gimp-3.0 process are running. The output file tmp-introspect.../dump.xml shows only two lines:
<?xml version="1.0"?>
<dump>
Do you have any suggestions for debugging? I have tried to attach gdb to the running hung process tmp.../Gimp-3.0 but it is in a container and a backtrace yields not symbolized information. Could I harness the template for the generated code to print messages?
Context
Ubuntu 21.04 (inside a container)
clang 12
The meson build system for GIMP (which gimp.org says is experimental, their automake build is preferred.)
CC=clang CC_LD=lld in the env before 'meson setup' and 'meson compile' steps.
Passing -Db_sanitize=address, Db_lundef=false to 'meson setup'
The gimp.org official automake build using gcc works fine.
The meson with clang build works without asan (but there are some run-time issues in the built GIMP possibly also around introspection.)
Maybe I should just stick to gcc and forget about clang and asan?