Skip to content
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

backtrace missing when rustc panics #106267

Closed
matthiaskrgr opened this issue Dec 29, 2022 · 5 comments · Fixed by #106317
Closed

backtrace missing when rustc panics #106267

matthiaskrgr opened this issue Dec 29, 2022 · 5 comments · Fixed by #106317
Assignees
Labels
C-bug Category: This is a bug.

Comments

@matthiaskrgr
Copy link
Member

matthiaskrgr commented Dec 29, 2022

With beta rustc 1.67.0-beta.5 (6b1892c28 2022-12-28)

error: internal compiler error: no errors encountered even though `delay_span_bug` issued

error: internal compiler error: broken MIR in DefId(0:15 ~ 92157[3065]::{impl#0}::add) (NoSolution): could not prove Binder(TraitPredicate(<isize as Copy>, polarity:Positive), [])
  |
  = note: delayed at compiler/rustc_borrowck/src/type_check/canonical.rs:148:13

thread 'rustc' panicked at 'Box<dyn Any>', compiler/rustc_errors/src/lib.rs:1610:13
stack backtrace:
   0:     0x7f46583656fa - std::backtrace_rs::backtrace::libunwind::trace::hb14b523cf9bbb6ff
                               at /rustc/6b1892c2803adade20a9399a176c0140ec347a96/library/std/src/../../backtrace/src/backtrace/libunwind.rs:93:5
   1:     0x7f46583656fa - std::backtrace_rs::backtrace::trace_unsynchronized::h18e2e2737acb9234
                               at /rustc/6b1892c2803adade20a9399a176c0140ec347a96/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5
   2:     0x7f46583656fa - std::sys_common::backtrace::_print_fmt::h47704e7b65218342
                               at /rustc/6b1892c2803adade20a9399a176c0140ec347a96/library/std/src/sys_common/backtrace.rs:65:5
   3:     0x7f46583656fa - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::h3e1ba434ff93bdae
                               at /rustc/6b1892c2803adade20a9399a176c0140ec347a96/library/std/src/sys_common/backtrace.rs:44:22
   4:     0x7f46583c825e - core::fmt::write::hd7ac771d9ffd9737
                               at /rustc/6b1892c2803adade20a9399a176c0140ec347a96/library/core/src/fmt/mod.rs:1208:17
   5:     0x7f4658355a85 - std::io::Write::write_fmt::h4840fb0f8374ef5b
                               at /rustc/6b1892c2803adade20a9399a176c0140ec347a96/library/std/src/io/mod.rs:1682:15
   6:     0x7f46583654c5 - std::sys_common::backtrace::_print::hfa7d8e7a1dbf6697
                               at /rustc/6b1892c2803adade20a9399a176c0140ec347a96/library/std/src/sys_common/backtrace.rs:47:5
   7:     0x7f46583654c5 - std::sys_common::backtrace::print::h3986e26150deb380
                               at /rustc/6b1892c2803adade20a9399a176c0140ec347a96/library/std/src/sys_common/backtrace.rs:34:9
   8:     0x7f465836820f - std::panicking::default_hook::{{closure}}::h98cd5bb66bfc395c
                               at /rustc/6b1892c2803adade20a9399a176c0140ec347a96/library/std/src/panicking.rs:267:22
   9:     0x7f4658367f4b - std::panicking::default_hook::h1f9832d2e5df2901
                               at /rustc/6b1892c2803adade20a9399a176c0140ec347a96/library/std/src/panicking.rs:286:9
  10:     0x7f465b6620d1 - <rustc_driver[a1bd42a8b9f3139f]::DEFAULT_HOOK::{closure#0}::{closure#0} as core[f31338071577118d]::ops::function::FnOnce<(&core[f31338071577118d]::panic::panic_info::PanicInfo,)>>::call_once::{shim:vtable#0}
  11:     0x7f4658368a4d - <alloc::boxed::Box<F,A> as core::ops::function::Fn<Args>>::call::h2180065ed0df45f4
                               at /rustc/6b1892c2803adade20a9399a176c0140ec347a96/library/alloc/src/boxed.rs:2032:9
  12:     0x7f4658368a4d - std::panicking::rust_panic_with_hook::h875dca59c539b796
                               at /rustc/6b1892c2803adade20a9399a176c0140ec347a96/library/std/src/panicking.rs:692:13
  13:     0x7f465b69adc1 - std[faafec5917ce8dac]::panicking::begin_panic::<rustc_errors[b60a95b52c4fe12f]::ExplicitBug>::{closure#0}
  14:     0x7f465b699696 - std[faafec5917ce8dac]::sys_common::backtrace::__rust_end_short_backtrace::<std[faafec5917ce8dac]::panicking::begin_panic<rustc_errors[b60a95b52c4fe12f]::ExplicitBug>::{closure#0}, !>
  15:     0x7f465b678906 - std[faafec5917ce8dac]::panicking::begin_panic::<rustc_errors[b60a95b52c4fe12f]::ExplicitBug>
  16:     0x7f465b697106 - std[faafec5917ce8dac]::panic::panic_any::<rustc_errors[b60a95b52c4fe12f]::ExplicitBug>
  17:     0x7f465ab46ed6 - <rustc_errors[b60a95b52c4fe12f]::HandlerInner>::flush_delayed::<alloc[533e65513bbad258]::vec::Vec<rustc_errors[b60a95b52c4fe12f]::diagnostic::Diagnostic>, &str>
  18:     0x7f465a81ef4c - <rustc_interface[e29be70a03a9eb51]::passes::QueryContext>::enter::<<rustc_interface[e29be70a03a9eb51]::queries::Queries>::ongoing_codegen::{closure#0}::{closure#0}, core[f31338071577118d]::result::Result<alloc[533e65513bbad258]::boxed::Box<dyn core[f31338071577118d]::any::Any>, rustc_errors[b60a95b52c4fe12f]::ErrorGuaranteed>>
  19:     0x7f465a81c5b6 - <rustc_interface[e29be70a03a9eb51]::queries::Queries>::ongoing_codegen
  20:     0x7f465a81bad7 - <rustc_interface[e29be70a03a9eb51]::interface::Compiler>::enter::<rustc_driver[a1bd42a8b9f3139f]::run_compiler::{closure#1}::{closure#2}, core[f31338071577118d]::result::Result<core[f31338071577118d]::option::Option<rustc_interface[e29be70a03a9eb51]::queries::Linker>, rustc_errors[b60a95b52c4fe12f]::ErrorGuaranteed>>
  21:     0x7f465a816af8 - rustc_span[5e59950fc4a1d87a]::with_source_map::<core[f31338071577118d]::result::Result<(), rustc_errors[b60a95b52c4fe12f]::ErrorGuaranteed>, rustc_interface[e29be70a03a9eb51]::interface::run_compiler<core[f31338071577118d]::result::Result<(), rustc_errors[b60a95b52c4fe12f]::ErrorGuaranteed>, rustc_driver[a1bd42a8b9f3139f]::run_compiler::{closure#1}>::{closure#0}::{closure#0}>
  22:     0x7f465a8165e5 - <scoped_tls[fa92078d52959d9e]::ScopedKey<rustc_span[5e59950fc4a1d87a]::SessionGlobals>>::set::<rustc_interface[e29be70a03a9eb51]::interface::run_compiler<core[f31338071577118d]::result::Result<(), rustc_errors[b60a95b52c4fe12f]::ErrorGuaranteed>, rustc_driver[a1bd42a8b9f3139f]::run_compiler::{closure#1}>::{closure#0}, core[f31338071577118d]::result::Result<(), rustc_errors[b60a95b52c4fe12f]::ErrorGuaranteed>>
  23:     0x7f465a815bd2 - std[faafec5917ce8dac]::sys_common::backtrace::__rust_begin_short_backtrace::<rustc_interface[e29be70a03a9eb51]::util::run_in_thread_pool_with_globals<rustc_interface[e29be70a03a9eb51]::interface::run_compiler<core[f31338071577118d]::result::Result<(), rustc_errors[b60a95b52c4fe12f]::ErrorGuaranteed>, rustc_driver[a1bd42a8b9f3139f]::run_compiler::{closure#1}>::{closure#0}, core[f31338071577118d]::result::Result<(), rustc_errors[b60a95b52c4fe12f]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[f31338071577118d]::result::Result<(), rustc_errors[b60a95b52c4fe12f]::ErrorGuaranteed>>
  24:     0x7f465af19a6a - <<std[faafec5917ce8dac]::thread::Builder>::spawn_unchecked_<rustc_interface[e29be70a03a9eb51]::util::run_in_thread_pool_with_globals<rustc_interface[e29be70a03a9eb51]::interface::run_compiler<core[f31338071577118d]::result::Result<(), rustc_errors[b60a95b52c4fe12f]::ErrorGuaranteed>, rustc_driver[a1bd42a8b9f3139f]::run_compiler::{closure#1}>::{closure#0}, core[f31338071577118d]::result::Result<(), rustc_errors[b60a95b52c4fe12f]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[f31338071577118d]::result::Result<(), rustc_errors[b60a95b52c4fe12f]::ErrorGuaranteed>>::{closure#1} as core[f31338071577118d]::ops::function::FnOnce<()>>::call_once::{shim:vtable#0}
  25:     0x7f4658372803 - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::h7e8fc432d04b89f2
                               at /rustc/6b1892c2803adade20a9399a176c0140ec347a96/library/alloc/src/boxed.rs:2000:9
  26:     0x7f4658372803 - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::h199ef35eac4a1602
                               at /rustc/6b1892c2803adade20a9399a176c0140ec347a96/library/alloc/src/boxed.rs:2000:9
  27:     0x7f4658372803 - std::sys::unix::thread::Thread::new::thread_start::h9e95ba06661490e6
                               at /rustc/6b1892c2803adade20a9399a176c0140ec347a96/library/std/src/sys/unix/thread.rs:108:17
  28:     0x7f46581058fd - <unknown>
  29:     0x7f4658187a60 - <unknown>
  30:                0x0 - <unknown>

note: the compiler unexpectedly panicked. this is a bug.

note: we would appreciate a bug report: https://github.com/rust-lang/rust/issues/new?labels=C-bug%2C+I-ICE%2C+T-compiler&template=ice.md

note: rustc 1.67.0-beta.5 (6b1892c28 2022-12-28) running on x86_64-unknown-linux-gnu

query stack during panic:
end of query stack
error: aborting due to 2 previous errors

but nightly does not show backtraces: rustc 1.68.0-nightly (270c94e48 2022-12-28)

error: internal compiler error: no errors encountered even though `delay_span_bug` issued

error: internal compiler error: broken MIR in DefId(0:15 ~ 92157[71a4]::{impl#0}::add) (NoSolution): could not prove Binder(TraitPredicate(<isize as Copy>, polarity:Positive), [])
  |
  = note: delayed at compiler/rustc_borrowck/src/type_check/canonical.rs:148:13

note: the compiler unexpectedly panicked. this is a bug.

note: we would appreciate a bug report: https://github.com/rust-lang/rust/issues/new?labels=C-bug%2C+I-ICE%2C+T-compiler&template=ice.md

note: rustc 1.68.0-nightly (270c94e48 2022-12-28) running on x86_64-unknown-linux-gnu

query stack during panic:
end of query stack
error: aborting due to 2 previous errors

edits
this is with

rustc 1.68.0-nightly (270c94e48 2022-12-28)
binary: rustc
commit-hash: 270c94e484e19764a2832ef918c95224eb3f17c7
commit-date: 2022-12-28
host: x86_64-unknown-linux-gnu
release: 1.68.0-nightly
LLVM version: 15.0.6
@matthiaskrgr matthiaskrgr added the C-bug Category: This is a bug. label Dec 29, 2022
@matthiaskrgr
Copy link
Member Author

@rustbot prioritize

@rustbot rustbot added the I-prioritize Issue: Indicates that prioritization has been requested for this issue. label Dec 29, 2022
@lqd
Copy link
Member

lqd commented Dec 29, 2022

can you share your example code, as it doesn't seem that all ICEs are missing backtraces: here's an ICE on the same nightly and beta, and which has a backtrace on both.

(if you have the time to do so and a master checkout, it'd be interesting to know whether ThinLTO could be involved like in #105637; bisection would also be worthwhile)

@matthiaskrgr
Copy link
Member Author

matthiaskrgr commented Dec 29, 2022

Hmm interesting, maybe its' something that only happens with delay_span_bug 🤔

#92495 does not show a backtrace for me

#![feature(lang_items, no_core, start)]
#![no_std]
#![no_core]

#[lang = "sized"]
pub trait Sized {}

#[lang = "copy"]
trait Copy {}

#[start]
fn main(argc: isize, _argv: *const *const u8) -> isize {
    match argc {
        1 => 1,
        _ => 0,
    }
}

no_ice_bt

I also can't force it with RUST_BACKTRACE=full or anything :(

@Noratrieb
Copy link
Member

Noratrieb commented Dec 29, 2022

This backtrace was removed on purpose in #106056 because it's useless. It just points at the place in the error machinery where delayed bugs get flushed, which is either just noise or misleading at worse.

@Noratrieb Noratrieb removed the I-prioritize Issue: Indicates that prioritization has been requested for this issue. label Dec 29, 2022
@compiler-errors
Copy link
Member

compiler-errors commented Dec 31, 2022

This also affects explicit bug! calls too -- these should be restored in #106317. Regarding delay_span_bugs backtraces being useless, see #106321.

@compiler-errors compiler-errors self-assigned this Dec 31, 2022
@bors bors closed this as completed in d798e22 Dec 31, 2022
Noratrieb added a commit to Noratrieb/rust that referenced this issue Jan 11, 2023
…ace, r=Nilstrieb

Collect and emit proper backtraces for `delay_span_bug`s

This is a follow-up to rust-lang#106317, which addresses this comment (rust-lang#106267 (comment)) which notes that `delay_span_bug`s' backtraces are nonsense.

Captures and emits the backtrace of the delayed span bug when it's *created*, rather than using the backtrace of the place where delayed bugs are flushed.

---

To test, I delayed a span bug during HIR typeck, specifically in `typeck_with_fallback`...

Before, note `flush_delayed` on frame 18. This is at the end of the compilation session, far from where the bug is being delayed.

```
error: internal compiler error: test
 --> /home/ubuntu/test.rs:1:1
  |
1 | fn main() {}
  | ^^^^^^^^^
  |
  = note: delayed at compiler/rustc_hir_typeck/src/lib.rs:196:14

thread 'rustc' panicked at 'Box<dyn Any>', compiler/rustc_errors/src/lib.rs:1634:13
stack backtrace:
   0:     0x7f9c3ec69dd1 - std::backtrace_rs::backtrace::libunwind::trace::h26056f81198c6594
                               at /home/ubuntu/rust2/library/std/src/../../backtrace/src/backtrace/libunwind.rs:93:5
   1:     0x7f9c3ec69dd1 - std::backtrace_rs::backtrace::trace_unsynchronized::hacfb345a0c6d5bb1
                               at /home/ubuntu/rust2/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5
   2:     0x7f9c3ec69dd1 - std::sys_common::backtrace::_print_fmt::h18ea6016ac8030f3
                               at /home/ubuntu/rust2/library/std/src/sys_common/backtrace.rs:65:5
   3:     0x7f9c3ec69dd1 - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::he35dde201d0c2d09
                               at /home/ubuntu/rust2/library/std/src/sys_common/backtrace.rs:44:22
   4:     0x7f9c3ecee308 - core::fmt::write::h094ad263467a053c
                               at /home/ubuntu/rust2/library/core/src/fmt/mod.rs:1208:17
   5:     0x7f9c3ec8aaf1 - std::io::Write::write_fmt::hd47b4e2324b4d9b7
                               at /home/ubuntu/rust2/library/std/src/io/mod.rs:1682:15
   6:     0x7f9c3ec69bfa - std::sys_common::backtrace::_print::h43044162653a17fc
                               at /home/ubuntu/rust2/library/std/src/sys_common/backtrace.rs:47:5
   7:     0x7f9c3ec69bfa - std::sys_common::backtrace::print::hc8605da258fa5aeb
                               at /home/ubuntu/rust2/library/std/src/sys_common/backtrace.rs:34:9
   8:     0x7f9c3ec4db87 - std::panicking::default_hook::{{closure}}::h9e37f23f75122a15
   9:     0x7f9c3ec4d97b - std::panicking::default_hook::h602873a063f84da2
                               at /home/ubuntu/rust2/library/std/src/panicking.rs:286:9
  10:     0x7f9c3f6672b2 - <alloc[48d7b30605060536]::boxed::Box<dyn for<'a, 'b> core[672e3947e150d6c6]::ops::function::Fn<(&'a core[672e3947e150d6c6]::panic::panic_info::PanicInfo<'b>,), Output = ()> + core[672e3947e150d6c6]::marker::Send + core[672e3947e150d6c6]::marker::Sync> as core[672e3947e150d6c6]::ops::function::Fn<(&core[672e3947e150d6c6]::panic::panic_info::PanicInfo,)>>::call
                               at /home/ubuntu/rust2/library/alloc/src/boxed.rs:2002:9
  11:     0x7f9c3f6672b2 - rustc_driver[f5b6d32d8905ecdd]::DEFAULT_HOOK::{closure#0}::{closure#0}
                               at /home/ubuntu/rust2/compiler/rustc_driver/src/lib.rs:1204:17
  12:     0x7f9c3ec4e0d3 - <alloc::boxed::Box<F,A> as core::ops::function::Fn<Args>>::call::hfd13333ca953ae8e
                               at /home/ubuntu/rust2/library/alloc/src/boxed.rs:2002:9
  13:     0x7f9c3ec4e0d3 - std::panicking::rust_panic_with_hook::h45753e10264ebe7e
                               at /home/ubuntu/rust2/library/std/src/panicking.rs:692:13
  14:     0x7f9c422a1aa3 - std[3330b4673efabfce]::panicking::begin_panic::<rustc_errors[1b15f4e7e49d1fd5]::ExplicitBug>::{closure#0}
                               at /home/ubuntu/rust2/library/std/src/panicking.rs:608:9
  15:     0x7f9c422a1a46 - std[3330b4673efabfce]::sys_common::backtrace::__rust_end_short_backtrace::<std[3330b4673efabfce]::panicking::begin_panic<rustc_errors[1b15f4e7e49d1fd5]::ExplicitBug>::{closure#0}, !>
                               at /home/ubuntu/rust2/library/std/src/sys_common/backtrace.rs:137:18
  16:     0x7f9c3f63a996 - std[3330b4673efabfce]::panicking::begin_panic::<rustc_errors[1b15f4e7e49d1fd5]::ExplicitBug>
                               at /home/ubuntu/rust2/library/std/src/panicking.rs:607:12
  17:     0x7f9c4227a496 - std[3330b4673efabfce]::panic::panic_any::<rustc_errors[1b15f4e7e49d1fd5]::ExplicitBug>
                               at /home/ubuntu/rust2/library/std/src/panic.rs:61:5
  18:     0x7f9c4227cdf7 - <rustc_errors[1b15f4e7e49d1fd5]::HandlerInner>::flush_delayed::<alloc[48d7b30605060536]::vec::Vec<rustc_errors[1b15f4e7e49d1fd5]::diagnostic::Diagnostic>, &str, rustc_errors[1b15f4e7e49d1fd5]::ExplicitBug>
                               at /home/ubuntu/rust2/compiler/rustc_errors/src/lib.rs:1634:13
  19:     0x7f9c422498cf - <rustc_errors[1b15f4e7e49d1fd5]::Handler>::flush_delayed
                               at /home/ubuntu/rust2/compiler/rustc_errors/src/lib.rs:1225:9

[ FRAMES INTENTIONALLY OMITTED ]

  44:     0x7f9c3f6f3584 - <std[3330b4673efabfce]::thread::Builder>::spawn_unchecked_::<rustc_interface[947706ead88047d0]::util::run_in_thread_pool_with_globals<rustc_interface[947706ead88047d0]::interface::run_compiler<core[672e3947e150d6c6]::result::Result<(), rustc_errors[1b15f4e7e49d1fd5]::ErrorGuaranteed>, rustc_driver[f5b6d32d8905ecdd]::run_compiler::{closure#1}>::{closure#0}, core[672e3947e150d6c6]::result::Result<(), rustc_errors[1b15f4e7e49d1fd5]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[672e3947e150d6c6]::result::Result<(), rustc_errors[1b15f4e7e49d1fd5]::ErrorGuaranteed>>::{closure#1}
                               at /home/ubuntu/rust2/library/std/src/thread/mod.rs:549:30
  45:     0x7f9c3f6f3584 - <<std[3330b4673efabfce]::thread::Builder>::spawn_unchecked_<rustc_interface[947706ead88047d0]::util::run_in_thread_pool_with_globals<rustc_interface[947706ead88047d0]::interface::run_compiler<core[672e3947e150d6c6]::result::Result<(), rustc_errors[1b15f4e7e49d1fd5]::ErrorGuaranteed>, rustc_driver[f5b6d32d8905ecdd]::run_compiler::{closure#1}>::{closure#0}, core[672e3947e150d6c6]::result::Result<(), rustc_errors[1b15f4e7e49d1fd5]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[672e3947e150d6c6]::result::Result<(), rustc_errors[1b15f4e7e49d1fd5]::ErrorGuaranteed>>::{closure#1} as core[672e3947e150d6c6]::ops::function::FnOnce<()>>::call_once::{shim:vtable#0}
                               at /home/ubuntu/rust2/library/core/src/ops/function.rs:250:5
  46:     0x7f9c3ec81968 - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::he8b26fc22c6f51ec
                               at /home/ubuntu/rust2/library/alloc/src/boxed.rs:1988:9
  47:     0x7f9c3ec81968 - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::h5cf9cbe75a8c3ddc
                               at /home/ubuntu/rust2/library/alloc/src/boxed.rs:1988:9
  48:     0x7f9c3ec5f99c - std::sys::unix::thread::Thread::new::thread_start::h2d6dd4455e97d031
                               at /home/ubuntu/rust2/library/std/src/sys/unix/thread.rs:108:17
  49:     0x7f9c37c69609 - start_thread
  50:     0x7f9c3ead0133 - clone
  51:                0x0 - <unknown>
```

After, note `typeck_with_fallback` on the 5th frame, that's where we *actually* need to be pointed to:

```
error: internal compiler error: no errors encountered even though `delay_span_bug` issued

error: internal compiler error: test
 --> /home/ubuntu/test.rs:1:1
  |
1 | fn main() {}
  | ^^^^^^^^^
  |
  = note: delayed at    0: <rustc_errors::HandlerInner>::emit_diagnostic
                       at ./compiler/rustc_errors/src/lib.rs:1279:29
             1: <rustc_errors::HandlerInner>::delay_span_bug::<rustc_span::span_encoding::Span, &str>
                       at ./compiler/rustc_errors/src/lib.rs:1553:9
             2: <rustc_errors::Handler>::delay_span_bug::<rustc_span::span_encoding::Span, &str>
                       at ./compiler/rustc_errors/src/lib.rs:995:9
             3: <rustc_session::session::Session>::delay_span_bug::<rustc_span::span_encoding::Span, &str>
                       at ./compiler/rustc_session/src/session.rs:600:9
             4: rustc_hir_typeck::typeck_with_fallback::<rustc_hir_typeck::typeck::{closure#0}>::{closure#0}
                       at ./compiler/rustc_hir_typeck/src/lib.rs:196:5
             5: rustc_hir_typeck::typeck_with_fallback::<rustc_hir_typeck::typeck::{closure#0}>
                       at ./compiler/rustc_hir_typeck/src/lib.rs:185:36
             6: rustc_hir_typeck::typeck
                       at ./compiler/rustc_hir_typeck/src/lib.rs:166:9

[ FRAMES INTENTIONALLY OMITTED ]

           108: std::panicking::try::<core::result::Result<(), rustc_errors::ErrorGuaranteed>, core::panic::unwind_safe::AssertUnwindSafe<<std::thread::Builder>::spawn_unchecked_<rustc_interface::util::run_in_thread_pool_with_globals<rustc_interface::interface::run_compiler<core::result::Result<(), rustc_errors::ErrorGuaranteed>, rustc_driver::run_compiler::{closure#1}>::{closure#0}, core::result::Result<(), rustc_errors::ErrorGuaranteed>>::{closure#0}::{closure#0}, core::result::Result<(), rustc_errors::ErrorGuaranteed>>::{closure#1}::{closure#0}>>
                       at ./library/std/src/panicking.rs:447:19
           109: std::panic::catch_unwind::<core::panic::unwind_safe::AssertUnwindSafe<<std::thread::Builder>::spawn_unchecked_<rustc_interface::util::run_in_thread_pool_with_globals<rustc_interface::interface::run_compiler<core::result::Result<(), rustc_errors::ErrorGuaranteed>, rustc_driver::run_compiler::{closure#1}>::{closure#0}, core::result::Result<(), rustc_errors::ErrorGuaranteed>>::{closure#0}::{closure#0}, core::result::Result<(), rustc_errors::ErrorGuaranteed>>::{closure#1}::{closure#0}>, core::result::Result<(), rustc_errors::ErrorGuaranteed>>
                       at ./library/std/src/panic.rs:140:14
           110: <std::thread::Builder>::spawn_unchecked_::<rustc_interface::util::run_in_thread_pool_with_globals<rustc_interface::interface::run_compiler<core::result::Result<(), rustc_errors::ErrorGuaranteed>, rustc_driver::run_compiler::{closure#1}>::{closure#0}, core::result::Result<(), rustc_errors::ErrorGuaranteed>>::{closure#0}::{closure#0}, core::result::Result<(), rustc_errors::ErrorGuaranteed>>::{closure#1}
                       at ./library/std/src/thread/mod.rs:549:30
           111: <<std::thread::Builder>::spawn_unchecked_<rustc_interface::util::run_in_thread_pool_with_globals<rustc_interface::interface::run_compiler<core::result::Result<(), rustc_errors::ErrorGuaranteed>, rustc_driver::run_compiler::{closure#1}>::{closure#0}, core::result::Result<(), rustc_errors::ErrorGuaranteed>>::{closure#0}::{closure#0}, core::result::Result<(), rustc_errors::ErrorGuaranteed>>::{closure#1} as core::ops::function::FnOnce<()>>::call_once::{shim:vtable#0}
                       at ./library/core/src/ops/function.rs:250:5
           112: <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once
                       at ./library/alloc/src/boxed.rs:1988:9
           113: <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once
                       at ./library/alloc/src/boxed.rs:1988:9
           114: std::sys::unix::thread::Thread::new::thread_start
                       at ./library/std/src/sys/unix/thread.rs:108:17
           115: start_thread
           116: clone
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-bug Category: This is a bug.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants