File tree Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Original file line number Diff line number Diff line change 8
8
- [ Formatting] ( #formatting )
9
9
- [ IDE integration] ( #ide-integration )
10
10
- [ Debugging] ( #debugging )
11
- - [ UBSan stacktraces ] ( #ubsan- stacktraces )
11
+ - [ Stacktraces ] ( #stacktraces )
12
12
- [ Attaching a debugger] ( #attaching-a-debugger )
13
13
- [ Debugging on Linux] ( #debugging-on-linux )
14
14
- [ Inspecting Clang ASTs] ( #inspecting-clang-asts )
@@ -112,15 +112,18 @@ need to reload the editor).
112
112
113
113
## Debugging
114
114
115
- ### UBSan stacktraces
115
+ ### Stacktraces
116
116
117
- The default mode of UBSan will not print stack traces on failures.
117
+ The default modes of ASan and UBSan do not print stack traces on failures.
118
118
I recommend maintaining a parallel build of LLVM
119
119
at the same commit as in [ fetch_deps.bzl] ( /fetch_deps.bzl ) .
120
- UBSan needs a ` llvm-symbolizer ` binary on ` PATH `
121
- to print stack traces, which can provided via the separate build.
120
+ Both sanitizers need access to ` llvm-symbolizer ` to print stack traces,
121
+ which can provided via the separate build.
122
122
123
123
``` bash
124
+ # For ASan
125
+ ASAN_SYMBOLIZER_PATH=" $PWD /../llvm-project/build/bin/llvm-symbolizer" ASAN_OPTIONS=symbolize=1 < scip-clang invocation>
126
+ # For UBSan
124
127
PATH=" $PWD /../llvm-project/build/bin:$PATH " UBSAN_OPTIONS=print_stacktrace=1 < scip-clang invocation>
125
128
```
126
129
You can’t perform that action at this time.
0 commit comments