rust-lang / rust-lang/rust

Error installing cargo-watch

Open
#135,913 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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
cargo install cargo-watch
Meta

rustc --version --verbose:

rustc 1.84.0 (9fc6b4312 2025-01-07)
binary: rustc
commit-hash: 9fc6b43126469e3858e2fe86cafb4f0fd5068869
commit-date: 2025-01-07
host: x86_64-unknown-linux-gnu
release: 1.84.0
LLVM version: 19.1.5
Error output
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.84.0 (9fc6b4312 2025-01-07) running on x86_64-unknown-linux-gnu

note: compiler flags: --crate-type lib -C opt-level=3 -C panic=abort -C linker-plugin-lto -C codegen-units=1 -C strip=debuginfo

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


thread 'main' panicked at /rustc/9fc6b43126469e3858e2fe86cafb4f0fd5068869/library/std/src/thread/mod.rs:1719:40:
called `Option::unwrap()` on a `None` value
stack backtrace:
   Compiling inotify v0.7.1
   0:     0x7148abd8682a - <std::sys::backtrace::BacktraceLock::print::DisplayBacktrace as core::fmt::Display>::fmt::ha4a311b32f6b4ad8
   1:     0x7148ac4277e2 - core::fmt::write::h1866771663f62b81
   2:     0x7148ad281d51 - std::io::Write::write_fmt::hb549e7444823135e
   3:     0x7148abd86682 - std::sys::backtrace::BacktraceLock::print::hddd3a9918ce29aa7
   4:     0x7148abd88b5a - std::panicking::default_hook::{{closure}}::h791f75256b902d7d
   5:     0x7148abd889c0 - std::panicking::default_hook::h82cc572fcb0d8cd7
   6:     0x7148aae14f55 - std[1b49f43dde054edc]::panicking::update_hook::<alloc[f0e0d4128a1437e6]::boxed::Box<rustc_driver_impl[c421ed190efad9be]::install_ice_hook::{closure#0}>>::{closure#0}
   7:     0x7148abd89238 - std::panicking::rust_panic_with_hook::he21644cc2707f2c4
   8:     0x7148abd88fd6 - std::panicking::begin_panic_handler::{{closure}}::h42f7c414fed3cad9
   9:     0x7148abd86cd9 - std::sys::backtrace::__rust_end_short_backtrace::ha26cf5766b4e8c65
  10:     0x7148abd88ccc - rust_begin_unwind
  11:     0x7148a88e43f0 - core::panicking::panic_fmt::h74866b78e934b1c0
  12:     0x7148a8afe56c - core::panicking::panic::h95d8269cf8bd4f7a
  13:     0x7148a9e65909 - core::option::unwrap_failed::hca433a9693b91bd2
  14:     0x7148ad27a0d9 - rustc_driver_impl[c421ed190efad9be]::run_compiler
  15:     0x7148ad1c99e0 - rustc_driver_impl[c421ed190efad9be]::main
  16:     0x5eadf5e9e497 - rustc_main[302bc4b73869fe48]::main
  17:     0x5eadf5e9e483 - std[1b49f43dde054edc]::sys::backtrace::__rust_begin_short_backtrace::<fn(), ()>
  18:     0x5eadf5e9e479 - std[1b49f43dde054edc]::rt::lang_start::<()>::{closure#0}
  19:     0x7148ad29dd41 - std::rt::lang_start_internal::h78dd36c15a6b42b8
  20:     0x5eadf5ea5ea7 - main
  21:     0x7148a7429d90 - <unknown>
  22:     0x7148a7429e40 - __libc_start_main
  23:     0x5eadf5ea5db6 - <unknown>
  24:                0x0 - <unknown>

   Compiling clap v2.34.0


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 cargo install cargo-watch with rustc 1.84.0 on x86_64-unknown-linux-gnu, focusing on the panic at library/std/src/thread/mod.rs:1719:40 while compiling inotify. Start from the reported rustc_driver_impl::run_compiler path and determine what is needed for this installation to complete without the internal compiler 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
32/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.