Skip to content

Add ASan/UBSan sanitizer job to CI - #165

Merged
joto merged 1 commit into
masterfrom
kk/ci-sanitizers
Oct 15, 2026
Merged

joto merged 1 commit into
masterfrom
kk/ci-sanitizers

Conversation

@kkaefer

@kkaefer kkaefer commented Oct 14, 2026

Copy link
Copy Markdown
Member

Adds a sanitizers CI job that builds in Debug and runs the test suite with AddressSanitizer (including LeakSanitizer) and UndefinedBehaviorSanitizer, using gcc-14 and clang-18 on ubuntu-24.04.

  • -fno-sanitize-recover=all makes any undefined behaviour fail the test run instead of just printing a warning.
  • The job runs directly on the runner rather than in a container, because LeakSanitizer needs ptrace.

Runs the test suite with AddressSanitizer (incl. LeakSanitizer) and
UndefinedBehaviorSanitizer using gcc-14 and clang-18. Runs directly on
the runner instead of a container because LeakSanitizer needs ptrace.
@kkaefer
kkaefer marked this pull request as ready for review October 14, 2026 10:15
@kkaefer
kkaefer requested a review from a team as a code owner October 14, 2026 10:15
@kkaefer
kkaefer requested a review from joto October 14, 2026 12:03
@joto
joto merged commit 2243e3e into master Oct 15, 2026
71 checks passed
@kkaefer
kkaefer deleted the kk/ci-sanitizers branch October 15, 2026 21:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants