Closed
Description
I am trying to run sccache in a docker container, passing in the S3 (minio) settings via environment variable. cargo build fails without much logging, but, if I fire up the sccache instance in no-fork daemon mode, I am able to get the below backtrace.
app@501a1e077ff5:~/project$ rustc -V
rustc 1.49.0-nightly (f2bbdd0a3 2020-11-04)
Finished release [optimized] target(s) in 7m 24s
Replacing /usr/local/cargo/bin/sccache
Replaced package `sccache v0.2.13` with `sccache v0.2.13` (executable `sccache`)
app@501a1e077ff5:~/project$ SCCACHE_LOG=debug SCCACHE_START_SERVER=1 SCCACHE_NO_DAEMON=1 RUST_BACKTRACE=1 sccache
thread '<unnamed>' panicked at 'attempted to leave type `linked_hash_map::Node<std::path::PathBuf, compiler::rust::RlibDepsDetail>` uninitialized, which is invalid', /rustc/f2bbdd0a3257cc980c
934a92c5bf9808cf31728c/library/core/src/mem/mod.rs:659:9
stack backtrace:
0: rust_begin_unwind
at /rustc/f2bbdd0a3257cc980c934a92c5bf9808cf31728c/library/std/src/panicking.rs:495:5
1: core::panicking::panic_fmt
at /rustc/f2bbdd0a3257cc980c934a92c5bf9808cf31728c/library/core/src/panicking.rs:92:14
2: core::panicking::panic
at /rustc/f2bbdd0a3257cc980c934a92c5bf9808cf31728c/library/core/src/panicking.rs:50:5
3: linked_hash_map::LinkedHashMap<K,V,S>::insert
4: lru_disk_cache::lru_cache::LruCache<K,V,S,M>::insert
5: sccache::compiler::rust::RlibDepReader::discover_rlib_deps
6: sccache::compiler::rust::RlibDepReader::new_with_check
7: <futures::future::lazy::Lazy<F,R> as futures::future::Future>::poll
8: std::panicking::try
9: <futures::future::catch_unwind::CatchUnwind<F> as futures::future::Future>::poll
10: <futures_cpupool::MySender<F,core::result::Result<<F as futures::future::Future>::Item,<F as futures::future::Future>::Error>> as futures::future::Future>::poll
11: futures::task_impl::std::set
12: futures::task_impl::std::Run::run
13: futures_cpupool::Inner::work
Metadata
Metadata
Assignees
Labels
No labels