You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Auto merge of #108714 - estebank:ice_dump, r=oli-obk
On nightly, dump ICE backtraces to disk
Implement rust-lang/compiler-team#578.
When an ICE is encountered on nightly releases, the new rustc panic handler will also write the contents of the backtrace to disk. If any `delay_span_bug`s are encountered, their backtrace is also added to the file. The platform and rustc version will also be collected.
<img width="1032" alt="Screenshot 2023-03-03 at 2 13 25 PM" src="https://user-images.githubusercontent.com/1606434/222842420-8e039740-4042-4563-b31d-599677171acf.png">
The current behavior will *always* write to disk on nightly builds, regardless of whether the backtrace is printed to the terminal, unless the environment variable `RUSTC_ICE_DISK_DUMP` is set to `0`. This is a compromise and can be changed.
Copy file name to clipboardExpand all lines: compiler/rustc_driver_impl/messages.ftl
+4
Original file line number
Diff line number
Diff line change
@@ -3,7 +3,11 @@ driver_impl_ice_bug_report = we would appreciate a bug report: {$bug_report_url}
3
3
driver_impl_ice_exclude_cargo_defaults = some of the compiler flags provided by cargo are hidden
4
4
5
5
driver_impl_ice_flags = compiler flags: {$flags}
6
+
driver_impl_ice_path = please attach the file at `{$path}` to your bug report
7
+
driver_impl_ice_path_error = the ICE couldn't be written to `{$path}`: {$error}
8
+
driver_impl_ice_path_error_env = the environment variable `RUSTC_ICE` is set to `{$env_var}`
6
9
driver_impl_ice_version = rustc {$version} running on {$triple}
10
+
7
11
driver_impl_rlink_empty_version_number = The input does not contain version number
8
12
9
13
driver_impl_rlink_encoding_version_mismatch = .rlink file was produced with encoding version `{$version_array}`, but the current version is `{$rlink_version}`
0 commit comments