Commit 99324e41 by FritzFlorian

Add address sanitizer to CI.

parent fba551da
Pipeline #1106 failed with stages
in 2 minutes 19 seconds
...@@ -22,3 +22,8 @@ run_thread_sanitizer: ...@@ -22,3 +22,8 @@ run_thread_sanitizer:
stage: sanitizer stage: sanitizer
script: script:
./ci_scripts/run_thread_sanitizer.sh ./ci_scripts/run_thread_sanitizer.sh
run_address_sanitizer:
stage: sanitizer
script:
./ci_scripts/run_address_sanitizer.sh
#!/usr/bin/env bash
mkdir cmake-build-release-address-sanitizer
cd cmake-build-release-address-sanitizer
cmake .. -DCMAKE_BUILD_TYPE=RELEASE -DTHREAD_SANITIZER=OFF -DADDRESS_SANITIZER=ON
make
# run the actual tests with sanitizer enabled, reporting the result
ASAN_OPTIONS="detect_stack_use_after_return=1 detect_leaks=1" ./bin/tests
STATUS_CODE=$?
exit $STATUS_CODE
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment