File: valgrind.md

package info (click to toggle)
wlmaker 0.6.1%2Bgit20250919%2Bds-2
  • links: PTS, VCS
  • area: main
  • in suites: forky
  • size: 12,056 kB
  • sloc: ansic: 144,965; sh: 10,507; xml: 4,163; python: 1,400; makefile: 499; yacc: 119; lex: 70; awk: 12
file content (32 lines) | stat: -rw-r--r-- 806 bytes parent folder | download | duplicates (4)
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
29
30
31
32
# Using valgrind for wlmaker

By default, valgrind's leak detection reports many potential and definitive
leaks from libdrm and from fontconfig (via cairo). Since these are outside
our control, it's helpful to suppress these leaks [^1].

To run with these leak-checks suppressed:
```
valgrind \
  --leak-check=full \
  --suppressions=./libdrm.supp \
  --suppressions=./libcairo-fontconfig.supp \
  build/src/wlmaker
```

## Generating suppressions files

To (re)generate suppressions, run:

```
valgrind \
  --leak-check=full \
  --show-reachable=yes \
  --error-limit=no \
  --gen-suppressions=all \
  --suppressions=./libdrm.supp \
  --suppressions=./libcairo-fontconfig.supp \
  --log-file=new_suppressions.log \
  build/src/wlmaker
```

[^1]: https://wiki.wxwidgets.org/Valgrind_Suppression_File_Howto