Skip to content

Valgrind compat #1494

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
shanemikel opened this issue Sep 1, 2018 · 1 comment
Closed

Valgrind compat #1494

shanemikel opened this issue Sep 1, 2018 · 1 comment

Comments

@shanemikel
Copy link

The rust toolchain installed with rustup on my Ubuntu linux platform doesn't seem to be compatible with valgrind. I've tried various things like using #![feature(alloc_system)], to no avail.

one of the answers mentioned in rust-lang/rust#28224 is to build jemalloc with --enable-valgrind

@shanemikel shanemikel changed the title Memory leak checking Valgrind compat Sep 1, 2018
@joshtriplett
Copy link
Member

This is a bug in rust, not in rustup. The planned switch to the system allocator should fix it, and in the interim, you should be able to switch to the system allocator yourself by using:

use std::alloc::System;

#[global_allocator]
static A: System = System;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants