-
Notifications
You must be signed in to change notification settings - Fork 899
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
error: the compiler unexpectedly panicked. this is a bug. #6100
Comments
Thank you for opening a report but please extract and post the relevant portions of the log inline within the issue so it's easier for everyone to consume and reference (e.g. so that others can more easily know if this is the same issue they encountered, and avoid opening duplicative tickets) |
edit: I did a more detailed comparison on the stack traces, and it's different, but maybe there's a similar issue? If not I can open a separate ticket for this I ran into the same issue (same stack trace too as far as I can tell), and here's a MVP macro_rules! bz {
() => {
match foo {
_ => return bar;
}
};
} There is no other context needed, but switching the my full backtracethread 'main' panicked at src/tools/rustfmt/src/parse/session.rs:42:9:
silent emitter attempted to translate a diagnostic
stack backtrace:
0: 0x7f4c1f644af6 - std::backtrace_rs::backtrace::libunwind::trace::hf298c77755f5b12e
at /rustc/3406ada96f8e16e49e947a91db3eba0db45245fa/library/std/src/../../backtrace/src/backtrace/libunwind.rs:104:5
1: 0x7f4c1f644af6 - std::backtrace_rs::backtrace::trace_unsynchronized::h4da6a489ce2db74e
at /rustc/3406ada96f8e16e49e947a91db3eba0db45245fa/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5
2: 0x7f4c1f644af6 - std::sys_common::backtrace::_print_fmt::h051beca4a6f5cb98
at /rustc/3406ada96f8e16e49e947a91db3eba0db45245fa/library/std/src/sys_common/backtrace.rs:68:5
3: 0x7f4c1f644af6 - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::hcb86488900881a45
at /rustc/3406ada96f8e16e49e947a91db3eba0db45245fa/library/std/src/sys_common/backtrace.rs:44:22
4: 0x7f4c1f695a7c - core::fmt::rt::Argument::fmt::haf43875fa4a971bb
at /rustc/3406ada96f8e16e49e947a91db3eba0db45245fa/library/core/src/fmt/rt.rs:142:9
5: 0x7f4c1f695a7c - core::fmt::write::h44c7f32ae3be5535
at /rustc/3406ada96f8e16e49e947a91db3eba0db45245fa/library/core/src/fmt/mod.rs:1120:17
6: 0x7f4c1f6394bf - std::io::Write::write_fmt::hc3fec0223f64c010
at /rustc/3406ada96f8e16e49e947a91db3eba0db45245fa/library/std/src/io/mod.rs:1846:15
7: 0x7f4c1f6448a4 - std::sys_common::backtrace::_print::h7c03376d42fd745a
at /rustc/3406ada96f8e16e49e947a91db3eba0db45245fa/library/std/src/sys_common/backtrace.rs:47:5
8: 0x7f4c1f6448a4 - std::sys_common::backtrace::print::h9ff10455f68b06c1
at /rustc/3406ada96f8e16e49e947a91db3eba0db45245fa/library/std/src/sys_common/backtrace.rs:34:9
9: 0x7f4c1f6475eb - std::panicking::default_hook::{{closure}}::he4f9865f1b72b2d5
10: 0x7f4c1f647339 - std::panicking::default_hook::h3d59f13a05d49fe6
at /rustc/3406ada96f8e16e49e947a91db3eba0db45245fa/library/std/src/panicking.rs:292:9
11: 0x7f4c1c2731ec - std[19d33715048712a6]::panicking::update_hook::<alloc[6fc58ab69ba746fe]::boxed::Box<rustc_driver_impl[4c01069949ad96dd]::install_ice_hook::{closure#0}>>::{closure#0}
12: 0x7f4c1f647d50 - <alloc::boxed::Box<F,A> as core::ops::function::Fn<Args>>::call::hf41c577e6ac4b0df
at /rustc/3406ada96f8e16e49e947a91db3eba0db45245fa/library/alloc/src/boxed.rs:2030:9
13: 0x7f4c1f647d50 - std::panicking::rust_panic_with_hook::h70f59ab226ae2c5c
at /rustc/3406ada96f8e16e49e947a91db3eba0db45245fa/library/std/src/panicking.rs:786:13
14: 0x7f4c1f647a59 - std::panicking::begin_panic_handler::{{closure}}::h47fc7126fa960711
at /rustc/3406ada96f8e16e49e947a91db3eba0db45245fa/library/std/src/panicking.rs:652:13
15: 0x7f4c1f644fd6 - std::sys_common::backtrace::__rust_end_short_backtrace::h5b94f863278adeaf
at /rustc/3406ada96f8e16e49e947a91db3eba0db45245fa/library/std/src/sys_common/backtrace.rs:171:18
16: 0x7f4c1f6477c4 - rust_begin_unwind
at /rustc/3406ada96f8e16e49e947a91db3eba0db45245fa/library/std/src/panicking.rs:648:5
17: 0x7f4c1f691f95 - core::panicking::panic_fmt::h96a33d9be4ce8c0f
at /rustc/3406ada96f8e16e49e947a91db3eba0db45245fa/library/core/src/panicking.rs:72:14
18: 0x55e92f19f09f - <rustfmt_nightly[f97d436b76f8d936]::parse::session::SilentEmitter as rustc_errors[59443abce0bd3010]::translation::Translate>::fallback_fluent_bundle
19: 0x55e92f11a9e1 - <rustfmt_nightly[f97d436b76f8d936]::parse::session::SilentOnIgnoredFilesEmitter as rustc_errors[59443abce0bd3010]::translation::Translate>::translate_message
20: 0x7f4c1a95ded0 - <rustc_errors[59443abce0bd3010]::DiagCtxt>::eagerly_translate::<indexmap[a60d99cc2fb2d7c1]::map::iter::Iter<alloc[6fc58ab69ba746fe]::borrow::Cow<str>, rustc_errors[59443abce0bd3010]::diagnostic::DiagnosticArgValue>>
21: 0x7f4c1a9748b3 - <rustc_parse[aabd1bb8679616a3]::parser::Parser>::parse_arm_body_missing_braces::{closure#0}
22: 0x7f4c1e26bee9 - <rustc_parse[aabd1bb8679616a3]::parser::Parser>::parse_arm::{closure#0}
23: 0x7f4c1e269778 - <rustc_parse[aabd1bb8679616a3]::parser::Parser>::parse_expr_match
24: 0x7f4c1d79b4c5 - <rustc_parse[aabd1bb8679616a3]::parser::Parser>::parse_expr_dot_or_call
25: 0x7f4c1d792bf5 - <rustc_parse[aabd1bb8679616a3]::parser::Parser>::parse_expr_prefix
26: 0x7f4c1d790445 - <rustc_parse[aabd1bb8679616a3]::parser::Parser>::parse_expr_assoc_with
27: 0x7f4c1dc66924 - <rustc_parse[aabd1bb8679616a3]::parser::Parser>::parse_stmt_without_recovery
28: 0x7f4c1dc639de - <rustc_parse[aabd1bb8679616a3]::parser::Parser>::parse_block_tail
29: 0x7f4c1dbced30 - <rustc_parse[aabd1bb8679616a3]::parser::Parser>::parse_fn
30: 0x7f4c1dfd43d7 - <rustc_parse[aabd1bb8679616a3]::parser::Parser>::parse_item_kind
31: 0x7f4c1d9bfa72 - <rustc_parse[aabd1bb8679616a3]::parser::Parser>::parse_item_common
32: 0x7f4c1d9bd4b2 - <rustc_parse[aabd1bb8679616a3]::parser::Parser>::parse_mod
33: 0x7f4c1e6dd1b1 - <rustc_parse[aabd1bb8679616a3]::parser::Parser>::parse_crate_mod
34: 0x55e92f19eced - <rustfmt_nightly[f97d436b76f8d936]::parse::parser::Parser>::parse_crate
35: 0x55e92f158304 - <rustfmt_nightly[f97d436b76f8d936]::Session<alloc[6fc58ab69ba746fe]::vec::Vec<u8>>>::format_input_inner::{closure#0}
36: 0x55e92f1cacf8 - rustfmt_nightly[f97d436b76f8d936]::format_snippet
37: 0x55e92f1cb9a2 - rustfmt_nightly[f97d436b76f8d936]::format_code_block
38: 0x55e92f17fab2 - <rustfmt_nightly[f97d436b76f8d936]::lists::ListItems<core[a9f526eb09c6e7cd]::slice::iter::Iter<rustfmt_nightly[f97d436b76f8d936]::macros::MacroBranch>, rustfmt_nightly[f97d436b76f8d936]::macros::rewrite_macro_def::{closure#1}, rustfmt_nightly[f97d436b76f8d936]::macros::rewrite_macro_def::{closure#2}, rustfmt_nightly[f97d436b76f8d936]::macros::rewrite_macro_def::{closure#3}> as core[a9f526eb09c6e7cd]::iter::traits::iterator::Iterator>::next::{closure#0}
39: 0x55e92f18486a - rustfmt_nightly[f97d436b76f8d936]::macros::rewrite_macro_def
40: 0x55e92f1bffb5 - <rustfmt_nightly[f97d436b76f8d936]::visitor::FmtVisitor>::visit_item
41: 0x55e92f1a45d6 - <rustfmt_nightly[f97d436b76f8d936]::visitor::FmtVisitor>::visit_items_with_reordering
42: 0x55e92f1c41bb - <rustfmt_nightly[f97d436b76f8d936]::visitor::FmtVisitor>::format_separate_mod
43: 0x55e92f03e69e - <rustfmt_nightly[f97d436b76f8d936]::Session<std[19d33715048712a6]::io::stdio::Stdout>>::format_input_inner::{closure#0}
44: 0x55e92f053d11 - rustfmt[c0e6de184f0cf264]::format_and_emit_report::<std[19d33715048712a6]::io::stdio::Stdout>
45: 0x55e92f0521ac - rustfmt[c0e6de184f0cf264]::execute
46: 0x55e92f04d87b - rustfmt[c0e6de184f0cf264]::main
47: 0x55e92f037f63 - std[19d33715048712a6]::sys_common::backtrace::__rust_begin_short_backtrace::<fn(), ()>
48: 0x55e92f03a209 - std[19d33715048712a6]::rt::lang_start::<()>::{closure#0}
49: 0x7f4c1f629f83 - core::ops::function::impls::<impl core::ops::function::FnOnce<A> for &F>::call_once::h3abf3bc5c821344f
at /rustc/3406ada96f8e16e49e947a91db3eba0db45245fa/library/core/src/ops/function.rs:284:13
50: 0x7f4c1f629f83 - std::panicking::try::do_call::hb3071568d9e061a2
at /rustc/3406ada96f8e16e49e947a91db3eba0db45245fa/library/std/src/panicking.rs:555:40
51: 0x7f4c1f629f83 - std::panicking::try::hb30aac26558f9f16
at /rustc/3406ada96f8e16e49e947a91db3eba0db45245fa/library/std/src/panicking.rs:519:19
52: 0x7f4c1f629f83 - std::panic::catch_unwind::h8a35c5dec3e3288e
at /rustc/3406ada96f8e16e49e947a91db3eba0db45245fa/library/std/src/panic.rs:142:14
53: 0x7f4c1f629f83 - std::rt::lang_start_internal::{{closure}}::h57f7d3bd6a9269a0
at /rustc/3406ada96f8e16e49e947a91db3eba0db45245fa/library/std/src/rt.rs:148:48
54: 0x7f4c1f629f83 - std::panicking::try::do_call::h60080f38bbb7f07c
at /rustc/3406ada96f8e16e49e947a91db3eba0db45245fa/library/std/src/panicking.rs:555:40
55: 0x7f4c1f629f83 - std::panicking::try::h7552f24642a8f696
at /rustc/3406ada96f8e16e49e947a91db3eba0db45245fa/library/std/src/panicking.rs:519:19
56: 0x7f4c1f629f83 - std::panic::catch_unwind::h5d7d9eee0c94f993
at /rustc/3406ada96f8e16e49e947a91db3eba0db45245fa/library/std/src/panic.rs:142:14
57: 0x7f4c1f629f83 - std::rt::lang_start_internal::h5e62a2694cfd5d4f
at /rustc/3406ada96f8e16e49e947a91db3eba0db45245fa/library/std/src/rt.rs:148:20
58: 0x55e92f054ed5 - main
59: 0x7f4c1916514a - __libc_start_call_main
60: 0x7f4c1916520b - __libc_start_main_impl
61: 0x55e92f0275d9 - <unknown>
62: 0x0 - <unknown>
error: the compiler unexpectedly panicked. this is a bug.
note: we would appreciate a bug report: https://github.com/rust-lang/rustfmt/issues/new?labels=bug
note: please attach the file at `/home/yato/playground/chess/rustc-ice-2024-03-02T22_22_06-150724.txt` to your bug report
query stack during panic:
end of query stack |
@RustyYato I believe you're running into the same issue. Both backtraces start with:
Which leads me to believe this is a duplicate of #6082 |
err log:
rustup show
rustc-ice-2024-02-28T10_59_13-18699.txt
The text was updated successfully, but these errors were encountered: