File tree Expand file tree Collapse file tree 2 files changed +9
-0
lines changed Expand file tree Collapse file tree 2 files changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -64,6 +64,13 @@ all sanitizers or fail if none are available. If a command-separated list of
64
64
specific sanitizers is given, configure will fail unless they all are available.
65
65
Note that the some sanitizers may incur a performance penalty, and the Address
66
66
Sanitizer may require a runtime library.
67
+ To see line numbers in backtraces, declare these environment variables
68
+ (adjust the llvm-symbolizer path as needed for your system):
69
+
70
+ ``` sh
71
+ export ASAN_SYMBOLIZER_PATH=/usr/bin/llvm-symbolizer-3.4
72
+ export ASAN_OPTIONS=symbolize=1
73
+ ```
67
74
68
75
### Linux and other Unixes
69
76
Original file line number Diff line number Diff line change @@ -150,6 +150,8 @@ def asplode(lib)
150
150
end
151
151
$CFLAGS << " -fsanitize=#{ s } "
152
152
end
153
+ # Options for line numbers in backtraces
154
+ $CFLAGS << ' -g -fno-omit-frame-pointer'
153
155
end
154
156
155
157
if RUBY_PLATFORM =~ /mswin|mingw/
You can’t perform that action at this time.
0 commit comments