-
Notifications
You must be signed in to change notification settings - Fork 13k
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
[crater experiment] Enable validate-mir by default #107051
Conversation
@bors try |
r? @eholk (rustbot has picked a reviewer for you, use r? to override) |
⌛ Trying commit 9943b56 with merge 613d1972a772987ed4ee06faccbab0e2fc839871... |
Failed to set assignee to
|
The job Click to see the possible cause of the failure (guessed by this bot)
|
☀️ Try build successful - checks-actions |
@craterbot run start=master#159ba8a92c9e2fa4121f106176309521f4af87e9+rustflags=-Copt-level=3 end=try#613d1972a772987ed4ee06faccbab0e2fc839871+rustflags=-Copt-level=3 mode=build-and-test |
👌 Experiment ℹ️ Crater is a tool to run experiments across parts of the Rust ecosystem. Learn more |
🚧 Experiment ℹ️ Crater is a tool to run experiments across parts of the Rust ecosystem. Learn more |
🎉 Experiment
|
Well, I'm very glad we did this. Looks like we have a lot of legitimate regressions. I'll start triaging them in an hour or two and update this PR with my assessment. |
for a quick peek: |
I haven't reviewed all of the test-failed crates, but of those I have reviewed they are all flaky tests not UB. So I'm comfortable saying the At least two of the ICEs bisect to this: searched nightlies: from nightly-2022-11-01 to nightly-2023-01-21 bisected with cargo-bisect-rustc v0.6.5Host triple: x86_64-unknown-linux-gnu cargo bisect-rustc --start 2022-11-01 --end 2023-01-21 --script script If I had to guess, this PR is causing these validation failures: #104411 but that might just be because it is improving the validator. I do however notice in the
And in
So basically I'm well over my head figuring out what's actually happening here, and we found something but it wasn't what we were looking for. |
The ICE in searched nightlies: from nightly-2023-01-01 to nightly-2023-01-22 bisected with cargo-bisect-rustc v0.6.5Host triple: x86_64-unknown-linux-gnu cargo bisect-rustc --start 2023-01-01 --end 2023-01-22 --script script --regress=ice cc @Nilstrieb |
I do not know enough about the above 2 sources of MIR validation failures to write up competent issues for them. I'll leave this open for a few more days and try to recruit some help. |
The ICE in |
Actually, looking at the safer-ffi logs it's also full of broken MIR? This should really not be caused by my change |
I minimized one of the crates ( |
Going to close this for cleanliness but try to keep it in my work queue to come back to if the above issue is fixed. |
#106612 made our MIR validation checks pickier. So this branch enables validation after every pass, to exercise those checks (and MIR validation in general) as much as possible.
Additionally, we recently merged #106294 which comes with this remark:
It would be good to know if these changes are causing issues in the ecosystem sooner rather than later.
Just a crater build run would exercise the MIR checks, but I would also like to see if crater can tell us anything about the
noundef
change. I think if we can do a crater test run with+rustflags=-Copt-level=3
we have a chance of breaking tests if someone is accidentally relying on UB.sigh I forgot to r? @ghost, sorry about that. If someone wants to cruise through and fixup the labels/etc please do.