rust-lang / rust-lang/rust

`cargo test`: `thread 'coordinator' panicked at compiler\rustc_middle\src\util\bug.rs:36:26:` when building on a drive with low storage

Open
#125,496 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

C-bug I-ICE O-windows T-compiler
Dominant language
Rust
Stars
119k
Forks
16.1k
PR merge metrics
PR metrics pending

Description

Version: cargo 1.78.0 (54d8815d0 2024-03-26)

If my drive reaches 0 bytes available during the build I get a pair of errors;

the below, from rustc:

thread 'coordinator' panicked at compiler\rustc_middle\src\util\bug.rs:36:26:
/rustc/9b00956e56009bab2aa15d7bff10916599e3d6d6\compiler\rustc_codegen_ssa\src\back\write.rs:1617:29: worker thread panicked
stack backtrace:
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.

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.78.0 (9b00956e5 2024-04-29) running on x86_64-pc-windows-msvc

note: compiler flags: -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 581luizzqw65xw1h should have an object file, but doesn't

As well as

          LINK : warning LNK4098: defaultlib 'libcmt.lib' conflicts with use of other libs; use /NODEFAULTLIB:library
          LINK : fatal error LNK1318: Unexpected PDB error; OK (0) ''

From the linker

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

Reproduce the failure with cargo test on Windows while the build drive reaches 0 bytes available. Start with compiler/rustc_middle/src/util/bug.rs and compiler/rustc_codegen_ssa/src/back/write.rs, then compare the compiler panic with the reported LNK1318 linker error. Done should mean this condition no longer produces the unexpected compiler panic and missing cached object error.

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
Mostly clear
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.