You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: kb/development/debugging_tips.md
+86Lines changed: 86 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,6 +7,92 @@ This document assumes some familiarity with the project, e.g. that you already k
7
7
8
8
This document is written primarily with Linux in mind. Similar platforms such as macOS will require few adaptations. Windows (except WSL) is out of scope.
By default, ASan/MSan/TSan/UBSan display traces without symbolic information. For traces with symbol names, you need to set environment variables:
70
+
71
+
```
72
+
export ASAN_OPTIONS=symbolize=1
73
+
export MSAN_OPTIONS=symbolize=1
74
+
export TSAN_OPTIONS=symbolize=1
75
+
export UBSAN_OPTIONS=print_stacktrace=1
76
+
```
77
+
78
+
With Clang, depending on how it's installed, you may need to specify the path to the correct version of `llvm-symbolizer` in `ASAN_SYMBOLIZER_PATH`, `MSAN_SYMBOLIZER_PATH` and `TSAN_SYMBOLIZER_PATH`. For example:
79
+
80
+
```
81
+
if ASAN_SYMBOLIZER_PATH=$(readlink -f "$(command -v clang)") &&
0 commit comments