Skip to content

Add sanitizer script#16

Open
alexanderstephan wants to merge 1 commit into
masterfrom
sanitizer-script
Open

Add sanitizer script#16
alexanderstephan wants to merge 1 commit into
masterfrom
sanitizer-script

Conversation

@alexanderstephan
Copy link
Copy Markdown

No description provided.

@alexanderstephan alexanderstephan self-assigned this May 15, 2026
…sis runs

Add a new helper script that builds haproxy with each supported
compiler sanitizer and runs the regression tests, collecting all
diagnostics into a single output directory with a color-coded summary.

Supported sanitizers and analyses:
  - AddressSanitizer (ASAN)
  - LeakSanitizer (LSAN, standalone with clang, via ASAN with gcc)
  - MemorySanitizer (MSAN, clang-only)
  - ThreadSanitizer (TSAN)
  - UndefinedBehaviorSanitizer (UBSAN)
  - GCC -fanalyzer static analysis (gcc-only)
  - Clang scan-build static analysis

The script auto-detects whether the compiler is gcc or clang and
adjusts accordingly: MSAN and standalone LSAN are clang-only,
-fanalyzer is gcc-only.  Each sanitizer build is followed by a
regression test run whose logs are scanned for sanitizer output.
A final summary table reports PASS/FAIL/SKIP per sanitizer.

Usage examples:
  ./scripts/run-sanitizers.sh                     # all sanitizers
  ./scripts/run-sanitizers.sh -c clang asan lsan   # specific ones
  ./scripts/run-sanitizers.sh -j4 -t reg-tests/ssl/ tsan
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.

1 participant