-
Notifications
You must be signed in to change notification settings - Fork 14.1k
Make Miri aware of leaks of Box/Vec/String
#135811
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
Conversation
|
The job Click to see the possible cause of the failure (guessed by this bot) |
|
Apparently Miri erroring on these leaks is expected behavior according to failed tests. Perhaps these tests should use another way to leak memory? |
|
Thanks for the PR! I am not convinced that Cc @rust-lang/miri @rust-lang/libs-api |
|
This seems incorrect to me: we still want to treat data leaked by |
|
Usually the intention I've seen Although it's documented that you can reclaim memory returned by |
Hm, yeah that does make sense -- though changing this now for a long-stable operation makes me feel a bit uneasy. Could you go look around some of the widely used crates in the ecosystem and gather some data on how |
|
We discussed this in the libs-api meeting: we don't want Instead, we would prefer to document @rfcbot close |
|
Team member @Amanieu has proposed to close this. The next step is review by the rest of the tagged team members: No concerns currently listed. Once a majority of reviewers approve (and at most 2 approvals are outstanding), this will enter its final comment period. If you spot a major issue that hasn't been raised at any point in this process, please speak up! See this document for info about what commands tagged team members can give me. |
|
🔔 This is now entering its final comment period, as per the review above. 🔔 |
|
The final comment period, with a disposition to close, as per the review above, is now complete. As the automated representative of the governance process, I would like to thank the author for their work and everyone else who contributed. |
Currently user code that uses
leakneeds to callmiri_static_rootthemselves. This change removes that requirement.r? @RalfJung