Skip to content
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

[bug] Reading uninit memory #467

Closed
xacrimon opened this issue Feb 8, 2020 · 3 comments
Closed

[bug] Reading uninit memory #467

xacrimon opened this issue Feb 8, 2020 · 3 comments

Comments

@xacrimon
Copy link

xacrimon commented Feb 8, 2020

Uh it looks like something is reading uninit memory. MSan is screaming about it anyway.
Here is a link to the failing CI job about it: https://github.com/xacrimon/dashmap/runs/433027911

It contains the MSan output.

@cynecx
Copy link
Contributor

cynecx commented Feb 8, 2020

So the issue lies somewhere in crossbeam-utils' build-script. Without a proper backtrace it's probably hard to say, however I would assume that this might be false-positive somehow.

Again, I am not sure, but this might be related: rust-lang/rust#39610.

@xacrimon
Copy link
Author

xacrimon commented Feb 8, 2020

Yep, I'm gonna see if I get can a backtrace.

@xacrimon xacrimon closed this as completed Feb 8, 2020
@Shnatsel
Copy link
Contributor

Shnatsel commented Feb 8, 2020

Normally you need to exclude build scripts from running with sanitizers, like so:

RUSTFLAGS="-Z sanitizer=$SAN" cargo run --target x86_64-unknown-linux-gnu

Memory Sanitizer is extra tricky and also requires you to rebuild ALL linked code with it, including the standard library. See https://doc.rust-lang.org/nightly/unstable-book/compiler-flags/sanitizer.html for details

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

No branches or pull requests

3 participants