Closed GregoryConrad closed 11 months ago
I'm not sure the out of space error is unrelated. Did you experience the same ICE outside of that CI run? We already had instances of assertions triggering in metadata or incremental caches because of truncated files.
@cjgillot as I interpreted the logs, the out of memory error happened later in the CI job, but maybe it was only reported later. I suppose it is entirely possible that it is related, now that I think of it, and just wasn't reported by the rust compiler.
Did you experience the same ICE outside of that CI run?
I actually only experienced that error for several days in a row, and haven't seen it again for some weeks now. I never tried compiling locally since I don't have a Windows computer. Considering I have noticed other issues related to the available storage space on CI sometimes fluctuating, that could be why.
We already had instances of assertions triggering in metadata or incremental caches because of truncated files.
Perhaps this is caused by out of storage space then.
Hello. I just got the same panic, while building a project. Mine is most probably due to space shortage, as the compiler makes it very explicit.
error: failed to write /var/folders/qr/w92rrf2x5pn_ny17y7kljt300000gn/T/rustcBr1XIs/lib.rmeta: No space left on device (os error 28)
error: could not compile `ndarray` due to previous error
warning: build failed, waiting for other jobs to finish...
thread 'rustc' panicked at 'assertion failed: pos.get() <= self.position()', compiler/rustc_metadata/src/rmeta/encoder.rs:435:9
LLVM ERROR: IO failure on output stream: No space left on device
error: could not compile `rayon-core`
LLVM ERROR: IO failure on output stream: No space left on device
error: failed to run custom build command for `ring v0.16.20`
Bactrace:
thread 'rustc' panicked at 'assertion failed: pos.get() <= self.position()', compiler/rustc_metadata/src/rmeta/encoder.rs:435:9
stack backtrace:
0: 0x102850468 - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::h105074e3d85f800b
1: 0x1028a3388 - core::fmt::write::h34766cf8fff7af1e
2: 0x1028461e0 - std::io::Write::write_fmt::hd64c4cf6e7adea59
3: 0x10285027c - std::sys_common::backtrace::print::h2a6828a537036cf9
4: 0x102852d04 - std::panicking::default_hook::{{closure}}::h4e82ce6ccef941b2
5: 0x102852a5c - std::panicking::default_hook::h29f62f8795c5cb00
6: 0x10a92574c - rustc_driver_impl[4da67b3d18d5a97a]::DEFAULT_HOOK::{closure#0}::{closure#0}
7: 0x1028533fc - std::panicking::rust_panic_with_hook::h19862cbd0fbda7ba
8: 0x1028531b4 - std::panicking::begin_panic_handler::{{closure}}::h3f3626935e1669fe
9: 0x102850888 - std::sys_common::backtrace::__rust_end_short_backtrace::h5054ef52bd507d0a
10: 0x102852f50 - _rust_begin_unwind
11: 0x1028ce608 - core::panicking::panic_fmt::h7e47e10600a90221
12: 0x1028ce678 - core::panicking::panic::h2f410888133670e4
13: 0x10de92184 - <rustc_span[9bec1e8d1a20d9df]::hygiene::HygieneEncodeContext>::encode::<(&mut rustc_metadata[9b8298dffc3c5cc]::rmeta:
:encoder::EncodeContext, &mut rustc_metadata[9b8298dffc3c5cc]::rmeta::table::TableBuilder<u32, core[446d629763b4aa]::option::Option<rustc_metada
ta[9b8298dffc3c5cc]::rmeta::LazyValue<rustc_span[9bec1e8d1a20d9df]::hygiene::SyntaxContextData>>>, &mut rustc_metadata[9b8298dffc3c5cc]::rmeta::
table::TableBuilder<rustc_span[9bec1e8d1a20d9df]::hygiene::ExpnIndex, core[446d629763b4aa]::option::Option<rustc_metadata[9b8298dffc3c5cc]::rmet
a::LazyValue<rustc_span[9bec1e8d1a20d9df]::hygiene::ExpnData>>>, &mut rustc_metadata[9b8298dffc3c5cc]::rmeta::table::TableBuilder<rustc_span[9be
c1e8d1a20d9df]::hygiene::ExpnIndex, core[446d629763b4aa]::option::Option<rustc_metadata[9b8298dffc3c5cc]::rmeta::LazyValue<rustc_span[9bec1e8d1a
20d9df]::hygiene::ExpnHash>>>), <rustc_metadata[9b8298dffc3c5cc]::rmeta::encoder::EncodeContext>::encode_hygiene::{closure#0}, <rustc_metadata[9
b8298dffc3c5cc]::rmeta::encoder::EncodeContext>::encode_hygiene::{closure#1}>
14: 0x10df0ec30 - <rustc_metadata[9b8298dffc3c5cc]::rmeta::encoder::EncodeContext>::encode_crate_root
15: 0x10df1a070 - rustc_metadata[9b8298dffc3c5cc]::rmeta::encoder::encode_metadata_impl
16: 0x10de80364 - rustc_data_structures[a49ab2b4a1c20397]::sync::join::<rustc_metadata[9b8298dffc3c5cc]::rmeta::encoder::encode_metadat
a::{closure#0}, rustc_metadata[9b8298dffc3c5cc]::rmeta::encoder::encode_metadata::{closure#1}, (), ()>
17: 0x10df198d8 - rustc_metadata[9b8298dffc3c5cc]::rmeta::encoder::encode_metadata
18: 0x10de898e0 - rustc_metadata[9b8298dffc3c5cc]::fs::encode_and_write_metadata
19: 0x10a9c2918 - rustc_interface[812bb1defcb7896d]::passes::start_codegen
20: 0x10a9c46c4 - <rustc_middle[a12d4e31e9c7c7b2]::ty::context::GlobalCtxt>::enter::<<rustc_interface[812bb1defcb7896d]::queries::Queri
es>::ongoing_codegen::{closure#0}::{closure#0}, core[446d629763b4aa]::result::Result<alloc[f251364f33aae5a4]::boxed::Box<dyn core[446d629763b4aa
]::any::Any>, rustc_span[9bec1e8d1a20d9df]::ErrorGuaranteed>>
21: 0x10a9e9a58 - <rustc_interface[812bb1defcb7896d]::queries::Queries>::ongoing_codegen
22: 0x10a971b70 - rustc_span[9bec1e8d1a20d9df]::with_source_map::<core[446d629763b4aa]::result::Result<(), rustc_span[9bec1e8d1a20d9df]
::ErrorGuaranteed>, rustc_interface[812bb1defcb7896d]::interface::run_compiler<core[446d629763b4aa]::result::Result<(), rustc_span[9bec1e8d1a20d
9df]::ErrorGuaranteed>, rustc_driver_impl[4da67b3d18d5a97a]::run_compiler::{closure#1}>::{closure#0}::{closure#0}>
23: 0x10a933f84 - std[57ecbc5b2c1792f]::sys_common::backtrace::__rust_begin_short_backtrace::<rustc_interface[812bb1defcb7896d]::util::
run_in_thread_pool_with_globals<rustc_interface[812bb1defcb7896d]::interface::run_compiler<core[446d629763b4aa]::result::Result<(), rustc_span[9
bec1e8d1a20d9df]::ErrorGuaranteed>, rustc_driver_impl[4da67b3d18d5a97a]::run_compiler::{closure#1}>::{closure#0}, core[446d629763b4aa]::result::
Result<(), rustc_span[9bec1e8d1a20d9df]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[446d629763b4aa]::result::Result<(), rustc_span[9bec1e
8d1a20d9df]::ErrorGuaranteed>>
24: 0x10a935d20 - <<std[57ecbc5b2c1792f]::thread::Builder>::spawn_unchecked_<rustc_interface[812bb1defcb7896d]::util::run_in_thread_poo
l_with_globals<rustc_interface[812bb1defcb7896d]::interface::run_compiler<core[446d629763b4aa]::result::Result<(), rustc_span[9bec1e8d1a20d9df]:
:ErrorGuaranteed>, rustc_driver_impl[4da67b3d18d5a97a]::run_compiler::{closure#1}>::{closure#0}, core[446d629763b4aa]::result::Result<(), rustc_
span[9bec1e8d1a20d9df]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[446d629763b4aa]::result::Result<(), rustc_span[9bec1e8d1a20d9df]::Erro
rGuaranteed>>::{closure#1} as core[446d629763b4aa]::ops::function::FnOnce<()>>::call_once::{shim:vtable#0}
25: 0x10285ba24 - std::sys::unix::thread::Thread::new::thread_start::h5db5d66cd91ffb33
26: 0x1a352ffa8 - __pthread_joiner_wake
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.69.0 (84c898d65 2023-04-16) running on aarch64-apple-darwin
note: compiler flags: --crate-type lib -C embed-bitcode=no -C split-debuginfo=unpacked -C debug-assertions=off
note: some of the compiler flags provided by cargo are hidden
query stack during panic:
end of query stack
Also happened here https://woodpecker.join-lemmy.org/repos/129/pipeline/770/12
Just hit this here: https://github.com/unicode-org/icu4x/actions/runs/5465410649/jobs/9948816731 . Not yet clear why.
Duplicate of https://github.com/rust-lang/rust/issues/115298
This just started getting thrown in my CI earlier today on
1.67.1
stable. Using cargo-xwin to build forx86_64-pc-windows-msvc
on awindows-latest
GitHub Actions runner. Failed to compile cratelindera-ko-dic
:(Ignore the out of space error at the end of the CI; that is a bit after the error in question was raised. See the "build the binaries" step.)