Closed
Description
Code
<code>
https://github.com/yuvlian/sphene/tree/main/sphene/src
Meta
rustc --version --verbose
:
<version>
rustc 1.80.0-nightly (72fdf913c 2024-06-05)
binary: rustc
commit-hash: 72fdf913c53dd0e75313ba83e4aa80df3f6e2871
commit-date: 2024-06-05
host: x86_64-pc-windows-msvc
release: 1.80.0-nightly
LLVM version: 18.1.6
Error output
<output>
thread 'rustc' panicked at compiler\rustc_codegen_ssa\src\back\link.rs:2700:27:
index out of bounds: the len is 203 but the index is 207
stack backtrace:
0: 0x7ffe02a23b9d - std::backtrace_rs::backtrace::dbghelp64::trace
at /rustc/72fdf913c53dd0e75313ba83e4aa80df3f6e2871/library\std\src\..\..\backtrace\src\backtrace\dbghelp64.rs:91
1: 0x7ffe02a23b9d - std::backtrace_rs::backtrace::trace_unsynchronized
at /rustc/72fdf913c53dd0e75313ba83e4aa80df3f6e2871/library\std\src\..\..\backtrace\src\backtrace\mod.rs:66
2: 0x7ffe02a23b9d - std::sys_common::backtrace::_print_fmt
at /rustc/72fdf913c53dd0e75313ba83e4aa80df3f6e2871/library\std\src\sys_common\backtrace.rs:68
3: 0x7ffe02a23b9d - std::sys_common::backtrace::_print::impl$0::fmt
at /rustc/72fdf913c53dd0e75313ba83e4aa80df3f6e2871/library\std\src\sys_common\backtrace.rs:44
4: 0x7ffe02a547d9 - core::fmt::rt::Argument::fmt
at /rustc/72fdf913c53dd0e75313ba83e4aa80df3f6e2871/library\core\src\fmt\rt.rs:165
5: 0x7ffe02a547d9 - core::fmt::write
at /rustc/72fdf913c53dd0e75313ba83e4aa80df3f6e2871/library\core\src\fmt\mod.rs:1168
6: 0x7ffe02a1a3f1 - std::io::Write::write_fmt<std::sys::pal::windows::stdio::Stderr>
at /rustc/72fdf913c53dd0e75313ba83e4aa80df3f6e2871/library\std\src\io\mod.rs:1835
7: 0x7ffe02a23976 - std::sys_common::backtrace::print
at /rustc/72fdf913c53dd0e75313ba83e4aa80df3f6e2871/library\std\src\sys_common\backtrace.rs:34
8: 0x7ffe02a26b58 - std::panicking::default_hook::closure$1
at /rustc/72fdf913c53dd0e75313ba83e4aa80df3f6e2871/library\std\src\panicking.rs:271
9: 0x7ffe02a26806 - std::panicking::default_hook
at /rustc/72fdf913c53dd0e75313ba83e4aa80df3f6e2871/library\std\src\panicking.rs:298
10: 0x7ffe074d60fc - memchr
11: 0x7ffe02a27187 - alloc::boxed::impl$50::call
at /rustc/72fdf913c53dd0e75313ba83e4aa80df3f6e2871/library\alloc\src\boxed.rs:2077
12: 0x7ffe02a27187 - std::panicking::rust_panic_with_hook
at /rustc/72fdf913c53dd0e75313ba83e4aa80df3f6e2871/library\std\src\panicking.rs:799
13: 0x7ffe02a27017 - std::panicking::begin_panic_handler::closure$0
at /rustc/72fdf913c53dd0e75313ba83e4aa80df3f6e2871/library\std\src\panicking.rs:664
14: 0x7ffe02a2450f - std::sys_common::backtrace::__rust_end_short_backtrace<std::panicking::begin_panic_handler::closure_env$0,never$>
at /rustc/72fdf913c53dd0e75313ba83e4aa80df3f6e2871/library\std\src\sys_common\backtrace.rs:171
15: 0x7ffe02a26cc8 - std::panicking::begin_panic_handler
at /rustc/72fdf913c53dd0e75313ba83e4aa80df3f6e2871/library\std\src\panicking.rs:652
16: 0x7ffe02a7e054 - core::panicking::panic_fmt
at /rustc/72fdf913c53dd0e75313ba83e4aa80df3f6e2871/library\core\src\panicking.rs:72
17: 0x7ffe02a7e28e - core::panicking::panic_bounds_check
at /rustc/72fdf913c53dd0e75313ba83e4aa80df3f6e2871/library\core\src\panicking.rs:274
18: 0x7ffe05e22796 - rustc_codegen_ssa[17375fc6d9732a23]::back::link::linker_and_flavor
19: 0x7ffe05e16d70 - rustc_codegen_ssa[17375fc6d9732a23]::back::link::each_linked_rlib
20: 0x7ffe05e1167e - rustc_codegen_ssa[17375fc6d9732a23]::back::link::link_binary
21: 0x7ffe033e4ca6 - <rustc_codegen_llvm[3d446f3b6ccd7211]::LlvmCodegenBackend as rustc_codegen_ssa[17375fc6d9732a23]::traits::backend::CodegenBackend>::link
22: 0x7ffe033374e9 - <rustc_interface[b17a26a17ab0bfc1]::queries::Linker>::link
23: 0x7ffe032e58f2 - _LNan_C
24: 0x7ffe032e256f - _LNan_C
25: 0x7ffe032ea269 - _LNan_C
26: 0x7ffe02a3838d - alloc::boxed::impl$48::call_once
at /rustc/72fdf913c53dd0e75313ba83e4aa80df3f6e2871/library\alloc\src\boxed.rs:2063
27: 0x7ffe02a3838d - alloc::boxed::impl$48::call_once
at /rustc/72fdf913c53dd0e75313ba83e4aa80df3f6e2871/library\alloc\src\boxed.rs:2063
28: 0x7ffe02a3838d - std::sys::pal::windows::thread::impl$0::new::thread_start
at /rustc/72fdf913c53dd0e75313ba83e4aa80df3f6e2871/library\std\src\sys\pal\windows\thread.rs:52
29: 0x7ffe714e7614 - BaseThreadInitThunk
30: 0x7ffe720426b1 - RtlUserThreadStart
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 make sure that you have updated to the latest nightly
note: please attach the file at `C:\AMD\RustProjects\sphene\rustc-ice-2024-06-06T08_35_43-4288.txt` to your bug report
note: compiler flags: --crate-type bin -C embed-bitcode=no -C debuginfo=2 -C incremental=[REDACTED]
note: some of the compiler flags provided by cargo are hidden
query stack during panic:
end of query stack
error: could not compile `sphene` (bin "sphene")
Backtrace
<backtrace>
I dont really understand what to put here. I added "RUST_BACKTRACE=1" but outputs the same as the error message above.