From d3772ae8b5f11feb8cd6483a6d9644f5d48fb07f Mon Sep 17 00:00:00 2001 From: Vedant Kumar Date: Mon, 29 Jul 2019 22:54:43 +0000 Subject: [PATCH] [docs] Add a note about where UBSan emits logs git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@367270 91177308-0d34-0410-b5e6-96231b3b80d8 --- docs/UndefinedBehaviorSanitizer.rst | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/docs/UndefinedBehaviorSanitizer.rst b/docs/UndefinedBehaviorSanitizer.rst index 38cd3645bc..06d533f493 100644 --- a/docs/UndefinedBehaviorSanitizer.rst +++ b/docs/UndefinedBehaviorSanitizer.rst @@ -224,6 +224,12 @@ will need to: ``UBSAN_OPTIONS=print_stacktrace=1``. #. Make sure ``llvm-symbolizer`` binary is in ``PATH``. +Logging +======= + +The default log file for diagnostics is "stderr". To log diagnostics to another +file, you can set ``UBSAN_OPTIONS=log_path=...``. + Silencing Unsigned Integer Overflow =================================== To silence reports from unsigned integer overflow, you can set -- 2.50.1