Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion development-tools/clang.rst
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,11 @@ Then, run ``./configure`` with the relevant flags:
* ASan: ``--with-address-sanitizer --without-pymalloc``
* UBsan: ``--with-undefined-behavior-sanitizer``

It is OK to specify both sanitizers.
Disabling pymalloc for ASan helps uncover more bugs since it is more effective
with the system allocator (pymalloc doesn't add padding in between the allocated
objects and doesn't poison/annotate the memory it manages for ASan).

It is also OK to specify both sanitizers.

After that, run ``make`` and ``make test`` as usual.
Note that ``make`` itself may fail with a sanitizer failure,
Expand Down
Loading