-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Valgrind shows invalid read/write when using threads #26442
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
Comments
Looks like it's just a missing |
I'm somewhat wary of valgrind as it often produces false positives. @Aatch can you explain a little more what you found? There is a |
@alexcrichton ah, I missed that, sorry. |
So is this not a bug then? |
Could be related to #29106 |
Actually, I can no longer reproduce this with nightly, so closing. |
Running like this usually gets me
Invalid read
/Invalid write
errors within 5 executions:Some particularly interesting errors are at http://pastebin.com/0m346AT5
The
--soname-synonyms=somalloc=NONE
option is supposed to make valgrind work properly with statically-linked jemalloc.It might be my imagination, but it looks like linking to the empty crate significantly increases the chance of Valgrind errors showing up, although not linking this way does not completely eliminate the errors.
Tested on Linux with rust-stable, rust-stable with debug build of libstd only, rust-nightly.
The text was updated successfully, but these errors were encountered: