-
Notifications
You must be signed in to change notification settings - Fork 501
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 undefined behavior in the test suite #952
Comments
Interesting, this always runs into the issue for me:
|
Miri pinpoints the creation of the protector tag as follows:
|
A protected tag is one created for a function parameter, and is popped when such function exits. This leads me to believe that the function |
I think this is a generalization of rust-lang/rust#55005, and I also mentioned it in the zulip discussion here. The current proposal would stop emitting LLVM The problem is that the code that calls the latch |
I believe #1011 will fix this, but I would appreciate review on that. In my test, |
(Found while scrolling through https://miri.saethlin.dev/ub?crate=rayon&version=1.5.3)
Since this is a at the end of the closure, is it referring to deallocating a local variable? Such as a dangling reference to the
job
?Further investigation running with full backtrace: It seems the issue only occurs when running a multi-threaded tests. The exact location varies from run to run (non-deterministic). The command used to run the test suite for me is:
The location pin-pointed stays the same:
The text was updated successfully, but these errors were encountered: