Skip to content

Commit

Permalink
add note about MacOS malloc warnings for tsan build
Browse files Browse the repository at this point in the history
  • Loading branch information
ngoldbaum committed Jan 2, 2025
1 parent 2f6a95a commit f94d251
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions docs/debugging.md
Original file line number Diff line number Diff line change
Expand Up @@ -299,6 +299,22 @@ make -j 8
make install
```

!!! note

On MacOS, you may see messages like this when you start Python:

```
python(7027,0x1f6dfc240) malloc: nano zone abandoned due to inability to reserve vm space.
```

This message is being emmitted by the MacOS malloc implementation. As
[explained
here](https://stackoverflow.com/questions/64126942/malloc-nano-zone-abandoned-due-to-inability-to-preallocate-reserved-vm-space),
this happens for any program compiled with thread sanitizer on MacOS and can
be safely ignored by setting the `MallocNanoZone` environment variable to
0. You should only set this in session you are running thread sanitizer
under, as this setting will slow down other programs that allocate memory.

- To use the built Python interpreter:

```bash
Expand Down

0 comments on commit f94d251

Please sign in to comment.