From 86031e595871b57c3fb879e9977128db9923e8b4 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Thu, 16 Nov 2023 21:17:48 +0530 Subject: [PATCH] Prevent libmalloc from printing garbage when run with asan on macOS CI --- .github/workflows/ci.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/ci.py b/.github/workflows/ci.py index 32f4ccca940..9c1fd17bee5 100644 --- a/.github/workflows/ci.py +++ b/.github/workflows/ci.py @@ -61,6 +61,9 @@ def build_kitty(): cmd = f'{python} setup.py build --verbose' if os.environ.get('KITTY_SANITIZE') == '1': cmd += ' --debug --sanitize' + if is_macos: + # see https://stackoverflow.com/questions/64126942/malloc-nano-zone-abandoned-due-to-inability-to-preallocate-reserved-vm-space + os.environ['MallocNanoZone'] = '0' run(cmd)