ICE trying to compile very large file contents to wasm32-wasi and maybe x86_64-unknown-linux-gnu #95780
Labels
C-bug
Category: This is a bug.
I-ICE
Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
I'm messing around with some ill-advised inclusion of very large files in Rust programs, and finding ICEs and segfaults when targeting x86_64-unknown-linux-gnu and wasm32-wasi.
I suspect that some of the errors relate to incremental compilation, as when I began
cargo clean
ing before trying to repro, the x86_64-unknown-linux-gnu errors disappeared. The wasm32-wasi ICE is reproducible regardless of existing/target
state.I am including two error outputs including the native ICE which I can no longer reproduce in case they shed insight into the incremental compilation angle.
Code
First, create a 4GiB file
large_file.bin
next to the test module. I used:I also tried to reproduce with smaller files, and for 3GiB I get a reasonable non-ICE error about the data being too large for the architecture.
Meta
rustc --version --verbose
:Error output (wasm32-wasi cross-compile)
When running
cargo build --target wasm32-wasi
:Backtrace
Error output (native, no clean)
When running
cargo build
:Backtrace
The text was updated successfully, but these errors were encountered: