Skip to content

ICE "deadlock handler panicked, aborting process" #118556

Closed as not planned
Closed as not planned
@Hpmason

Description

@Hpmason

I'm not able to reproduce this issue, but I hope this is still helpful since it's an ICE from compiling another crate.

Code

Unable reproduce

Meta

rustc --version --verbose:

rustc 1.76.0-nightly (b10cfcd65 2023-11-29)
binary: rustc
commit-hash: b10cfcd65fd7f7b1ab9beb34798b2108de003452
commit-date: 2023-11-29
host: x86_64-pc-windows-msvc
release: 1.76.0-nightly
LLVM version: 17.0.5

Error output

cargo build -p ar-app
   Compiling autocfg v1.1.0
   Compiling cfg-if v1.0.0
   Compiling proc-macro2 v1.0.69
   Compiling scopeguard v1.2.0
   Compiling unicode-ident v1.0.12
   Compiling crossbeam-utils v0.8.16
   Compiling libc v0.2.149
   Compiling glob v0.3.1
   Compiling simd-adler32 v0.3.7
   Compiling rayon-core v1.12.0
   Compiling memchr v2.6.4
   Compiling windows_x86_64_msvc v0.48.5
   Compiling adler v1.0.2
   Compiling regex-syntax v0.8.2
   Compiling crc32fast v1.3.2
   Compiling semver v1.0.20
   Compiling futures-core v0.3.29
   Compiling jobserver v0.1.26
   Compiling dunce v1.0.4
   Compiling either v1.9.0
   Compiling once_cell v1.18.0
   Compiling percent-encoding v2.3.0
   Compiling weezl v0.1.7
   Compiling vcpkg v0.2.15
   Compiling futures-sink v0.3.29
   Compiling pkg-config v0.3.27
   Compiling shlex v1.2.0
   Compiling color_quant v1.1.0
   Compiling bitflags v1.3.2
   Compiling lebe v0.5.2
   Compiling smallvec v1.11.1
   Compiling bit_field v0.10.2
   Compiling anstyle v1.0.4
   Compiling bytemuck v1.14.0
   Compiling anyhow v1.0.75
   Compiling getrandom v0.2.10
   Compiling half v2.3.1
   Compiling utf8parse v0.2.1
   Compiling byteorder v1.5.0
   Compiling colorchoice v1.0.0
   Compiling slice-of-array v0.3.2
   Compiling clap_lex v0.6.0
   Compiling strsim v0.10.0
   Compiling heck v0.4.1
   Compiling anstyle-parse v0.2.2
   Compiling miniz_oxide v0.7.1
   Compiling nanorand v0.7.0
   Compiling fdeflate v0.3.1
   Compiling zune-inflate v0.2.54
