-
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
wrong exit code after ICE #116659
Comments
is the problematic line here that turns ICEs into "normal" fatal errors that call exit(1) though actually at least with the non parallel compiler i'm very surprised that we're ending up in a query in the first place after panicking. |
It seems that current stable does correctly exit with I bisected the exit code 101 -> exit code 1 change with a crashing file ( #117489 ) and got to Regression in nightly-2023-08-31 #115144 cc @Zoxc / @compiler-errors |
WG-prioritization assigning priority (Zulip discussion). @rustbot label -I-prioritize +P-medium |
Make `FatalErrorMarker` lower priority than other panics This makes `FatalErrorMarker` lower priority than other panics in a parallel sections. If any other panics occur, they will be unwound instead of `FatalErrorMarker`. This ensures `rustc` will exit with the correct error code on ICEs. This fixes rust-lang/rust#116659.
Make `FatalErrorMarker` lower priority than other panics This makes `FatalErrorMarker` lower priority than other panics in a parallel sections. If any other panics occur, they will be unwound instead of `FatalErrorMarker`. This ensures `rustc` will exit with the correct error code on ICEs. This fixes rust-lang/rust#116659.
Make `FatalErrorMarker` lower priority than other panics This makes `FatalErrorMarker` lower priority than other panics in a parallel sections. If any other panics occur, they will be unwound instead of `FatalErrorMarker`. This ensures `rustc` will exit with the correct error code on ICEs. This fixes rust-lang/rust#116659.
found while checking #116658 with
When you run the snipped above with
--edition
, rustc panics, but the exit status is1
as if there was just a normal compiler error, instead of a101
.This tripped up automatic ice-reduction that relies on a somewhat familiar exit code when the program crashes 😅
The text was updated successfully, but these errors were encountered: