3 ms·
> Does Valgrind work with Rust binaries? Technically yes, but for allocations you need to run nightly and either alloc_system (disable jemalloc) or rebuild nig
by masklinn 10y ago
> Does Valgrind work with Rust binaries?
Technically yes, but for allocations you need to run nightly and either alloc_system (disable jemalloc) or rebuild nightly with JEMALLOC_FLAGS='--enable-valgrind', otherwise valgrind misses jemalloc's allocations, which is more or less all of them: https://github.com/rust-lang/rust/issues/28224 https://github.com/rust-lang/rust/issues/28224
And the second fix may or may not keep working as jemalloc 5 apparently removes valgrind support: https://github.com/jemalloc/jemalloc/issues/369 https://github.com/jemalloc/jemalloc/issues/369