thread '<unnamed>' panicked at compiler\rustc_query_system\src\query\job.rs:548:13:
deadlock detected! current query map:
{
    QueryJobId(
        42346,
    ): QueryJobInfo {
        query: QueryStackFrame {
            description: "collecting exported symbols for crate `0`",
            span: Some(
                Span {
                    lo: BytePos(
                        0,
                    ),
                    hi: BytePos(
                        0,
                    ),
                    ctxt: #0,
                },
            ),
            def_id: None,
            def_kind: None,
            ty_adt_id: None,
            dep_kind: DepKind {
                variant: 249,
            },
            hash: 3256831767607692344,
        },
        job: QueryJob {
            id: QueryJobId(
                42346,
            ),
            span: Span {
                lo: BytePos(
                    0,
                ),
                hi: BytePos(
                    0,
                ),
                ctxt: #0,
            },
            parent: None,
            latch: Some(
                QueryLatch {
                    info: Mutex {
                        data: QueryLatchInfo {
                            complete: false,
                            waiters: [
                                QueryWaiter {
                                    query: None,
                                    condvar: Condvar { .. },
                                    span: Span {
                                        lo: BytePos(
                                            0,
                                        ),
                                        hi: BytePos(
                                            0,
                                        ),
                                        ctxt: #0,
                                    },
                                    cycle: Mutex {
                                        data: None,
                                    },
                                },
                            ],
                        },
                    },
                },
            ),
        },
    },
    QueryJobId(
        42427,
    ): QueryJobInfo {
        query: QueryStackFrame {
            description: "collect_and_partition_mono_items",
            span: Some(
                Span {
                    lo: BytePos(
                        0,
                    ),
                    hi: BytePos(
                        0,
                    ),
                    ctxt: #0,
                },
            ),
            def_id: None,
            def_kind: None,
            ty_adt_id: None,
            dep_kind: DepKind {
                variant: 250,
            },
            hash: 15975767348252564715,
        },
        job: QueryJob {
            id: QueryJobId(
                42427,
            ),
            span: Span {
                lo: BytePos(
                    0,
                ),
                hi: BytePos(
                    0,
                ),
                ctxt: #0,
            },
            parent: Some(
                QueryJobId(
                    42346,
                ),
            ),
            latch: None,
        },
    },
}
stack backtrace:
   0:     0x7ff864613493 - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::ha2b3e5c669f45eaf
   1:     0x7ff864645d9d - core::fmt::write::h98cdb318688c8238
   2:     0x7ff864609e31 - <std::io::IoSlice as core::fmt::Debug>::fmt::hc8ec69ce722b2d03
   3:     0x7ff86461329a - std::sys_common::backtrace::lock::h9a98f0aa8cdea5b7
   4:     0x7ff864616769 - std::panicking::default_hook::h41e7f6b9b881102c
   5:     0x7ff86461642b - std::panicking::default_hook::h41e7f6b9b881102c
   Compiling cc v1.0.79
   6:     0x7ff858e714d4 - <tracing_subscriber[103b450dab19fce1]::util::TryInitError as core[ac6bdc4ff235632f]::fmt::Display>::fmt
   7:     0x7ff864616d43 - std::panicking::rust_panic_with_hook::h09c64d45d7cf776c
   8:     0x7ff864616be5 - <std::panicking::begin_panic_handler::StaticStrPayload as core::panic::PanicPayload>::take_box::h45bc497d77b3f6b9
   9:     0x7ff864613d89 - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::ha2b3e5c669f45eaf
  10:     0x7ff8646168f4 - rust_begin_unwind
  11:     0x7ff86466b637 - core::panicking::panic_fmt::h37c50329d2cb2deb
  12:     0x7ff85a2d2229 - rustc_query_system[b8cea0c7659b2c9f]::query::job::deadlock
  13:     0x7ff858e62bc3 - <rustc_data_structures[ad9aeda13a13b90a]::hashes::Hash128 as core[ac6bdc4ff235632f]::fmt::Debug>::fmt
  14:     0x7ff858e6cdd4 - <tracing_subscriber[103b450dab19fce1]::util::TryInitError as core[ac6bdc4ff235632f]::fmt::Display>::fmt
  15:     0x7ff858e63458 - <rustc_data_structures[ad9aeda13a13b90a]::hashes::Hash128 as core[ac6bdc4ff235632f]::fmt::Debug>::fmt
  16:     0x7ff864628e8c - std::sys::windows::thread::Thread::new::h87e0f921de212cb4
  17:     0x7ff8e6a2257d - BaseThreadInitThunk
  18:     0x7ff8e77caa58 - 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: please attach the file at `C:\Users\hpmas\.cargo\registry\src\index.crates.io-6f17d22bba15001f\weezl-0.1.7\rustc-ice-2023-12-03T03_25_52-15276.txt` to your bug report

note: compiler flags: --crate-type lib -C embed-bitcode=no -C debuginfo=2 -Z threads=8

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

query stack during panic:
end of query stack
deadlock handler panicked, aborting process
   Compiling memoffset v0.9.0
   Compiling crossbeam-epoch v0.9.15
   Compiling lock_api v0.4.11
   Compiling num-traits v0.2.17
   Compiling clang-sys v1.6.1
   Compiling num-integer v0.1.45
   Compiling num-rational v0.4.1
   Compiling qoi v0.4.1
   Compiling aho-corasick v1.1.2
error: could not compile `weezl` (lib)

Caused by:
  process didn't exit successfully: `rustc --crate-name weezl --edition=2018 C:\Users\hpmas\.cargo\registry\src\index.crates.io-6f17d22bba15001f\weezl-0.1.7\src\lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --diagnostic-width=91 --crate-type lib --emit=dep-info,metadata,link -C embed-bitcode=no -C debuginfo=2 --cfg "feature=\"alloc\"" --cfg "feature=\"default\"" --cfg "feature=\"std\"" -C metadata=709b9b3e69e55dfe -C extra-filename=-709b9b3e69e55dfe --out-dir C:\Users\hpmas\.cargo-target\debug\deps -L dependency=C:\Users\hpmas\.cargo-target\debug\deps --cap-lints allow -Z threads=8` (exit code: 0xc0000409, STATUS_STACK_BUFFER_OVERRUN)
warning: build failed, waiting for other jobs to finish...

Generated ICE message:
rustc-ice-2023-12-03T03_25_52-15276.txt

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-bugCategory: This is a bug.I-ICEIssue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions