-
Notifications
You must be signed in to change notification settings - Fork 353
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
evaluation panics on layout computation cycle #2861
Comments
Seems like a duplicate of #2608 -- we should just stop after that error message and not go on interpreting. |
It's actually a different issue, as this error occurs during interpretation, not before, so we need to check on every step (or properly bubble out this error to the interpreter) |
We already propagate layout errors though, shouldn't that subsume this case? @matthiaskrgr I can't see the actual ICE message in the output above, is there some other output that you cut from the issue? |
This is a cycle error, which emits an error and then should abort, but somehow miri subverts this abort. I am investigating how to bubble up the "a cycle occurred" from the layout error |
Oh I see. Might be worth figuring out how to avoid this (as an alternative to fundamentally changing the cycle error treatment). |
If we want to generally avoid miri reporting fatal errors as ICEs, we need to stop catching unwinding of a Alternatively we can wait for more reports and look into removing those fatal errors |
Yeah I didn't realize that there are cases where rustc is expected to unwind. Using a different unwinding payload type for ICEs vs regular fatal errors is not an option, or is it? |
I think that already happens but I am not sure. I will investigate. But that's kinda what I mean. Even if it is possible, do we want to? |
Looks like we use |
If we can check the payload type before printing the Miri ICE message, that seems like a clean solution? |
This now prints a much nicer error, without an ICE:
|
Should miri be able to bail out more gracefully in this scenario?
rustc:
miri:
The text was updated successfully, but these errors were encountered: