-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Tests sometimes leak around 50 bytes #135628
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
On another machine, nightly works fine but stable sporadically fails in debug mode:
rustc 1.83.0 (90b35a6 2024-11-26) |
I think this is basically the same issue as #135608. I submitted my issue after minimizing precisely your reproducer. |
If it is, the proposed solution is not really satisfying to me — not being able to rely on valgrinds return code for proper test CI is quite bothering. |
You can use |
The proposed solution seems to be "wait for #134085 to be merged". Personally, I'm fine with that. I pinned my valgrind CI to beta for now due to this. |
Sure, that sort of works. But it does modify the behavior of valgrind, I'm telling it not to report to me everything it sees as it did before the regression, so that I can hide the fact that Rust itself leaks memory when it decides to (and not deterministically). This will work as a patch, but it doesn't feel very pleasing, philosophically speaking. I do want to see every leak, but I also would like an empty cargo project to work on valgrind without tweaks. But again, this is bleeding edge, I can live with it. |
Fine by me! |
Closing as duplicate |
Code
Edit: the initial bug was found on nightly but it replicates on stable on a less up-to-date machine, see below
Similar to #135608 but not the same stack trace
Current output
Desired output
Rationale and extra context
No response
Other cases
Rust Version
Anything else?
I have
The text was updated successfully, but these errors were encountered: