Skip to content

Commit b528931

Browse files
committed
Add troubleshooting for tsan
1 parent 242081e commit b528931

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

Tools/pixi-packages/README.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,3 +36,18 @@ Each package definition is contained in a subdirectory, but they share the build
3636
- Support for Windows
3737
- Using a single `pixi.toml` and `recipe.yaml` for all package variants is blocked on https://github.com/prefix-dev/pixi/issues/4599
3838
- A workaround can be removed from the build script once https://github.com/prefix-dev/rattler-build/issues/2012 is resolved
39+
40+
## Troubleshooting
41+
42+
TSan builds may crash on Linux with
43+
```
44+
FATAL: ThreadSanitizer: unexpected memory mapping 0x7977bd072000-0x7977bd500000
45+
```
46+
To fix it, try reducing `mmap_rnd_bits`:
47+
48+
```bash
49+
$ sudo sysctl vm.mmap_rnd_bits
50+
vm.mmap_rnd_bits = 32 # too high for TSan
51+
$ sudo sysctl vm.mmap_rnd_bits=28 # reduce it
52+
vm.mmap_rnd_bits = 28
53+
```

0 commit comments

Comments
 (0)