Skip to content

Commit

Permalink
Prevent libmalloc from printing garbage when run with asan on macOS CI
Browse files Browse the repository at this point in the history
  • Loading branch information
kovidgoyal committed Nov 16, 2023
1 parent d8dcc89 commit 86031e5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/ci.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)


Expand Down

0 comments on commit 86031e5

Please sign in to comment.