Details
-
Improvement
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
1.0.0
-
None
-
None
Description
The usage is to first enable sanitizers during compilation
cmake .. -DUSE_SANITIZERS=ON -DProton_DIR=... -DCMAKE_BUILD_TYPE=Release
or
cmake .. -DUSE_TSAN=ON -DProton_DIR=... -DCMAKE_BUILD_TYPE=Release
(TSan is incompatible with the other sanitizers.)
Then, either run unit tests with the usual ctest -VV, or run qdrouterd.
Sanitizers can be given parameters in environment variable. For example, TSAN_OPTIONS="color=always" ctest -VV to see colored error messages in ctest output. Other options are described on the Sanitizers website, e.g. https://github.com/google/sanitizers/wiki/ThreadSanitizerFlags
For best results, also compile Proton with sanitizers.
Attachments
Issue Links
- relates to
-
PROTON-1540 Add options to enable Sanitizers to CMake build
- Closed
- links to