thread 'rustc' (2368) panicked at /rust/deps\ar_archive_writer-0.5.1\src\archive_writer.rs:496:14
Open
Nobody has claimed this yet.
C-bug
I-ICE
O-windows-msvc
T-compiler
- Dominant language
- Rust
- Stars
- 119k
- Forks
- 16.1k
- PR merge metrics
- PR metrics pending
Description
Code
tauri build on windows (mac and linux worked) github action, see: https://github.com/benmneb/suttacentral-static/actions/runs/21026191661/job/60535115542
submitting because the logs requested it
pnpm tauri build
Meta
rustc 1.92.0 (ded5c06cf 2025-12-08) running on x86_64-pc-windows-msvc
Error output
thread 'rustc' (2368) panicked at /rust/deps\ar_archive_writer-0.5.1\src\archive_writer.rs:496:14:
called `Option::unwrap()` on a `None` value
stack backtrace:
0: 0x7ffff7be8062 - std::backtrace_rs::backtrace::win64::trace
at /rustc/ded5c06cf21d2b93bffd5d884aa6e96934ee4234/library\std\src\..\..\backtrace\src\backtrace\win64.rs:85
1: 0x7ffff7be8062 - std::backtrace_rs::backtrace::trace_unsynchronized
at /rustc/ded5c06cf21d2b93bffd5d884aa6e96934ee4234/library\std\src\..\..\backtrace\src\backtrace\mod.rs:66
2: 0x7ffff7be8062 - std::sys::backtrace::_print_fmt
at /rustc/ded5c06cf21d2b93bffd5d884aa6e96934ee4234/library\std\src\sys\backtrace.rs:66
3: 0x7ffff7be8062 - std::sys::backtrace::impl$0::print::impl$0::fmt
at /rustc/ded5c06cf21d2b93bffd5d884aa6e96934ee4234/library\std\src\sys\backtrace.rs:39
4: 0x7ffff7bfd76a - core::fmt::rt::Argument::fmt
at /rustc/ded5c06cf21d2b93bffd5d884aa6e96934ee4234/library\core\src\fmt\rt.rs:173
5: 0x7ffff7bfd76a - core::fmt::write
at /rustc/ded5c06cf21d2b93bffd5d884aa6e96934ee4234/library\core\src\fmt\mod.rs:1469
6: 0x7ffff7baf507 - std::io::default_write_fmt
at /rustc/ded5c06cf21d2b93bffd5d884aa6e96934ee4234/library\std\src\io\mod.rs:639
7: 0x7ffff7baf507 - std::io::Write::write_fmt<std::sys::stdio::windows::Stderr>
at /rustc/ded5c06cf21d2b93bffd5d884aa6e96934ee4234/library\std\src\io\mod.rs:1954
8: 0x7ffff7bc7d05 - std::sys::backtrace::BacktraceLock::print
at /rustc/ded5c06cf21d2b93bffd5d884aa6e96934ee4234/library\std\src\sys\backtrace.rs:42
9: 0x7ffff7bcf6b9 - std::panicking::default_hook::closure$0
at /rustc/ded5c06cf21d2b93bffd5d884aa6e96934ee4234/library\std\src\panicking.rs:301
10: 0x7ffff7bcf4a8 - std::panicking::default_hook
at /rustc/ded5c06cf21d2b93bffd5d884aa6e96934ee4234/library\std\src\panicking.rs:328
11: 0x7ffff93ccf74 - core[4987e1f394dcf43d]::slice::sort::unstable::heapsort::heapsort::<((rustc_lint_defs[fca1c0518dc1370d]::Level, &str), usize), <((rustc_lint_defs[fca1c0518dc1370d]::Level, &str), usize) as core[4987e1f394dcf43d]::cmp::PartialOrd>::lt>
12: 0x7ffff7bcff7a - std::panicking::panic_with_hook
at /rustc/ded5c06cf21d2b93bffd5d884aa6e96934ee4234/library\std\src\panicking.rs:842
13: 0x7ffff7bcfcd2 - std::panicking::panic_handler::closure$0
at /rustc/ded5c06cf21d2b93bffd5d884aa6e96934ee4234/library\std\src\panicking.rs:700
14: 0x7ffff7bc7f0f - std::sys::backtrace::__rust_end_short_backtrace<std::panicking::panic_handler::closure_env$0,never$>
at /rustc/ded5c06cf21d2b93bffd5d884aa6e96934ee4234/library\std\src\sys\backtrace.rs:174
15: 0x7ffff7ba9a1e - std::panicking::panic_handler
at /rustc/ded5c06cf21d2b93bffd5d884aa6e96934ee4234/library\std\src\panicking.rs:698
16: 0x7ffffbd8d831 - core::panicking::panic_fmt
at /rustc/ded5c06cf21d2b93bffd5d884aa6e96934ee4234/library\core\src\panicking.rs:80
17: 0x7ffffbd8d80d - core::panicking::panic
at /rustc/ded5c06cf21d2b93bffd5d884aa6e96934ee4234/library\core\src\panicking.rs:150
18: 0x7ffffbd8ce8e - core::option::unwrap_failed
at /rustc/ded5c06cf21d2b93bffd5d884aa6e96934ee4234/library\core\src\option.rs:2174
19: 0x7ffff8bc414e - <rustc_codegen_ssa[6267819c81809751]::CrateInfo>::new
20: 0x7ffff77c891d - <rustc_codegen_ssa[6267819c81809751]::back::archive::ArArchiveBuilder as rustc_codegen_ssa[6267819c81809751]::back::archive::ArchiveBuilder>::build
21: 0x7ffff7796365 - rustc_codegen_ssa[6267819c81809751]::back::link::link_binary
22: 0x7ffff524b622 - <rustc_codegen_llvm[247c6fabd1d5686f]::LlvmCodegenBackend as rustc_codegen_ssa[6267819c81809751]::traits::backend::CodegenBackend>::link
23: 0x7ffff51b20d0 - <rustc_interface[197a508817402379]::queries::Linker>::link
24: 0x7ffff5159e4a - std[738e1010a39bc4a5]::sys::backtrace::__rust_begin_short_backtrace::<<std[738e1010a39bc4a5]::thread::Builder>::spawn_unchecked_<ctrlc[874f0dd806c9df2c]::set_handler_inner<rustc_driver_impl[17d046eb2427e901]::install_ctrlc_handler::{closure#0}>::{closure#0}, ()>::{closure#1}::{closure#0}::{closure#0}, ()>
25: 0x7ffff515208f - RINvNtNtCs9V5XLWeEmQj_3std3sys9backtrace28___rust_begin_short_backtraceNCNCINvNtCs2bCinI0spE3_15rustc_interface4util26run_in_thread_with_globalsNCINvB1e_31run_in_thread_pool_with_globalsNCINvNtB1g_9interface12run_compileruNCNvCs22L483oK3dt_17rustc_driver_i
26: 0x7ffff51608ed - std[738e1010a39bc4a5]::sys::backtrace::__rust_begin_short_backtrace::<<std[738e1010a39bc4a5]::thread::Builder>::spawn_unchecked_<ctrlc[874f0dd806c9df2c]::set_handler_inner<rustc_driver_impl[17d046eb2427e901]::install_ctrlc_handler::{closure#0}>::{closure#0}, ()>::{closure#1}::{closure#0}::{closure#0}, ()>
27: 0x7ffff7bc01fd - alloc::boxed::impl$29::call_once
at /rustc/ded5c06cf21d2b93bffd5d884aa6e96934ee4234/library\alloc\src\boxed.rs:2005
28: 0x7ffff7bc01fd - alloc::boxed::impl$29::call_once
at /rustc/ded5c06cf21d2b93bffd5d884aa6e96934ee4234/library\alloc\src\boxed.rs:2005
29: 0x7ffff7bc01fd - std::sys::thread::windows::impl$0::new::thread_start
at /rustc/ded5c06cf21d2b93bffd5d884aa6e96934ee4234/library\std\src\sys\thread\windows.rs:60
30: 0x7ff83d53e8d7 - BaseThreadInitThunk
31: 0x7ff83e5ac53c - 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: rustc 1.92.0 (ded5c06cf 2025-12-08) running on x86_64-pc-windows-msvc
note: compiler flags: --crate-type staticlib --crate-type cdylib --crate-type rlib -C opt-level=s -C panic=abort -C codegen-units=1 -C strip=symbols -C link-arg=/NODEFAULTLIB:libvcruntimed.lib -C link-arg=/NODEFAULTLIB:vcruntime.lib -C link-arg=/NODEFAULTLIB:vcruntimed.lib -C link-arg=/NODEFAULTLIB:libcmtd.lib -C link-arg=/NODEFAULTLIB:msvcrt.lib -C link-arg=/NODEFAULTLIB:msvcrtd.lib -C link-arg=/NODEFAULTLIB:libucrt.lib -C link-arg=/NODEFAULTLIB:libucrtd.lib -C link-arg=/DEFAULTLIB:libcmt.lib -C link-arg=/DEFAULTLIB:libvcruntime.lib -C link-arg=/DEFAULTLIB:ucrt.lib
note: some of the compiler flags provided by cargo are hidden
query stack during panic:
end of query stack
error: could not compile `suttacentral-express` (lib)
Caused by:
process didn't exit successfully: `C:\Users\runneradmin\.rustup\toolchains\stable-x86_64-pc-windows-msvc\bin\rustc.exe --crate-name app_lib --edition=2021 src\lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --crate-type staticlib --crate-type cdylib --crate-type rlib --emit=dep-info,link -C opt-level=s -C panic=abort -C codegen-units=1 --check-cfg cfg(docsrs,test) --check-cfg "cfg(feature, values())" -C metadata=0ec38d05e6ef0c79 --out-dir D:\a\suttacentral-static\suttacentral-static\tauri\target\release\deps -C strip=symbols -L dependency=D:\a\suttacentral-static\suttacentral-static\tauri\target\release\deps --extern log=D:\a\suttacentral-static\suttacentral-static\tauri\target\release\deps\liblog-ba29026079ec2603.rlib --extern serde=D:\a\suttacentral-static\suttacentral-static\tauri\target\release\deps\libserde-89737d23b89b40d1.rlib --extern serde_json=D:\a\suttacentral-static\suttacentral-static\tauri\target\release\deps\libserde_json-7cc04e1ffee14cf5.rlib --extern tauri=D:\a\suttacentral-static\suttacentral-static\tauri\target\release\deps\libtauri-df20eb2b4c83d9a0.rlib --extern tauri_plugin_log=D:\a\suttacentral-static\suttacentral-static\tauri\target\release\deps\libtauri_plugin_log-59ea31475209319e.rlib --extern tauri_plugin_opener=D:\a\suttacentral-static\suttacentral-static\tauri\target\release\deps\libtauri_plugin_opener-5af6e95f4b745f26.rlib --extern tauri_plugin_window_state=D:\a\suttacentral-static\suttacentral-static\tauri\target\release\deps\libtauri_plugin_window_state-fac6d8c8a363f6c3.rlib -L native=D:\a\suttacentral-static\suttacentral-static\tauri\target\release\build\suttacentral-express-ebbd09836980815e\out -L native=D:\a\suttacentral-static\suttacentral-static\tauri\target\release\build\webview2-com-sys-1650424215827f1d\out\x64 -L native=C:\Users\runneradmin\.cargo\registry\src\index.crates.io-1949cf8c6b5b557f\windows_x86_64_msvc-0.53.1\lib -L native=C:\Users\runneradmin\.cargo\registry\src\index.crates.io-1949cf8c6b5b557f\windows_x86_64_msvc-0.52.6\lib -C link-arg=/NODEFAULTLIB:libvcruntimed.lib -C link-arg=/NODEFAULTLIB:vcruntime.lib -C link-arg=/NODEFAULTLIB:vcruntimed.lib -C link-arg=/NODEFAULTLIB:libcmtd.lib -C link-arg=/NODEFAULTLIB:msvcrt.lib -C link-arg=/NODEFAULTLIB:msvcrtd.lib -C link-arg=/NODEFAULTLIB:libucrt.lib -C link-arg=/NODEFAULTLIB:libucrtd.lib -C link-arg=/DEFAULTLIB:libcmt.lib -C link-arg=/DEFAULTLIB:libvcruntime.lib -C link-arg=/DEFAULTLIB:ucrt.lib --cfg desktop --check-cfg cfg(desktop) --check-cfg cfg(mobile) --check-cfg cfg(dev)` (exit code: 101)
failed to build app: failed to build app
Error failed to build app: failed to build app
Error: Command "pnpm ["tauri","build"]" failed with exit code 1
Backtrace
<backtrace>
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing pnpm tauri build on Windows with rustc 1.92.0 for the reported Tauri project, then inspect the panic at ar_archive_writer-0.5.1/src/archive_writer.rs:496:14 and the rustc_codegen_ssa::CrateInfo archive-linking path. Done means the reported Windows build no longer triggers this compiler ICE, ideally with a smaller reproduction than the current project build.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust, tauri
- Domain
- compilers
- Issue type
- Bug
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Quiet
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100