We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 85e2a26 commit e74f8a0Copy full SHA for e74f8a0
1 file changed
.bazelrc
@@ -108,6 +108,11 @@ build:asan --copt=-O1
108
build:asan --copt=-g
109
build:asan --copt=-fno-omit-frame-pointer
110
build:asan --linkopt=-fsanitize=address
111
+# TCMalloc is incompatible with ASan: __asan_init's interceptor setup calls
112
+# dlsym -> malloc before TCMalloc is initialized, segfaulting at startup.
113
+# Override the per-target malloc attribute to use the system allocator, which
114
+# ASan intercepts cleanly.
115
+build:asan --custom_malloc=@bazel_tools//tools/cpp:malloc
116
117
# Flags with enough debug symbols to get useful outputs with Linux `perf`
118
build:profile --strip=never
0 commit comments