Skip to content

Commit 68fe000

Browse files
committed
[sanitizer] abort_on_error=1 for MSAN
1 parent 632bb2e commit 68fe000

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

zorg/buildbot/builders/sanitizers/buildbot_functions.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -285,12 +285,14 @@ function build_stage2 {
285285

286286
if [ "$sanitizer_name" == "msan" ]; then
287287
export MSAN_SYMBOLIZER_PATH="${llvm_symbolizer_path}"
288-
export MSAN_OPTIONS="log_path=${log_path}:log_exe_name=1"
288+
export MSAN_OPTIONS="abort_on_error=1"
289+
export MSAN_OPTIONS+=":log_path=${log_path}:log_exe_name=1"
289290
llvm_use_sanitizer="Memory"
290291
fsanitize_flag="-fsanitize=memory"
291292
elif [ "$sanitizer_name" == "msan_track_origins" ]; then
292293
export MSAN_SYMBOLIZER_PATH="${llvm_symbolizer_path}"
293-
export MSAN_OPTIONS="log_path=${log_path}:log_exe_name=1"
294+
export MSAN_OPTIONS="abort_on_error=1"
295+
export MSAN_OPTIONS+=":log_path=${log_path}:log_exe_name=1"
294296
llvm_use_sanitizer="MemoryWithOrigins"
295297
fsanitize_flag="-fsanitize=memory -fsanitize-memory-track-origins"
296298
elif [ "$sanitizer_name" == "asan" ]; then

0 commit comments

Comments
 (0)