rust-lang / rust-lang/rust

Compiling -> "thread 'coordinator' panicked"

Open
#135,075 9 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

A-incr-comp C-bug I-ICE S-needs-repro T-compiler
Dominant language
Rust
Stars
119k
Forks
16.1k
PR merge metrics
PR metrics pending

Description

Code
Just the whole project. if needed i can share but no idea where the bug is.
Meta

rustc --version --verbose:

rustc 1.79.0 (129f3b996 2024-06-10)
binary: rustc
commit-hash: 129f3b9964af4d4a709d1383930ade12dfe7c081
commit-date: 2024-06-10
host: x86_64-pc-windows-msvc
release: 1.79.0
LLVM version: 18.1.7
Error output
thread 'coordinator' panicked at /rustc/129f3b9964af4d4a709d1383930ade12dfe7c081\compiler\rustc_codegen_ssa\src\back\write.rs:1638:29:
/rustc/129f3b9964af4d4a709d1383930ade12dfe7c081\compiler\rustc_codegen_ssa\src\back\write.rs:1638:29: worker thread panicked     
stack backtrace:
   0:     0x7ffb57ea3c48 - std::backtrace_rs::backtrace::dbghelp64::trace
                               at /rustc/129f3b9964af4d4a709d1383930ade12dfe7c081/library\std\src\..\..\backtrace\src\backtrace\dbghelp64.rs:91
   1:     0x7ffb57ea3c48 - std::backtrace_rs::backtrace::trace_unsynchronized
                               at /rustc/129f3b9964af4d4a709d1383930ade12dfe7c081/library\std\src\..\..\backtrace\src\backtrace\mod.rs:66
   2:     0x7ffb57ea3c48 - std::sys_common::backtrace::_print_fmt
                               at /rustc/129f3b9964af4d4a709d1383930ade12dfe7c081/library\std\src\sys_common\backtrace.rs:68     
   3:     0x7ffb57ea3c48 - std::sys_common::backtrace::_print::impl$0::fmt
                               at /rustc/129f3b9964af4d4a709d1383930ade12dfe7c081/library\std\src\sys_common\backtrace.rs:44     
   4:     0x7ffb57ed4f09 - core::fmt::rt::Argument::fmt
                               at /rustc/129f3b9964af4d4a709d1383930ade12dfe7c081/library\core\src\fmt\rt.rs:165
   5:     0x7ffb57ed4f09 - core::fmt::write
                               at /rustc/129f3b9964af4d4a709d1383930ade12dfe7c081/library\core\src\fmt\mod.rs:1157
   6:     0x7ffb57e9a3e1 - std::io::Write::write_fmt<std::sys::pal::windows::stdio::Stderr>
                               at /rustc/129f3b9964af4d4a709d1383930ade12dfe7c081/library\std\src\io\mod.rs:1832
   7:     0x7ffb57ea3a26 - std::sys_common::backtrace::print
                               at /rustc/129f3b9964af4d4a709d1383930ade12dfe7c081/library\std\src\sys_common\backtrace.rs:34     
   8:     0x7ffb57ea6b88 - std::panicking::default_hook::closure$1
                               at /rustc/129f3b9964af4d4a709d1383930ade12dfe7c081/library\std\src\panicking.rs:271
   9:     0x7ffb57ea67f7 - std::panicking::default_hook
                               at /rustc/129f3b9964af4d4a709d1383930ade12dfe7c081/library\std\src\panicking.rs:298
  10:     0x7ffb49f9fdfe - __longjmp_internal
  11:     0x7ffb57ea71b7 - alloc::boxed::impl$50::call
                               at /rustc/129f3b9964af4d4a709d1383930ade12dfe7c081/library\alloc\src\boxed.rs:2036
  12:     0x7ffb57ea71b7 - std::panicking::rust_panic_with_hook
                               at /rustc/129f3b9964af4d4a709d1383930ade12dfe7c081/library\std\src\panicking.rs:799
  13:     0x7ffb4b100734 - ar_archive_writer[96f46fe156109c5a]::archive_writer::write_symbols
  14:     0x7ffb4b0f6029 - ar_archive_writer[96f46fe156109c5a]::archive_writer::write_symbols
  15:     0x7ffb4b0e3c13 - ar_archive_writer[96f46fe156109c5a]::archive_writer::write_symbols
  16:     0x7ffb4b195c6d - rustc_middle[9a5583d0f984d223]::util::bug::bug_fmt
  17:     0x7ffb4b1767bd - rustc_middle[9a5583d0f984d223]::ty::consts::const_param_default
  18:     0x7ffb4b1765fd - rustc_middle[9a5583d0f984d223]::ty::consts::const_param_default
  19:     0x7ffb4b195ba2 - rustc_middle[9a5583d0f984d223]::util::bug::bug_fmt
  20:     0x7ffb48d153a6 - <rustc_interface[5039fedd6fed528e]::passes::LintStoreExpandImpl as rustc_expand[8a362ccb6e11b5d0]::base::LintStoreExpand>::pre_expansion_lint
  21:     0x7ffb45d79bfb - llvm::DenseMap<llvm::StructType * __ptr64,llvm::detail::DenseSetEmpty,llvm::IRMover::StructTypeKeyInfo,llvm::detail::DenseSetPair<llvm::StructType * __ptr64> >::~DenseMap<llvm::StructType * __ptr64,llvm::detail::DenseSetEmpty,llvm::IRMover::StructTypeKeyI
  22:     0x7ffb45d8568d - llvm::DenseMap<llvm::StructType * __ptr64,llvm::detail::DenseSetEmpty,llvm::IRMover::StructTypeKeyInfo,llvm::detail::DenseSetPair<llvm::StructType * __ptr64> >::~DenseMap<llvm::StructType * __ptr64,llvm::detail::DenseSetEmpty,llvm::IRMover::StructTypeKeyI
  23:     0x7ffb57eb822d - alloc::boxed::impl$48::call_once
                               at /rustc/129f3b9964af4d4a709d1383930ade12dfe7c081/library\alloc\src\boxed.rs:2022
  24:     0x7ffb57eb822d - alloc::boxed::impl$48::call_once
                               at /rustc/129f3b9964af4d4a709d1383930ade12dfe7c081/library\alloc\src\boxed.rs:2022
  25:     0x7ffb57eb822d - std::sys::pal::windows::thread::impl$0::new::thread_start
                               at /rustc/129f3b9964af4d4a709d1383930ade12dfe7c081/library\std\src\sys\pal\windows\thread.rs:52   
  26:     0x7ffbb8b07374 - BaseThreadInitThunk
  27:     0x7ffbb965cc91 - RtlUserThreadStart

error: 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.79.0 (129f3b996 2024-06-10) running on x86_64-pc-windows-msvc

note: compiler flags: --crate-type bin -C embed-bitcode=no -C debuginfo=2 -C incremental=[REDACTED]

note: some of the compiler flags provided by cargo are hidden

query stack during panic:
end of query stack
error: cached cgu 58qpz0sqetpnq1gt should have an object file, but doesn't

error: could not compile `test-arca-ws` (bin "test-arca-ws") due to 1 previous error
Backtrace

running it with "RUST_BACKTRACE=1" gives exactly the same msg

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the reported cargo build failure for test-arca-ws on x86_64-pc-windows-msvc, then inspect compiler/rustc_codegen_ssa/src/back/write.rs around line 1638 and the reported ar_archive_writer frames. The issue needs a minimal verifiable example and enough information to identify whether the compiler ICE is reproducible; done means a reduced reproducer and a confirmed diagnosis or fix.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
compilers
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.