Skip to content

Commit

Permalink
Clarify how to enable ASan leak checking on macOS
Browse files Browse the repository at this point in the history
  • Loading branch information
jsiwek committed Jan 8, 2020
1 parent 60ff406 commit 3bd1c12
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions devel/contributors/memory-checks.rst
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,11 @@ memory errors and/or leaks. Simply configure like::

./configure --build-type=debug --sanitizers=address

Any execution of the Zeek binary then checks for memory-related errors and
leaks automatically. This includes any runs of regression test suite(s).
Any execution of the Zeek binary then checks for memory-related errors
automatically. This includes any runs of regression test suite(s). On Linux,
leak checking is also enabled by default. To enable leak checking for macOS,
make sure to set environment variable ``ASAN_OPTIONS=detect_leaks=1`` as
AddressSanitizer may not enable it by default like it does on Linux.

Either GCC or Clang compilers support address/leak sanitizers, except Apple's
clang may not implement the leak sanitizer. For the CI infrastructure, GCC
Expand Down

0 comments on commit 3bd1c12

Please sign in to comment.