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

Deadlock error #117822

Closed
nadenf opened this issue Nov 11, 2023 · 3 comments
Closed

Deadlock error #117822

nadenf opened this issue Nov 11, 2023 · 3 comments
Labels
C-bug Category: This is a bug. I-ICE Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️ T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. WG-compiler-parallel Working group: Parallelizing the compiler

Comments

@nadenf
Copy link

nadenf commented Nov 11, 2023

Meta

environment variables:

export RUSTFLAGS="-Z threads=8"
export RUST_BACKTRACE=full

rustc --version --verbose:

rustc 1.75.0-nightly (0f44eb32f 2023-11-09)
binary: rustc
commit-hash: 0f44eb32f1123ac93ab404d74c295263ce468343
commit-date: 2023-11-09
host: aarch64-apple-darwin
release: 1.75.0-nightly
LLVM version: 17.0.4

Error output

thread '<unnamed>' panicked at compiler/rustc_query_system/src/query/job.rs:543:9:
deadlock detected
stack backtrace:
   0:        0x1057e8270 - std::backtrace::Backtrace::create::hd93532a1a94bd2fd
   1:        0x10ec06d38 - <alloc[e142c9bf9c63cfc4]::boxed::Box<rustc_driver_impl[1a98898d3f3a38ed]::install_ice_hook::{closure#0}> as core[4e0a19b8f4e7b450]::ops::function::Fn<(&dyn for<'a, 'b> core[4e0a19b8f4e7b450]::ops::function::Fn<(&'a core[4e0a19b8f4e7b450]::panic::panic_info::PanicInfo<'b>,), Output = ()> + core[4e0a19b8f4e7b450]::marker::Send + core[4e0a19b8f4e7b450]::marker::Sync, &core[4e0a19b8f4e7b450]::panic::panic_info::PanicInfo)>>::call
   2:        0x10580016c - std::panicking::rust_panic_with_hook::h9625542414b348eb
   3:        0x1057fff10 - std::panicking::begin_panic_handler::{{closure}}::hb4fa343c314105dc
   4:        0x1057fd720 - std::sys_common::backtrace::__rust_end_short_backtrace::he263cec7b035e782
   5:        0x1057ffcd0 - _rust_begin_unwind
   6:        0x1058590b8 - core::panicking::panic_fmt::h624e311b541e9a0d
   7:        0x110016c6c - rustc_query_system[2c5cf56d08163fd7]::query::job::deadlock
   8:        0x10ec17a58 - std[f37625d93cba7df1]::sys_common::backtrace::__rust_begin_short_backtrace::<rustc_interface[6fd153b9b61224af]::util::run_in_thread_pool_with_globals<rustc_interface[6fd153b9b61224af]::interface::run_compiler<(), rustc_driver_impl[1a98898d3f3a38ed]::run_compiler::{closure#0}>::{closure#0}, ()>::{closure#2}::{closure#1}, ()>
   9:        0x10ebe8cfc - <<std[f37625d93cba7df1]::thread::Builder>::spawn_unchecked_<rustc_interface[6fd153b9b61224af]::util::run_in_thread_pool_with_globals<rustc_interface[6fd153b9b61224af]::interface::run_compiler<core[4e0a19b8f4e7b450]::result::Result<(), rustc_span[7d3d88934d9d268]::ErrorGuaranteed>, rustc_driver_impl[1a98898d3f3a38ed]::run_compiler::{closure#1}>::{closure#0}, core[4e0a19b8f4e7b450]::result::Result<(), rustc_span[7d3d88934d9d268]::ErrorGuaranteed>>::{closure#2}::{closure#1}, ()>::{closure#1} as core[4e0a19b8f4e7b450]::ops::function::FnOnce<()>>::call_once::{shim:vtable#0}
  10:        0x105808368 - std::sys::unix::thread::Thread::new::thread_start::h6af77cae4d08b8df
  11:        0x18d94b034 - __pthread_joiner_wake


rustc version: 1.75.0-nightly (0f44eb32f 2023-11-09)
platform: aarch64-apple-darwin
@nadenf nadenf added C-bug Category: This is a bug. I-ICE Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️ T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. labels Nov 11, 2023
@rustbot rustbot added the needs-triage This issue may need triage. Remove it if it has been sufficiently triaged. label Nov 11, 2023
@saethlin saethlin added WG-compiler-parallel Working group: Parallelizing the compiler and removed needs-triage This issue may need triage. Remove it if it has been sufficiently triaged. labels Nov 11, 2023
@SparrowLii
Copy link
Member

Could you provide the minimal example causes the ICE?

@SparrowLii
Copy link
Member

Can you reproduce this bug using the latest nightly version to get the new error output?

@SparrowLii
Copy link
Member

I think it has been fixed by #118488

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. I-ICE Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️ T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. WG-compiler-parallel Working group: Parallelizing the compiler
Projects
None yet
Development

No branches or pull requests

4 participants