Gather debug info on broken unit tests
This executes kyua debug
on broken unit tests, thus gathers various debug info as well as produces backtrace from a core.
Because kyua debug
does not handle libtool binaries well and executes gdb
directly on the libtool script instead of the actual binary a way to trick kyua debug
is needed (/usr/bin/gdb
is moved to a backup location and a custom script finds the right binary and runs gdb
from the backup location on its own).
There are following outstanding issues:
-
CI hosts need kernel.core_uses_pid=1
set permanently otherwisekyua
won't find it's cores (deliver via https://gitlab.isc.org/isc-private/devops/issues/51) -
sid image does not have gdb
: https://gitlab.isc.org/isc-projects/bind9/-/jobs/452129 (Fix: image rebuild.) -
Fedora 30 image does not have sysctl
tool: https://gitlab.isc.org/isc-projects/bind9/-/jobs/452130 (Fix: https://gitlab.isc.org/isc-projects/images/merge_requests/12.) -
Add FreeBSD support: b9513898. -
ASAN sid image (ASAN suppressed coredump): Fix in 1af9eb3a. -
Add OpenBSD support: 986c47c1.
Edited by Michal Nowak