ci: support workflow with sanitizers #47
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What ❔
Add manual workflow to run
compiler-tester
with sanitizers enabled.The workflow is working as follows:
llvm-sanitizer
parameterrust-sanitizer
parameterrust-sanitizer
parameterMore info about Rust sanitizers is available here.
Possible values are:
address
,cfi
,hwaddress
,kcfi
,leak
,memory
, orthread
Only
memory
andthread
were tested and supported for now, although CI allows us to try other variations.For more information about the supported sanitizers in LLVM, see this page.
Possible values for LLVM sanitizer are
Address
,Memory
,MemoryWithOrigins
,Undefined
,Thread
,DataFlow
, andAddress;Undefined
.Only
Address
andThread
were tested and supported for now, although CI allows us to try other variations.Why ❔
Fixes CPR-1052
Testing
Thread
andAddress
sanitizers tested:Address sanitizer workflow fails with memory leak reported here.
Thread sanitizer workflow. (Timeout disabled tests execution after ~10 hours, no issues found. I disabled the timeout.)
Checklist
cargo fmt
and checked withcargo clippy
.