Skip to content

Panic on parallel build (deadlock detected) #118529

Closed
@formbook

Description

@formbook

rustc 1.76.0-nightly (49b3924 2023-11-27)
cargo 1.76.0-nightly (9b13310ca 2023-11-24)

the file it asked to attach: rust.txt

thread '<unnamed>' panicked at compiler/rustc_query_system/src/query/job.rs:548:13:
deadlock detected! current query map:
{
    QueryJobId(
        80729,
    ): 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: 9945948751586091424,
        },
        job: QueryJob {
            id: QueryJobId(
                80729,
            ),
            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(
        80867,
    ): 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(
                80867,
            ),
            span: Span {
                lo: BytePos(
                    0,
                ),
                hi: BytePos(
                    0,
                ),
                ctxt: #0,
            },
            parent: Some(
                QueryJobId(
                    80729,
                ),
            ),
            latch: None,
        },
    },
}
stack backtrace:
   Compiling async-std v1.12.0
   0:     0x7fe6065b6a2c - std::backtrace_rs::backtrace::libunwind::trace::h9c27ae506976e536
                               at /rustc/49b3924bd4a34d3cf9c37b74120fba78d9712ab8/library/std/src/../../backtrace/src/backtrace/libunwind.rs:104:5
   1:     0x7fe6065b6a2c - std::backtrace_rs::backtrace::trace_unsynchronized::h62e141e6a200e6c2
                               at /rustc/49b3924bd4a34d3cf9c37b74120fba78d9712ab8/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5
   2:     0x7fe6065b6a2c - std::sys_common::backtrace::_print_fmt::hdf2b25da31f023ba
                               at /rustc/49b3924bd4a34d3cf9c37b74120fba78d9712ab8/library/std/src/sys_common/backtrace.rs:68:5
   3:     0x7fe6065b6a2c - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::h3ac0b64ce6cfe863
                               at /rustc/49b3924bd4a34d3cf9c37b74120fba78d9712ab8/library/std/src/sys_common/backtrace.rs:44:22
   4:     0x7fe606609a70 - core::fmt::rt::Argument::fmt::h6aa2292ec1903e39
                               at /rustc/49b3924bd4a34d3cf9c37b74120fba78d9712ab8/library/core/src/fmt/rt.rs:142:9
   5:     0x7fe606609a70 - core::fmt::write::h41514bcd312dd51c
                               at /rustc/49b3924bd4a34d3cf9c37b74120fba78d9712ab8/library/core/src/fmt/mod.rs:1120:17
   6:     0x7fe6065aa8ef - std::io::Write::write_fmt::hdb1ddb32bea23dbe
                               at /rustc/49b3924bd4a34d3cf9c37b74120fba78d9712ab8/library/std/src/io/mod.rs:1766:15
   7:     0x7fe6065b6814 - std::sys_common::backtrace::_print::hf685833faa7fe2a3
                               at /rustc/49b3924bd4a34d3cf9c37b74120fba78d9712ab8/library/std/src/sys_common/backtrace.rs:47:5
   8:     0x7fe6065b6814 - std::sys_common::backtrace::print::h447647edbf699f27
                               at /rustc/49b3924bd4a34d3cf9c37b74120fba78d9712ab8/library/std/src/sys_common/backtrace.rs:34:9
   9:     0x7fe6065b94a7 - std::panicking::default_hook::{{closure}}::h9689a15e5dae79ac
  10:     0x7fe6065b920f - std::panicking::default_hook::h2d38e881f9eda692
                               at /rustc/49b3924bd4a34d3cf9c37b74120fba78d9712ab8/library/std/src/panicking.rs:292:9
  11:     0x7fe6032ed470 - std[23ee412b4092bb]::panicking::update_hook::<alloc[e1658fb7cef3bb05]::boxed::Box<rustc_driver_impl[891cbe23e357ec56]::install_ice_hook::{closure#0}>>::{closure#0}
  12:     0x7fe6065b9be8 - <alloc::boxed::Box<F,A> as core::ops::function::Fn<Args>>::call::ha93d8a0e59d3a881
                               at /rustc/49b3924bd4a34d3cf9c37b74120fba78d9712ab8/library/alloc/src/boxed.rs:2021:9
  13:     0x7fe6065b9be8 - std::panicking::rust_panic_with_hook::hd1ee884b9495e206
                               at /rustc/49b3924bd4a34d3cf9c37b74120fba78d9712ab8/library/std/src/panicking.rs:783:13
  14:     0x7fe6065b993e - std::panicking::begin_panic_handler::{{closure}}::h22fee33aab39e73c
                               at /rustc/49b3924bd4a34d3cf9c37b74120fba78d9712ab8/library/std/src/panicking.rs:657:13
  15:     0x7fe6065b6ef6 - std::sys_common::backtrace::__rust_end_short_backtrace::h95b1d8aedb30bf62
                               at /rustc/49b3924bd4a34d3cf9c37b74120fba78d9712ab8/library/std/src/sys_common/backtrace.rs:171:18
  16:     0x7fe6065b96a2 - rust_begin_unwind
                               at /rustc/49b3924bd4a34d3cf9c37b74120fba78d9712ab8/library/std/src/panicking.rs:645:5
  17:     0x7fe606606145 - core::panicking::panic_fmt::h89ea74967cf6ec7d
                               at /rustc/49b3924bd4a34d3cf9c37b74120fba78d9712ab8/library/core/src/panicking.rs:72:14
  18:     0x7fe603bb0159 - rustc_query_system[98b1e30a43f9cb75]::query::job::deadlock
  19:     0x7fe6032e8a8c - std[23ee412b4092bb]::sys_common::backtrace::__rust_begin_short_backtrace::<rustc_interface[8adf1ec4c1467232]::util::run_in_thread_pool_with_globals<rustc_interface[8adf1ec4c1467232]::interface::run_compiler<core[2fd1802afb11265b]::result::Result<(), rustc_span[8b5f317805ba237c]::ErrorGuaranteed>, rustc_driver_impl[891cbe23e357ec56]::run_compiler::{closure#0}>::{closure#0}, core[2fd1802afb11265b]::result::Result<(), rustc_span[8b5f317805ba237c]::ErrorGuaranteed>>::{closure#2}::{closure#1}, ()>
  20:     0x7fe6032ef631 - <<std[23ee412b4092bb]::thread::Builder>::spawn_unchecked_<rustc_interface[8adf1ec4c1467232]::util::run_in_thread_pool_with_globals<rustc_interface[8adf1ec4c1467232]::interface::run_compiler<core[2fd1802afb11265b]::result::Result<(), rustc_span[8b5f317805ba237c]::ErrorGuaranteed>, rustc_driver_impl[891cbe23e357ec56]::run_compiler::{closure#0}>::{closure#0}, core[2fd1802afb11265b]::result::Result<(), rustc_span[8b5f317805ba237c]::ErrorGuaranteed>>::{closure#2}::{closure#1}, ()>::{closure#1} as core[2fd1802afb11265b]::ops::function::FnOnce<()>>::call_once::{shim:vtable#0}
  21:     0x7fe6065c3a85 - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::h56f9dbf676dc2949
                               at /rustc/49b3924bd4a34d3cf9c37b74120fba78d9712ab8/library/alloc/src/boxed.rs:2007:9
  22:     0x7fe6065c3a85 - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::h0aeb3b2beefea16d
                               at /rustc/49b3924bd4a34d3cf9c37b74120fba78d9712ab8/library/alloc/src/boxed.rs:2007:9
  23:     0x7fe6065c3a85 - std::sys::unix::thread::Thread::new::thread_start::hef5a9ef6142ee84b
                               at /rustc/49b3924bd4a34d3cf9c37b74120fba78d9712ab8/library/std/src/sys/unix/thread.rs:108:17
  24:     0x7fe6004aa9eb - <unknown>
  25:     0x7fe60052e7cc - <unknown>
  26:                0x0 - <unknown>

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 `/home/slevin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/rustls-webpki-0.101.7/rustc-ice-2023-12-02T10_21_05-25044.txt` to your bug report

note: compiler flags: --crate-type lib -C embed-bitcode=no -C debug-assertions=off -C strip=symbols -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 http-body-util v0.1.0
   Compiling tower-http v0.5.0
error: could not compile `rustls-webpki` (lib)

Caused by:
  process didn't exit successfully: `/home/slevin/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/bin/rustc --crate-name webpki --edition=2021 /home/slevin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/rustls-webpki-0.101.7/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --diagnostic-width=89 --crate-type lib --emit=dep-info,metadata,link -C embed-bitcode=no -C debug-assertions=off --cfg 'feature="alloc"' --cfg 'feature="default"' --cfg 'feature="std"' -C metadata=03ff1356f0cc9632 -C extra-filename=-03ff1356f0cc9632 --out-dir /home/slevin/code/rust/server/target/release/deps -C strip=symbols -L dependency=/home/slevin/code/rust/server/target/release/deps --extern ring=/home/slevin/code/rust/server/target/release/deps/libring-9b9bfce7b0f2df34.rmeta --extern untrusted=/home/slevin/code/rust/server/target/release/deps/libuntrusted-a7547fc5a9712d8f.rmeta --cap-lints allow -Z threads=8 -L native=/home/slevin/code/rust/server/target/release/build/ring-d881db683f677f0f/out` (signal: 6, SIGABRT: process abort signal)
warning: build failed, waiting for other jobs to finish...

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-parallel-compilerArea: parallel compilerC-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