-
Notifications
You must be signed in to change notification settings - Fork 12.9k
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
Miri detects MPSC as having UB according to stacked borrows #80234
Comments
Note than an error with The error message talks about |
You didn't even show any code... are you saying that the error comes up even for an empty test suite? Hm yeah I can see how that would be annoying.^^ The issue is probably caused by |
Correct. I was able to narrow it down to the default
I had a feeling something like that was going on after your comments on Zulip but thought it might be useful to create an issue regardless. That way you've got some examples of false positives, and if the issue is recorded elsewhere it's easy enough to close as a duplicate. |
Use pointer type in AtomicPtr::swap implementation Closes rust-lang#80234.
Use pointer type in AtomicPtr::swap implementation Closes rust-lang#80234.
While using
-Zmiri-track-raw-pointers
to test provenance on someunsafe
code I was writing,cargo miri test
detected possible undefined behaviour according to the stacked borrows model. This makes it impossible to usemiri-track-raw-pointers
flag on an entire test suite.Steps to reproduce:
Meta
(Full Backtrace)
The text was updated successfully, but these errors were encountered: