]> git.ipfire.org Git - thirdparty/dbus.git/commitdiff
ci: get UBSan to fail and print full backtraces
authorEvgeny Vereshchagin <evvers@ya.ru>
Mon, 10 Oct 2022 22:22:06 +0000 (22:22 +0000)
committerEvgeny Vereshchagin <evvers@ya.ru>
Thu, 13 Oct 2022 03:20:31 +0000 (03:20 +0000)
Unlike ASan, by default UBSan prints one-line warnings and keeps going
and it makes it impossible for the CI to catch issues automatically when
it runs the unit tests. With this patch applied the CI should be able to
prevent issues like
https://gitlab.freedesktop.org/smcv/dbus-issue413/-/merge_requests/1#note_1549306
from making it into the repository going forward.

Signed-off-by: Evgeny Vereshchagin <evvers@ya.ru>
tools/ci-build.sh

index 6420cdcb17a278139e83a26e2c79b37f6b34580d..287b170e1499cb6c6228a099a2462dbf22a1a547 100755 (executable)
@@ -269,6 +269,8 @@ esac
 export MAKE=${make}
 make="${make} -j${ci_parallel} V=1 VERBOSE=1"
 
+export UBSAN_OPTIONS=print_stacktrace=1:print_summary=1:halt_on_error=1
+
 case "$ci_buildsys" in
     (autotools)
         case "$ci_variant" in