Reading the report by @collinfunk , I also tried a build with -fsanitize=address (adding CFLAGS='-O3 -g -fno-omit-frame-pointer -fsanitize=address' to configure options (for libgpg-error, libgcrypt, and gnupg).
I have the failure result of gnupg for tests/openpgp/trust-pgp-4.scm.
I located the issue, it is because of regexp routines in libasan library.
$ ./bin/gpg --import ../../wg/gnupg/tests/openpgp/trust-pgp/scenario4.asc $ ./bin/gpg --debug=trust --check-trustdb --yes [...] gpg: DBG: regexp '<[^>]+[@.]example\\.com>$' ('<[^>]+[@.]example\\.com>$') on 'Heidi <heidi@example.org>': NO
... which should be:
gpg: DBG: regexp '<[^>]+[@.]example\\.org>$' ('<[^>]+[@.]example\\.org>$') on 'Heidi <heidi@example.org>': YES gpg: DBG: trust sig on Heidi <heidi@example.org>, sig depth is 2, kr depth is 1