Comments (11)
For most threads rustc spawns it forces a stack size of 8MiB by default. For the LLVM threads it doesn't change the default stack size however. libstd allows overriding the default stack size using the RUST_MIN_STACK
env var. Try setting RUST_MIN_STACK_SIZE=8388608
RUST_MIN_STACK=8388608
to make all threads including the LLVM threads 8MiB.
from rust.
RUST_MIN_STACK
is the correct variable name.
from rust.
@anubias It seems you are running this inside a windows-gnu environment instead of a windows-msvc environment? Can your build run in a windows-msvc environment? Do the results differ? It would help if you included everything we asked for in our bug report template which includes the output of certain commands, like rustc --version --verbose
.
I don't have access to the backing .yaml
or .sh
that is running these builds, so there's a bit of trouble associating the output of the logs you have been offering with what commands were producing them, when this involves multiple builds failing it seems like (since both rustc and gcc fail in these executions) and thus interleaving their outputs.
from rust.
I think we have fixed the issue. It turns out that the build environment was indeed running out of memory (thanks for pushing us on this). When we originally increased the VM RAM size (12 GiB -> 16 GiB) we forgot that the build runs inside docker on that VM. When we also increased the docker memory limitation (which was originally set to 8 GiB), the build passed.
Thank you both for your support!
from rust.
Firstly, we are not familiar with that env var. You have mentioned two names RUST_MIN_STACK
and RUST_MIN_STACK_SIZE
.
We set the RUST_MIN_STACK_SIZE=8388608
, as instructed. I hope we picked the right name for it :)
However, we still get a memory related error. The output error is significantly different now:
Compiling bcrypt v0.15.1
Compiling axum-extra v0.9.3
Compiling mktemp v0.5.1
Compiling protobuf-json-mapping v3.4.0
Compiling axum-server v0.6.0
Compiling minijinja v2.0.1
Compiling mockall_double v0.3.1
Compiling sqlx v0.7.4
memory allocation of 131072 bytes failed
fatal runtime error: Rust cannot catch foreign exceptions
thread 'coordinator' panicked at compiler\rustc_middle\src\util\bug.rs:36:26:
/rustc/9b00956e56009bab2aa15d7bff10916599e3d6d6\compiler\rustc_codegen_ssa\src\back\write.rs:1617:29: worker thread panicked
stack backtrace:
0: 0x7ffe3d687b04 - std::backtrace_rs::backtrace::dbghelp64::trace::h697e746a0eb81098
at /rustc/9b00956e56009bab2aa15d7bff10916599e3d6d6/library\std\src\..\..\backtrace\src\backtrace/dbghelp64.rs:99:5
1: 0x7ffe3d687b04 - std::backtrace_rs::backtrace::trace_unsynchronized::h8bcac2bc6f0067ef
at /rustc/9b00956e56009bab2aa15d7bff10916599e3d6d6/library\std\src\..\..\backtrace\src\backtrace/mod.rs:66:5
2: 0x7ffe3d687b04 - std::sys_common::backtrace::_print_fmt::h1d525f05694e29c0
at /rustc/9b00956e56009bab2aa15d7bff10916599e3d6d6/library\std\src\sys_common/backtrace.rs:68:5
3: 0x7ffe3d687b04 - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::hd33bdb7f4932788b
at /rustc/9b00956e56009bab2aa15d7bff10916599e3d6d6/library\std\src\sys_common/backtrace.rs:44:22
4: 0x7ffe3d6da30b - core::fmt::rt::Argument::fmt::hbcd44ab1cf7c2ab6
at /rustc/9b00956e56009bab2aa15d7bff10916599e3d6d6/library\core\src\fmt/rt.rs:142:9
5: 0x7ffe3d6da30b - core::fmt::write::h88ba2385290d659c
at /rustc/9b00956e56009bab2aa15d7bff10916599e3d6d6/library\core\src\fmt/mod.rs:1153:17
6: 0x7ffe3d67e08d - std::io::Write::write_fmt::h4096e092b1acc2d9
at /rustc/9b00956e56009bab2aa15d7bff10916599e3d6d6/library\std\src\io/mod.rs:1843:15
7: 0x7ffe3d6878fe - std::sys_common::backtrace::_print::h94a648d141efa937
at /rustc/9b00956e56009bab2aa15d7bff10916599e3d6d6/library\std\src\sys_common/backtrace.rs:47:5
8: 0x7ffe3d6878fe - std::sys_common::backtrace::print::h7ce8dec1748238b0
at /rustc/9b00956e56009bab2aa15d7bff10916599e3d6d6/library\std\src\sys_common/backtrace.rs:34:9
9: 0x7ffe3d68a67f - std::panicking::default_hook::{{closure}}::h43877b65ce5100bf
10: 0x7ffe3d68a33c - std::panicking::default_hook::h40178e9ee41c4d12
at /rustc/9b00956e56009bab2aa15d7bff10916599e3d6d6/library\std\src/panicking.rs:292:9
11: 0x7ffe2f1923f9 - <alloc[1e8f1d4daedf16ef]::boxed::Box<rustc_driver_impl[69e926f4847c5e82]::install_ice_hook::{closure#0}> as core[ba31de9760ee136]::ops::function::Fn<(&dyn for<'a, 'b> core[ba31de9760ee136]::ops::function::Fn<(&'a core[ba31de9760ee136]::panic::panic_info::PanicInfo<'b>,), Output = ()> + core[ba31de9760ee136]::marker::Send + core[ba31de9760ee136]::marker::Sync, &core[ba31de9760ee136]::panic::panic_info::PanicInfo)>>::call
12: 0x7ffe3d68adb9 - <alloc::boxed::Box<F,A> as core::ops::function::Fn<Args>>::call::h0bc82f9bee2669cf
at /rustc/9b00956e56009bab2aa15d7bff10916599e3d6d6/library\alloc\src/boxed.rs:2034:9
13: 0x7ffe3d68adb9 - std::panicking::rust_panic_with_hook::he36247ac76102f03
at /rustc/9b00956e56009bab2aa15d7bff10916599e3d6d6/library\std\src/panicking.rs:783:13
14: 0x7ffe31ab6528 - std[ef05f9c8c2f9b577]::panicking::begin_panic::<alloc[1e8f1d4daedf16ef]::string::String>::{closure#0}
15: 0x7ffe31ab5a59 - std[ef05f9c8c2f9b577]::sys_common::backtrace::__rust_end_short_backtrace::<std[ef05f9c8c2f9b577]::panicking::begin_panic<alloc[1e8f1d4daedf16ef]::string::String>::{closure#0}, !>
16: 0x7ffe31ae2284 - std[ef05f9c8c2f9b577]::panicking::begin_panic::<alloc[1e8f1d4daedf16ef]::string::String>
17: 0x7ffe31b06948 - rustc_middle[8246c81f22d7a56b]::util::bug::opt_span_bug_fmt::<rustc_span[e9f8889a1f1ad4cc]::span_encoding::Span>::{closure#0}
18: 0x7ffe31b06781 - rustc_middle[8246c81f22d7a56b]::ty::context::tls::with_opt::<rustc_middle[8246c81f22d7a56b]::util::bug::opt_span_bug_fmt<rustc_span[e9f8889a1f1ad4cc]::span_encoding::Span>::{closure#0}, !>::{closure#0}
19: 0x7ffe31b06736 - rustc_middle[8246c81f22d7a56b]::ty::context::tls::with_context_opt::<rustc_middle[8246c81f22d7a56b]::ty::context::tls::with_opt<rustc_middle[8246c81f22d7a56b]::util::bug::opt_span_bug_fmt<rustc_span[e9f8889a1f1ad4cc]::span_encoding::Span>::{closure#0}, !>::{closure#0}, !>
20: 0x7ffe31b06855 - rustc_middle[8246c81f22d7a56b]::util::bug::bug_fmt
21: 0x7ffe2f45b034 - std[ef05f9c8c2f9b577]::sys_common::backtrace::__rust_begin_short_backtrace::<<rustc_codegen_llvm[b31da05feed7605]::LlvmCodegenBackend as rustc_codegen_ssa[9f97cea2170b839c]::traits::backend::ExtraBackendMethods>::spawn_named_thread<rustc_codegen_ssa[9f97cea2170b839c]::back::write::start_executing_work<rustc_codegen_llvm[b31da05feed7605]::LlvmCodegenBackend>::{closure#5}, core[ba31de9760ee136]::result::Result<rustc_codegen_ssa[9f97cea2170b839c]::back::write::CompiledModules, ()>>::{closure#0}, core[ba31de9760ee136]::result::Result<rustc_codegen_ssa[9f97cea2170b839c]::back::write::CompiledModules, ()>>
22: 0x7ffe2f45ccc3 - <<std[ef05f9c8c2f9b577]::thread::Builder>::spawn_unchecked_<<rustc_codegen_llvm[b31da05feed7605]::LlvmCodegenBackend as rustc_codegen_ssa[9f97cea2170b839c]::traits::backend::ExtraBackendMethods>::spawn_named_thread<rustc_codegen_ssa[9f97cea2170b839c]::back::write::start_executing_work<rustc_codegen_llvm[b31da05feed7605]::LlvmCodegenBackend>::{closure#5}, core[ba31de9760ee136]::result::Result<rustc_codegen_ssa[9f97cea2170b839c]::back::write::CompiledModules, ()>>::{closure#0}, core[ba31de9760ee136]::result::Result<rustc_codegen_ssa[9f97cea2170b839c]::back::write::CompiledModules, ()>>::{closure#1} as core[ba31de9760ee136]::ops::function::FnOnce<()>>::call_once::{shim:vtable#0}
23: 0x7ffe3d69a787 - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::hfd400c23e28963de
at /rustc/9b00956e56009bab2aa15d7bff10916599e3d6d6/library\alloc\src/boxed.rs:2020:9
24: 0x7ffe3d69a787 - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::h1b440eab8c248f0e
at /rustc/9b00956e56009bab2aa15d7bff10916599e3d6d6/library\alloc\src/boxed.rs:2020:9
25: 0x7ffe3d69a787 - std::sys::pal::windows::thread::Thread::new::thread_start::h7d40d75b5c69b3da
at /rustc/9b00956e56009bab2aa15d7bff10916599e3d6d6/library\std\src\sys\pal\windows/thread.rs:54:17
26: 0x7ffe6b5b7ac4 - <unknown>
27: 0x7ffe8803a4e1 - <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: rustc 1.78.0 (9b00956e5 2024-04-29) running on x86_64-pc-windows-gnu
note: compiler flags: --crate-type lib -C opt-level=3 -C linker-plugin-lto -C strip=symbols -C target-feature=+crt-static
note: some of the compiler flags provided by cargo are hidden
query stack during panic:
end of query stack
thread 'rustc' panicked at compiler\rustc_middle\src\util\bug.rs:36:26:
/rustc/9b00956e56009bab2aa15d7bff10916599e3d6d6\compiler\rustc_codegen_ssa\src\back\write.rs:1997:17: panic during codegen/LLVM phase
stack backtrace:
0: 0x7ffe3d687b04 - std::backtrace_rs::backtrace::dbghelp64::trace::h697e746a0eb81098
at /rustc/9b00956e56009bab2aa15d7bff10916599e3d6d6/library\std\src\..\..\backtrace\src\backtrace/dbghelp64.rs:99:5
1: 0x7ffe3d687b04 - std::backtrace_rs::backtrace::trace_unsynchronized::h8bcac2bc6f0067ef
at /rustc/9b00956e56009bab2aa15d7bff10916599e3d6d6/library\std\src\..\..\backtrace\src\backtrace/mod.rs:66:5
2: 0x7ffe3d687b04 - std::sys_common::backtrace::_print_fmt::h1d525f05694e29c0
at /rustc/9b00956e56009bab2aa15d7bff10916599e3d6d6/library\std\src\sys_common/backtrace.rs:68:5
3: 0x7ffe3d687b04 - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::hd33bdb7f4932788b
at /rustc/9b00956e56009bab2aa15d7bff10916599e3d6d6/library\std\src\sys_common/backtrace.rs:44:22
4: 0x7ffe3d6da30b - core::fmt::rt::Argument::fmt::hbcd44ab1cf7c2ab6
at /rustc/9b00956e56009bab2aa15d7bff10916599e3d6d6/library\core\src\fmt/rt.rs:142:9
5: 0x7ffe3d6da30b - core::fmt::write::h88ba2385290d659c
at /rustc/9b00956e56009bab2aa15d7bff10916599e3d6d6/library\core\src\fmt/mod.rs:1153:17
6: 0x7ffe3d67e08d - std::io::Write::write_fmt::h4096e092b1acc2d9
at /rustc/9b00956e56009bab2aa15d7bff10916599e3d6d6/library\std\src\io/mod.rs:1843:15
7: 0x7ffe3d6878fe - std::sys_common::backtrace::_print::h94a648d141efa937
at /rustc/9b00956e56009bab2aa15d7bff10916599e3d6d6/library\std\src\sys_common/backtrace.rs:47:5
8: 0x7ffe3d6878fe - std::sys_common::backtrace::print::h7ce8dec1748238b0
at /rustc/9b00956e56009bab2aa15d7bff10916599e3d6d6/library\std\src\sys_common/backtrace.rs:34:9
9: 0x7ffe3d68a67f - std::panicking::default_hook::{{closure}}::h43877b65ce5100bf
10: 0x7ffe3d68a33c - std::panicking::default_hook::h40178e9ee41c4d12
at /rustc/9b00956e56009bab2aa15d7bff10916599e3d6d6/library\std\src/panicking.rs:292:9
11: 0x7ffe2f1923f9 - <alloc[1e8f1d4daedf16ef]::boxed::Box<rustc_driver_impl[69e926f4847c5e82]::install_ice_hook::{closure#0}> as core[ba31de9760ee136]::ops::function::Fn<(&dyn for<'a, 'b> core[ba31de9760ee136]::ops::function::Fn<(&'a core[ba31de9760ee136]::panic::panic_info::PanicInfo<'b>,), Output = ()> + core[ba31de9760ee136]::marker::Send + core[ba31de9760ee136]::marker::Sync, &core[ba31de9760ee136]::panic::panic_info::PanicInfo)>>::call
12: 0x7ffe3d68adb9 - <alloc::boxed::Box<F,A> as core::ops::function::Fn<Args>>::call::h0bc82f9bee2669cf
at /rustc/9b00956e56009bab2aa15d7bff10916599e3d6d6/library\alloc\src/boxed.rs:2034:9
13: 0x7ffe3d68adb9 - std::panicking::rust_panic_with_hook::he36247ac76102f03
at /rustc/9b00956e56009bab2aa15d7bff10916599e3d6d6/library\std\src/panicking.rs:783:13
14: 0x7ffe31ab6528 - std[ef05f9c8c2f9b577]::panicking::begin_panic::<alloc[1e8f1d4daedf16ef]::string::String>::{closure#0}
15: 0x7ffe31ab5a59 - std[ef05f9c8c2f9b577]::sys_common::backtrace::__rust_end_short_backtrace::<std[ef05f9c8c2f9b577]::panicking::begin_panic<alloc[1e8f1d4daedf16ef]::string::String>::{closure#0}, !>
16: 0x7ffe31ae2284 - std[ef05f9c8c2f9b577]::panicking::begin_panic::<alloc[1e8f1d4daedf16ef]::string::String>
17: 0x7ffe31b06948 - rustc_middle[8246c81f22d7a56b]::util::bug::opt_span_bug_fmt::<rustc_span[e9f8889a1f1ad4cc]::span_encoding::Span>::{closure#0}
18: 0x7ffe31b06781 - rustc_middle[8246c81f22d7a56b]::ty::context::tls::with_opt::<rustc_middle[8246c81f22d7a56b]::util::bug::opt_span_bug_fmt<rustc_span[e9f8889a1f1ad4cc]::span_encoding::Span>::{closure#0}, !>::{closure#0}
19: 0x7ffe31b06736 - rustc_middle[8246c81f22d7a56b]::ty::context::tls::with_context_opt::<rustc_middle[8246c81f22d7a56b]::ty::context::tls::with_opt<rustc_middle[8246c81f22d7a56b]::util::bug::opt_span_bug_fmt<rustc_span[e9f8889a1f1ad4cc]::span_encoding::Span>::{closure#0}, !>::{closure#0}, !>
20: 0x7ffe31b06855 - rustc_middle[8246c81f22d7a56b]::util::bug::bug_fmt
21: 0x7ffe2f4bf088 - <rustc_session[efae0d727c1ed0aa]::session::Session>::time::<rustc_codegen_ssa[9f97cea2170b839c]::back::write::CompiledModules, <rustc_codegen_ssa[9f97cea2170b839c]::back::write::OngoingCodegen<rustc_codegen_llvm[b31da05feed7605]::LlvmCodegenBackend>>::join::{closure#0}>
22: 0x7ffe2f45f6fd - <rustc_codegen_ssa[9f97cea2170b839c]::back::write::OngoingCodegen<rustc_codegen_llvm[b31da05feed7605]::LlvmCodegenBackend>>::join
23: 0x7ffe2f4da4af - <rustc_codegen_llvm[b31da05feed7605]::LlvmCodegenBackend as rustc_codegen_ssa[9f97cea2170b839c]::traits::backend::CodegenBackend>::join_codegen
24: 0x7ffe2f3603db - <rustc_interface[e1483bd6b9aa635d]::queries::Linker>::link
25: 0x7ffe2f161c5a - rustc_span[e9f8889a1f1ad4cc]::create_session_globals_then::<core[ba31de9760ee136]::result::Result<(), rustc_span[e9f8889a1f1ad4cc]::ErrorGuaranteed>, rustc_interface[e1483bd6b9aa635d]::interface::run_compiler<core[ba31de9760ee136]::result::Result<(), rustc_span[e9f8889a1f1ad4cc]::ErrorGuaranteed>, rustc_driver_impl[69e926f4847c5e82]::run_compiler::{closure#0}>::{closure#0}>
26: 0x7ffe2f15ca30 - std[ef05f9c8c2f9b577]::sys_common::backtrace::__rust_begin_short_backtrace::<rustc_interface[e1483bd6b9aa635d]::util::run_in_thread_with_globals<rustc_interface[e1483bd6b9aa635d]::interface::run_compiler<core[ba31de9760ee136]::result::Result<(), rustc_span[e9f8889a1f1ad4cc]::ErrorGuaranteed>, rustc_driver_impl[69e926f4847c5e82]::run_compiler::{closure#0}>::{closure#0}, core[ba31de9760ee136]::result::Result<(), rustc_span[e9f8889a1f1ad4cc]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[ba31de9760ee136]::result::Result<(), rustc_span[e9f8889a1f1ad4cc]::ErrorGuaranteed>>
27: 0x7ffe2f16ae6e - <<std[ef05f9c8c2f9b577]::thread::Builder>::spawn_unchecked_<rustc_interface[e1483bd6b9aa635d]::util::run_in_thread_with_globals<rustc_interface[e1483bd6b9aa635d]::interface::run_compiler<core[ba31de9760ee136]::result::Result<(), rustc_span[e9f8889a1f1ad4cc]::ErrorGuaranteed>, rustc_driver_impl[69e926f4847c5e82]::run_compiler::{closure#0}>::{closure#0}, core[ba31de9760ee136]::result::Result<(), rustc_span[e9f8889a1f1ad4cc]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[ba31de9760ee136]::result::Result<(), rustc_span[e9f8889a1f1ad4cc]::ErrorGuaranteed>>::{closure#1} as core[ba31de9760ee136]::ops::function::FnOnce<()>>::call_once::{shim:vtable#0}
28: 0x7ffe3d69a787 - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::hfd400c23e28963de
at /rustc/9b00956e56009bab2aa15d7bff10916599e3d6d6/library\alloc\src/boxed.rs:2020:9
29: 0x7ffe3d69a787 - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::h1b440eab8c248f0e
at /rustc/9b00956e56009bab2aa15d7bff10916599e3d6d6/library\alloc\src/boxed.rs:2020:9
30: 0x7ffe3d69a787 - std::sys::pal::windows::thread::Thread::new::thread_start::h7d40d75b5c69b3da
at /rustc/9b00956e56009bab2aa15d7bff10916599e3d6d6/library\std\src\sys\pal\windows/thread.rs:54:17
31: 0x7ffe6b5b7ac4 - <unknown>
32: 0x7ffe8803a4e1 - <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: rustc 1.78.0 (9b00956e5 2024-04-29) running on x86_64-pc-windows-gnu
note: compiler flags: --crate-type lib -C opt-level=3 -C linker-plugin-lto -C strip=symbols -C target-feature=+crt-static
note: some of the compiler flags provided by cargo are hidden
query stack during panic:
end of query stack
error: could not compile `minijinja` (lib)
Caused by:
process didn't exit successfully: `C:\rustup\toolchains\stable-x86_64-pc-windows-gnu\bin\rustc.exe --crate-name minijinja --edition=2021 C:\cargo\registry\src\index.crates.io-6f17d22bba15001f\minijinja-2.0.1\src\lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --crate-type lib --emit=dep-info,metadata,link -C opt-level=3 -C linker-plugin-lto --cfg "feature=\"adjacent_loop_items\"" --cfg "feature=\"builtins\"" --cfg "feature=\"debug\"" --cfg "feature=\"default\"" --cfg "feature=\"deserialization\"" --cfg "feature=\"macros\"" --cfg "feature=\"multi_template\"" --cfg "feature=\"std_collections\"" -C metadata=23c72b6a357211d6 -C extra-filename=-23c72b6a357211d6 --out-dir C:\builds\<beneficiary>\<project>\target\release\deps -C strip=symbols -L dependency=C:\builds\<beneficiary>\<project>\target\release\deps --extern serde=C:\builds\<beneficiary>\<project>\target\release\deps\libserde-5d837258a2cadc1a.rmeta --cap-lints allow -C target-feature=+crt-static` (exit code: 0xc0000409, STATUS_STACK_BUFFER_OVERRUN)
warning: build failed, waiting for other jobs to finish...
error: could not compile `opcua` (lib)
Caused by:
process didn't exit successfully: `C:\rustup\toolchains\stable-x86_64-pc-windows-gnu\bin\rustc.exe --crate-name opcua --edition=2021 C:\cargo\registry\src\index.crates.io-6f17d22bba15001f\opcua-0.12.0\src\lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --crate-type lib --emit=dep-info,metadata,link -C opt-level=3 -C linker-plugin-lto --cfg "feature=\"client\"" --cfg "feature=\"discovery-server-registration\"" --cfg "feature=\"generated-address-space\"" --cfg "feature=\"server\"" -C metadata=8b815ca2520d4f04 -C extra-filename=-8b815ca2520d4f04 --out-dir C:\builds\<beneficiary>\<project>\target\release\deps -C strip=symbols -L dependency=C:\builds\<beneficiary>\<project>\target\release\deps --extern base64=C:\builds\<beneficiary>\<project>\target\release\deps\libbase64-d80cd0dd9dc50ee0.rmeta --extern bitflags=C:\builds\<beneficiary>\<project>\target\release\deps\libbitflags-b363c8ec36c0a1ff.rmeta --extern byteorder=C:\builds\<beneficiary>\<project>\target\release\deps\libbyteorder-3223f9796d4a830e.rmeta --extern bytes=C:\builds\<beneficiary>\<project>\target\release\deps\libbytes-47c2a977712e25cb.rmeta --extern chrono=C:\builds\<beneficiary>\<project>\target\release\deps\libchrono-a450d50248847ce4.rmeta --extern derivative=C:\builds\<beneficiary>\<project>\target\release\deps\derivative-a687a8d6c6c6d2da.dll --extern foreign_types=C:\builds\<beneficiary>\<project>\target\release\deps\libforeign_types-6ba43c561f47cd2b.rmeta --extern futures=C:\builds\<beneficiary>\<project>\target\release\deps\libfutures-86241399e09e0c93.rmeta --extern gethostname=C:\builds\<beneficiary>\<project>\target\release\deps\libgethostname-6c66adb0097c62a2.rmeta --extern lazy_static=C:\builds\<beneficiary>\<project>\target\release\deps\liblazy_static-27fb4a272b1e0767.rmeta --extern libc=C:\builds\<beneficiary>\<project>\target\release\deps\liblibc-cdb97f353f1b1bc5.rmeta --extern log=C:\builds\<beneficiary>\<project>\target\release\deps\liblog-2dcd33f4c058675b.rmeta --extern openssl=C:\builds\<beneficiary>\<project>\target\release\deps\libopenssl-ccd567a9f0c37a4e.rmeta --extern openssl_sys=C:\builds\<beneficiary>\<project>\target\release\deps\libopenssl_sys-3abccf250a1f058c.rmeta --extern parking_lot=C:\builds\<beneficiary>\<project>\target\release\deps\libparking_lot-88938320c0fd45d7.rmeta --extern regex=C:\builds\<beneficiary>\<project>\target\release\deps\libregex-312e66e7b8e9a8e2.rmeta --extern serde=C:\builds\<beneficiary>\<project>\target\release\deps\libserde-5d837258a2cadc1a.rmeta --extern serde_derive=C:\builds\<beneficiary>\<project>\target\release\deps\serde_derive-78fd6cff22c3868b.dll --extern serde_json=C:\builds\<beneficiary>\<project>\target\release\deps\libserde_json-2e920d1e64653f12.rmeta --extern serde_yaml=C:\builds\<beneficiary>\<project>\target\release\deps\libserde_yaml-efe2873ef3496a30.rmeta --extern tokio=C:\builds\<beneficiary>\<project>\target\release\deps\libtokio-cd065234ed9c8e43.rmeta --extern tokio_util=C:\builds\<beneficiary>\<project>\target\release\deps\libtokio_util-1b070bf522a16a50.rmeta --extern url=C:\builds\<beneficiary>\<project>\target\release\deps\liburl-d59bd3e56ef24db4.rmeta --extern uuid=C:\builds\<beneficiary>\<project>\target\release\deps\libuuid-e1802f280781e7a1.rmeta --cap-lints allow -C target-feature=+crt-static -L native=C:\cargo\registry\src\index.crates.io-6f17d22bba15001f\windows_x86_64_gnu-0.52.5\lib -L native=C:\cargo\registry\src\index.crates.io-6f17d22bba15001f\windows_x86_64_gnu-0.48.5\lib -L native=/msys64/mingw64/lib/` (exit code: 0xc0000409, STATUS_STACK_BUFFER_OVERRUN)
The following warnings were emitted during compilation:
warning: [email protected]: xz-5.2/src/common/tuklib_physmem.c: In function 'tuklib_physmem':
warning: [email protected]: xz-5.2/src/common/tuklib_physmem.c:90:42: warning: cast between incompatible function types from 'FARPROC' {aka 'long long int (*)()'} to 'BOOL (*)(struct _MEMORYSTATUSEX *)' {aka 'int (*)(struct _MEMORYSTATUSEX *)'} [-Wcast-function-type]
warning: [email protected]: 90 | gmse_type gmse = (gmse_type)GetProcAddress(
warning: [email protected]: | ^
warning: [email protected]: In file included from xz-5.2/src/liblzma/common\common.h:17,
warning: [email protected]: from xz-5.2/src/liblzma/common\filter_encoder.h:16,
warning: [email protected]: from xz-5.2/src/liblzma/common\stream_encoder_mt.c:13:
warning: [email protected]: In function 'mythread_cond_timedwait',
warning: [email protected]: inlined from 'wait_for_work' at xz-5.2/src/liblzma/common\stream_encoder_mt.c:653:17,
warning: [email protected]: inlined from 'stream_encode_mt' at xz-5.2/src/liblzma/common\stream_encoder_mt.c:783:8:
warning: [email protected]: xz-5.2/src/common/mythread.h:492:15: warning: 'wait_abs.start' may be used uninitialized [-Wmaybe-uninitialized]
warning: [email protected]: 492 | DWORD elapsed = GetTickCount() - condtime->start;
warning: [email protected]: | ^~~~~~~
warning: [email protected]: xz-5.2/src/liblzma/common\stream_encoder_mt.c: In function 'stream_encode_mt':
warning: [email protected]: xz-5.2/src/liblzma/common\stream_encoder_mt.c:695:35: note: 'wait_abs.start' was declared here
warning: [email protected]: 695 | mythread_condtime wait_abs;
warning: [email protected]: | ^~~~~~~~
warning: [email protected]: In function 'mythread_cond_timedwait',
warning: [email protected]: inlined from 'wait_for_work' at xz-5.2/src/liblzma/common\stream_encoder_mt.c:653:17,
warning: [email protected]: inlined from 'stream_encode_mt' at xz-5.2/src/liblzma/common\stream_encoder_mt.c:783:8:
warning: [email protected]: xz-5.2/src/common/mythread.h:494:29: warning: 'wait_abs.timeout' may be used uninitialized [-Wmaybe-uninitialized]
warning: [email protected]: 493 | DWORD timeout = elapsed >= condtime->timeout
warning: [email protected]: | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
warning: [email protected]: 494 | ? 0 : condtime->timeout - elapsed;
warning: [email protected]: | ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
warning: [email protected]: xz-5.2/src/liblzma/common\stream_encoder_mt.c: In function 'stream_encode_mt':
warning: [email protected]: xz-5.2/src/liblzma/common\stream_encoder_mt.c:695:35: note: 'wait_abs.timeout' was declared here
warning: [email protected]: 695 | mythread_condtime wait_abs;
warning: [email protected]: | ^~~~~~~~
warning: [email protected]:
warning: [email protected]: cc1.exe: out of memory allocating 194536 bytes
warning: [email protected]: ToolExecError: Command "gcc.exe" "-O3" "-ffunction-sections" "-fdata-sections" "-m64" "-I" "xz-5.2/src/liblzma/api" "-I" "xz-5.2/src/liblzma/lzma" "-I" "xz-5.2/src/liblzma/lz" "-I" "xz-5.2/src/liblzma/check" "-I" "xz-5.2/src/liblzma/simple" "-I" "xz-5.2/src/liblzma/delta" "-I" "xz-5.2/src/liblzma/common" "-I" "xz-5.2/src/liblzma/rangecoder" "-I" "xz-5.2/src/common" "-I" "C:\\cargo\\registry\\src\\index.crates.io-6f17d22bba15001f\\lzma-sys-0.1.20" "-Wall" "-Wextra" "-std=c99" "-pthread" "-DHAVE_CONFIG_H=1" "-o" "C:\\builds\\<beneficiary>\\<project>\\target\\release\\build\\lzma-sys-ac5877d8d8ab3ce6\\out\\8221ed29d361cbef-lzma_decoder.o" "-c" "xz-5.2/src/liblzma/lzma\\lzma_decoder.c" with args gcc.exe did not execute successfully (status code exit code: 1).
error: failed to run custom build command for `lzma-sys v0.1.20`
Caused by:
process didn't exit successfully: `C:\builds\<beneficiary>\<project>\target\release\build\lzma-sys-72a95495505f4f6a\build-script-build` (exit code: 1)
--- stdout
cargo:rerun-if-changed=build.rs
cargo:rerun-if-env-changed=LZMA_API_STATIC
cargo:root=C:\builds\<beneficiary>\<project>\target\release\build\lzma-sys-ac5877d8d8ab3ce6\out
cargo:include=C:\cargo\registry\src\index.crates.io-6f17d22bba15001f\lzma-sys-0.1.20\xz-5.2/src/liblzma/api
TARGET = Some("x86_64-pc-windows-gnu")
OPT_LEVEL = Some("3")
HOST = Some("x86_64-pc-windows-gnu")
cargo:rerun-if-env-changed=CC_x86_64-pc-windows-gnu
CC_x86_64-pc-windows-gnu = None
cargo:rerun-if-env-changed=CC_x86_64_pc_windows_gnu
CC_x86_64_pc_windows_gnu = None
cargo:rerun-if-env-changed=HOST_CC
HOST_CC = None
cargo:rerun-if-env-changed=CC
CC = None
cargo:rerun-if-env-changed=CC_ENABLE_DEBUG_OUTPUT
cargo:rerun-if-env-changed=CRATE_CC_NO_DEFAULTS
CRATE_CC_NO_DEFAULTS = None
DEBUG = Some("false")
CARGO_CFG_TARGET_FEATURE = Some("cmpxchg16b,fxsr,sse,sse2,sse3")
cargo:rerun-if-env-changed=CFLAGS_x86_64-pc-windows-gnu
CFLAGS_x86_64-pc-windows-gnu = None
cargo:rerun-if-env-changed=CFLAGS_x86_64_pc_windows_gnu
CFLAGS_x86_64_pc_windows_gnu = None
cargo:rerun-if-env-changed=HOST_CFLAGS
HOST_CFLAGS = None
cargo:rerun-if-env-changed=CFLAGS
CFLAGS = None
cargo:warning=xz-5.2/src/common/tuklib_physmem.c: In function 'tuklib_physmem':
cargo:warning=xz-5.2/src/common/tuklib_physmem.c:90:42: warning: cast between incompatible function types from 'FARPROC' {aka 'long long int (*)()'} to 'BOOL (*)(struct _MEMORYSTATUSEX *)' {aka 'int (*)(struct _MEMORYSTATUSEX *)'} [-Wcast-function-type]
cargo:warning= 90 | gmse_type gmse = (gmse_type)GetProcAddress(
cargo:warning= | ^
exit code: 0
exit code: 0
exit code: 0
exit code: 0
exit code: 0
exit code: 0
exit code: 0
exit code: 0
exit code: 0
exit code: 0
exit code: 0
exit code: 0
exit code: 0
exit code: 0
exit code: 0
exit code: 0
exit code: 0
exit code: 0
exit code: 0
exit code: 0
exit code: 0
exit code: 0
exit code: 0
exit code: 0
exit code: 0
exit code: 0
exit code: 0
exit code: 0
exit code: 0
exit code: 0
exit code: 0
exit code: 0
exit code: 0
exit code: 0
exit code: 0
exit code: 0
exit code: 0
exit code: 0
cargo:warning=In file included from xz-5.2/src/liblzma/common\common.h:17,
cargo:warning= from xz-5.2/src/liblzma/common\filter_encoder.h:16,
cargo:warning= from xz-5.2/src/liblzma/common\stream_encoder_mt.c:13:
cargo:warning=In function 'mythread_cond_timedwait',
cargo:warning= inlined from 'wait_for_work' at xz-5.2/src/liblzma/common\stream_encoder_mt.c:653:17,
cargo:warning= inlined from 'stream_encode_mt' at xz-5.2/src/liblzma/common\stream_encoder_mt.c:783:8:
cargo:warning=xz-5.2/src/common/mythread.h:492:15: warning: 'wait_abs.start' may be used uninitialized [-Wmaybe-uninitialized]
cargo:warning= 492 | DWORD elapsed = GetTickCount() - condtime->start;
cargo:warning= | ^~~~~~~
cargo:warning=xz-5.2/src/liblzma/common\stream_encoder_mt.c: In function 'stream_encode_mt':
cargo:warning=xz-5.2/src/liblzma/common\stream_encoder_mt.c:695:35: note: 'wait_abs.start' was declared here
cargo:warning= 695 | mythread_condtime wait_abs;
cargo:warning= | ^~~~~~~~
cargo:warning=In function 'mythread_cond_timedwait',
cargo:warning= inlined from 'wait_for_work' at xz-5.2/src/liblzma/common\stream_encoder_mt.c:653:17,
cargo:warning= inlined from 'stream_encode_mt' at xz-5.2/src/liblzma/common\stream_encoder_mt.c:783:8:
cargo:warning=xz-5.2/src/common/mythread.h:494:29: warning: 'wait_abs.timeout' may be used uninitialized [-Wmaybe-uninitialized]
cargo:warning= 493 | DWORD timeout = elapsed >= condtime->timeout
cargo:warning= | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cargo:warning= 494 | ? 0 : condtime->timeout - elapsed;
cargo:warning= | ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cargo:warning=xz-5.2/src/liblzma/common\stream_encoder_mt.c: In function 'stream_encode_mt':
cargo:warning=xz-5.2/src/liblzma/common\stream_encoder_mt.c:695:35: note: 'wait_abs.timeout' was declared here
cargo:warning= 695 | mythread_condtime wait_abs;
cargo:warning= | ^~~~~~~~
exit code: 0
exit code: 0
exit code: 0
exit code: 0
exit code: 0
exit code: 0
exit code: 0
exit code: 0
exit code: 0
exit code: 0
exit code: 0
exit code: 0
exit code: 0
exit code: 0
exit code: 0
exit code: 0
exit code: 0
exit code: 0
exit code: 0
cargo:warning=
cargo:warning=cc1.exe: out of memory allocating 194536 bytes
exit code: 0
exit code: 1
cargo:warning=ToolExecError: Command "gcc.exe" "-O3" "-ffunction-sections" "-fdata-sections" "-m64" "-I" "xz-5.2/src/liblzma/api" "-I" "xz-5.2/src/liblzma/lzma" "-I" "xz-5.2/src/liblzma/lz" "-I" "xz-5.2/src/liblzma/check" "-I" "xz-5.2/src/liblzma/simple" "-I" "xz-5.2/src/liblzma/delta" "-I" "xz-5.2/src/liblzma/common" "-I" "xz-5.2/src/liblzma/rangecoder" "-I" "xz-5.2/src/common" "-I" "C:\\cargo\\registry\\src\\index.crates.io-6f17d22bba15001f\\lzma-sys-0.1.20" "-Wall" "-Wextra" "-std=c99" "-pthread" "-DHAVE_CONFIG_H=1" "-o" "C:\\builds\\<beneficiary>\\<project>\\target\\release\\build\\lzma-sys-ac5877d8d8ab3ce6\\out\\8221ed29d361cbef-lzma_decoder.o" "-c" "xz-5.2/src/liblzma/lzma\\lzma_decoder.c" with args gcc.exe did not execute successfully (status code exit code: 1).
exit code: 0
exit code: 0
exit code: 0
exit code: 0
exit code: 0
exit code: 0
exit code: 0
exit code: 0
exit code: 0
exit code: 0
exit code: 0
exit code: 0
exit code: 0
exit code: 0
--- stderr
error occurred: Command "gcc.exe" "-O3" "-ffunction-sections" "-fdata-sections" "-m64" "-I" "xz-5.2/src/liblzma/api" "-I" "xz-5.2/src/liblzma/lzma" "-I" "xz-5.2/src/liblzma/lz" "-I" "xz-5.2/src/liblzma/check" "-I" "xz-5.2/src/liblzma/simple" "-I" "xz-5.2/src/liblzma/delta" "-I" "xz-5.2/src/liblzma/common" "-I" "xz-5.2/src/liblzma/rangecoder" "-I" "xz-5.2/src/common" "-I" "C:\\cargo\\registry\\src\\index.crates.io-6f17d22bba15001f\\lzma-sys-0.1.20" "-Wall" "-Wextra" "-std=c99" "-pthread" "-DHAVE_CONFIG_H=1" "-o" "C:\\builds\\<beneficiary>\\<project>\\target\\release\\build\\lzma-sys-ac5877d8d8ab3ce6\\out\\8221ed29d361cbef-lzma_decoder.o" "-c" "xz-5.2/src/liblzma/lzma\\lzma_decoder.c" with args gcc.exe did not execute successfully (status code exit code: 1).
Error: Running a command using '\\?\C:\rustup\toolchains\stable-x86_64-pc-windows-gnu\bin\cargo.exe' failed
error: process didn't exit successfully: `target\release\xtask.exe build release` (exit code: 1)
section_end:1717066504:step_script
�[0Ksection_start:1717066504:upload_artifacts_on_failure
�[0K�[0K�[36;1mUploading artifacts for failed job�[0;m�[0;m
Version: 16.6.1
Git revision: f5da3c5a
Git branch: 16-6-stable
GO version: go1.20.10
Built: 2023-11-24T21:09:16+0000
OS/Arch: windows/amd64
�[32;1mUploading artifacts...�[0;m
�[0;33mWARNING: target/nextest/default/junit.xml: no matching files. Ensure that the artifact path is relative to the working directory (C:\builds\<beneficiary>\<project>)�[0;m
�[31;1mERROR: No files to upload �[0;m
section_end:1717066531:upload_artifacts_on_failure
�[0Ksection_start:1717066531:cleanup_file_variables
�[0K�[0K�[36;1mCleaning up project directory and file based variables�[0;m�[0;m
section_end:1717066553:cleanup_file_variables
�[0K�[31;1mERROR: Job failed: exit code 1
�[0;m
from rust.
I am unable to replicate this on my machine. I am also using stable Windows
from rust.
Is it possible that it's because the dependency graph is larger (deeper)?
from rust.
I forgot to mention: it happens only when generating the release binaries. I will edit the original post too.
from rust.
STATUS_STACK_BUFFER_OVERRUN
does not mean that a stack overflow has actually occurred, see: https://devblogs.microsoft.com/oldnewthing/20190108-00/?p=100655
from rust.
@anubias Please upload any further build logs as direct attachments of an (ideally completely unmodified, not even opening and resaving it, but if you must, please make sure that you do not modify the character encoding from its original encoding) .txt
file. You are producing some very interesting and very long logs with quite a bit of interesting outputs in them, and I am slightly concerned about copy-and-paste errors.
So, regarding what you have here, I am seeing this line repeatedly:
cargo:warning=cc1.exe: out of memory allocating 65536 bytes
Are you sure that this is not the machine not actually running out of memory in general? What is the memory available on this build server? Have you considered increasing the pagefile size?
Wait, what the hell?
fatal runtime error: Rust cannot catch foreign exceptions
thread 'coordinator' panicked at compiler\rustc_middle\src\util\bug.rs:36:26:
/rustc/9b00956e56009bab2aa15d7bff10916599e3d6d6\compiler\rustc_codegen_ssa\src\back\write.rs:1617:29: worker thread panicked
...that's a C++ error unwinding into Rust???
from rust.
@workingjubilee thanks for your answers.
Yes, the environment is windows-gnu. This is a CI build machine, running in a Windows VM with 16 GiB of RAM inside a bigger server machine. The page-file is configured to be managed by the OS Within the range of 2-8 GiB.
Allow me to collect the other information, and I will paste it here.
I will look into the windows-msvc, but I worry if we will be able to build the entire project that way. This is a Rust-only project, so whatever output comes from C/C++, it's coming from building the dependency tree.
from rust.
Related Issues (20)
- ICE: compiler/rustc_const_eval/src/interpret/discriminant.rs assertion failed 0 != 1
- compiletest: warn if we see a `// @<directive-name>` HOT 20
- Error code E0116 causes high volume of incorrect compiler errors HOT 4
- ICE when specific compilation optimization passes are enabled/disabled HOT 4
- compiletest: technically potential false positives for filecheck annotations HOT 2
- Missed optimization when checking slice index greater than accessed slice index HOT 3
- `extern "rust-cold" fn`s should not trigger `improper_ctypes` lint
- `feature(effects)` lazily evaluates whether traits are const HOT 1
- internal error: relating different kinds: `jni::objects::JObject<'?14> '?1` HOT 3
- `addr_of!` a `static mut` should not require `unsafe` HOT 11
- Syntax for precise capturing: `impl Trait + use<..>` HOT 11
- ICE: mir_const_qualif: `index out of bounds: the len is 0 but the index is 0` HOT 1
- ICE: type_of_opaque: `unexpected bound ty in binder: 0` HOT 1
- ICE: `expected type differs from actual type` HOT 2
- ICE: `could not resolve DefId ` HOT 1
- False compile error on associated type bounds HOT 1
- ICE: `no successor` HOT 2
- ICE: `TyKind::CVarArgs` should have been handled elsewhere HOT 5
- ICE when compiling for `x86_64-pc-windows-gnu` when passing a ZST using the `"sysv64"` ABI HOT 1
- ICE in OnDiskCache decode_tagged for TAG_FILE_FOOTER HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rust.