File: sanitizers.md

package info (click to toggle)
qtrvsim 0.9.8-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 4,844 kB
  • sloc: cpp: 25,687; ansic: 7,754; makefile: 318; python: 303; sh: 278; asm: 268; xml: 9
file content (28 lines) | stat: -rw-r--r-- 783 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# Runtime sanitizers

## Using sanitizers in this project

All debug builds are by default built with address and undefined runtime
sanitizers. To disable them (which is strongly discouraged) run cmake with
options none.

```shell
cmake -DSANITIZERS=none
```

To run other selection of sanitiser use, pass colon separated list to the
command.

```shell
cmake -DSANITIZERS=memory,undefined
```

NOTE: Some sanitizer cannot be used together, like address and memory.

### Sanitizer debug info and Clang

If you are using sanitizers with clang and you don't files and line numbers,
make sure that `llvm-symbolizer` is installed and if that does not help, add
env `ASAN_SYMBOLIZER_PATH=` with path to your symbolizer executable. Most of the
time, having it in `PATH` should be enough.