forked from rust-lang/rust
-
Notifications
You must be signed in to change notification settings - Fork 38
Open
Description
Reproduction
Setup
cargo new --lib foo
cd foo
cargo add [email protected]
mkdir .cargo
cat >.cargo/config.toml <<-EOF
[build]
target = "xtensa-esp32s3-espidf"
[target.xtensa-esp32s3-espidf]
linker = "ldproxy"
[unstable]
build-std = ["std", "panic_abort"]
EOF
Reproducing
cargo +esp build --release
Meta
rustc +esp --version --verbose
:
rustc 1.85.0-nightly (fc08bef7e 2025-02-18) (1.85.0.0)
binary: rustc
commit-hash: fc08bef7ed8528e4aed2307195529c55fef62f38
commit-date: 2025-02-18
host: x86_64-unknown-linux-gnu
release: 1.85.0-nightly
LLVM version: 19.1.2
Error output
rustc-ice-2025-03-31T13_50_35-2004771.txt
Backtrace
thread 'lto cgu.08' panicked at compiler/rustc_codegen_llvm/src/llvm/diagnostic.rs:106:10:
non-UTF8 SMDiagnostic: FromUtf8Error { bytes: [85, 110, 100, 101, 102, 105, 110, 101, 100, 32, 116, 101, 109, 112, 111, 114, 97, 114, 121, 32, 115, 121, 109, 98, 111, 108, 32, 46, 76, 64, 139, 69, 73, 200, 120], error: Utf8Error { valid_up_to: 30, error_len: Some(1) } }
stack backtrace:
0: 0x78c87db501e4 - std::backtrace::Backtrace::create::h54b2ab383749b59e
1: 0x78c87db50135 - std::backtrace::Backtrace::force_capture::hf74297927a3d8080
2: 0x78c876a2dfe7 - <alloc[7af4ad5937f3bd5]::boxed::Box<rustc_driver_impl[b4c991f58b9ae9ba]::install_ice_hook::{closure#1}> as core[ac489912b681a327]::ops::function::Fn<(&dyn for<'a, 'b> core[ac489912b681a327]::ops::function::Fn<(&'a std[d50e4344578a68f1]::panic::PanicHookInfo<'b>,), Output = ()> + core[ac489912b681a327]::marker::Send + core[ac489912b681a327]::marker::Sync, &std[d50e4344578a68f1]::panic::PanicHookInfo)>>::call
3: 0x78c87db522a8 - std::panicking::rust_panic_with_hook::hb79c5231fa574053
4: 0x78c87dba603a - std::panicking::begin_panic_handler::{{closure}}::hc926614189eea344
5: 0x78c87dba5259 - std::sys::backtrace::__rust_end_short_backtrace::h5bf36d31fbeb1cf7
6: 0x78c87db51d3d - rust_begin_unwind
7: 0x78c87dbe4b80 - core::panicking::panic_fmt::h97dc22dee53d7955
8: 0x78c87dbe71a6 - core::result::unwrap_failed::h5862a18eaff554cf
9: 0x78c876e64e21 - <rustc_codegen_llvm[ac930458e5973ab]::llvm_::diagnostic::SrcMgrDiagnostic>::unpack
10: 0x78c876e65054 - <rustc_codegen_llvm[ac930458e5973ab]::llvm_::diagnostic::Diagnostic>::unpack
11: 0x78c876dca289 - rustc_codegen_llvm[ac930458e5973ab]::back::write::diagnostic_handler
12: 0x78c876f02cc5 - _ZZ41LLVMRustContextConfigureDiagnosticHandlerEN21RustDiagnosticHandler17handleDiagnosticsERKN4llvm14DiagnosticInfoE
13: 0x78c87a638d4d - _ZN4llvm11LLVMContext8diagnoseERKNS_14DiagnosticInfoE
14: 0x78c8792b3189 - _ZNSt17_Function_handlerIFvRKN4llvm12SMDiagnosticEbRKNS0_9SourceMgrERSt6vectorIPKNS0_6MDNodeESaISA_EEEZNS0_28MachineModuleInfoWrapperPass16doInitializationERNS0_6ModuleEEUlS3_bS6_SD_E_E9_M_invokeERKSt9_Any_dataS3_ObS6_SD_
15: 0x78c87a75fc9d - _ZN4llvm9MCContext12reportCommonENS_5SMLocESt8functionIFvRNS_12SMDiagnosticEPKNS_9SourceMgrEEE
16: 0x78c87a75fec2 - _ZN4llvm9MCContext11reportErrorENS_5SMLocERKNS_5TwineE
17: 0x78c87a74cb90 - _ZN12_GLOBAL__N_19ELFWriter18computeSymbolTableERN4llvm11MCAssemblerERKNS1_8DenseMapIPKNS1_8MCSymbolEjNS1_12DenseMapInfoIS7_vEENS1_6detail12DenseMapPairIS7_jEEEE
18: 0x78c87a74debd - _ZN12_GLOBAL__N_19ELFWriter11writeObjectERN4llvm11MCAssemblerE.constprop.0
19: 0x78c87a750039 - _ZN4llvm15ELFObjectWriter11writeObjectERNS_11MCAssemblerE
20: 0x78c87a757a2a - _ZN4llvm11MCAssembler6FinishEv
21: 0x78c878fb452b - _ZN4llvm10AsmPrinter14doFinalizationERNS_6ModuleE
22: 0x78c87a64c0f5 - _ZN4llvm13FPPassManager14doFinalizationERNS_6ModuleE.localalias
23: 0x78c87a657150 - _ZN4llvm6legacy15PassManagerImpl3runERNS_6ModuleE
24: 0x78c876eff370 - LLVMRustWriteOutputFile
25: 0x78c876dc80a2 - rustc_codegen_llvm[ac930458e5973ab]::back::write::write_output_file
26: 0x78c876dcd948 - rustc_codegen_llvm[ac930458e5973ab]::back::write::codegen
27: 0x78c876dbd874 - rustc_codegen_ssa[c5c52cb9fb858750]::back::write::finish_intra_module_work::<rustc_codegen_llvm[ac930458e5973ab]::LlvmCodegenBackend>
28: 0x78c876e501eb - std[d50e4344578a68f1]::sys::backtrace::__rust_begin_short_backtrace::<<rustc_codegen_llvm[ac930458e5973ab]::LlvmCodegenBackend as rustc_codegen_ssa[c5c52cb9fb858750]::traits::backend::ExtraBackendMethods>::spawn_named_thread<rustc_codegen_ssa[c5c52cb9fb858750]::back::write::spawn_work<rustc_codegen_llvm[ac930458e5973ab]::LlvmCodegenBackend>::{closure#0}, ()>::{closure#0}, ()>
29: 0x78c876e56292 - <<std[d50e4344578a68f1]::thread::Builder>::spawn_unchecked_<<rustc_codegen_llvm[ac930458e5973ab]::LlvmCodegenBackend as rustc_codegen_ssa[c5c52cb9fb858750]::traits::backend::ExtraBackendMethods>::spawn_named_thread<rustc_codegen_ssa[c5c52cb9fb858750]::back::write::spawn_work<rustc_codegen_llvm[ac930458e5973ab]::LlvmCodegenBackend>::{closure#0}, ()>::{closure#0}, ()>::{closure#1} as core[ac489912b681a327]::ops::function::FnOnce<()>>::call_once::{shim:vtable#0}
30: 0x78c87db528cb - std::sys::pal::unix::thread::Thread::new::thread_start::h5f4d058ee9815e28
31: 0x78c87327270a - <unknown>
32: 0x78c8732f6aac - <unknown>
33: 0x0 - <unknown>
rustc version: 1.85.0-nightly (fc08bef7e 2025-02-18) (1.85.0.0)
platform: x86_64-unknown-linux-gnuthread 'lto cgu.08' panicked at library/core/src/panicking.rs:218:5:
panic in a function that cannot unwind
stack backtrace:
0: 0x78c87db501e4 - std::backtrace::Backtrace::create::h54b2ab383749b59e
1: 0x78c87db50135 - std::backtrace::Backtrace::force_capture::hf74297927a3d8080
2: 0x78c876a2dfe7 - <alloc[7af4ad5937f3bd5]::boxed::Box<rustc_driver_impl[b4c991f58b9ae9ba]::install_ice_hook::{closure#1}> as core[ac489912b681a327]::ops::function::Fn<(&dyn for<'a, 'b> core[ac489912b681a327]::ops::function::Fn<(&'a std[d50e4344578a68f1]::panic::PanicHookInfo<'b>,), Output = ()> + core[ac489912b681a327]::marker::Send + core[ac489912b681a327]::marker::Sync, &std[d50e4344578a68f1]::panic::PanicHookInfo)>>::call
3: 0x78c87db522a8 - std::panicking::rust_panic_with_hook::hb79c5231fa574053
4: 0x78c87dba6006 - std::panicking::begin_panic_handler::{{closure}}::hc926614189eea344
5: 0x78c87dba5259 - std::sys::backtrace::__rust_end_short_backtrace::h5bf36d31fbeb1cf7
6: 0x78c87db51d3d - rust_begin_unwind
7: 0x78c87dbe4bbd - core::panicking::panic_nounwind_fmt::h11c7afdba2068009
8: 0x78c87dbe4c52 - core::panicking::panic_nounwind::hda28b1b3ddcd6183
9: 0x78c87dbe4e16 - core::panicking::panic_cannot_unwind::hd72aec3c50ef0fb6
10: 0x78c876dca846 - rustc_codegen_llvm[ac930458e5973ab]::back::write::diagnostic_handler
11: 0x78c876f02cc5 - _ZZ41LLVMRustContextConfigureDiagnosticHandlerEN21RustDiagnosticHandler17handleDiagnosticsERKN4llvm14DiagnosticInfoE
12: 0x78c87a638d4d - _ZN4llvm11LLVMContext8diagnoseERKNS_14DiagnosticInfoE
13: 0x78c8792b3189 - _ZNSt17_Function_handlerIFvRKN4llvm12SMDiagnosticEbRKNS0_9SourceMgrERSt6vectorIPKNS0_6MDNodeESaISA_EEEZNS0_28MachineModuleInfoWrapperPass16doInitializationERNS0_6ModuleEEUlS3_bS6_SD_E_E9_M_invokeERKSt9_Any_dataS3_ObS6_SD_
14: 0x78c87a75fc9d - _ZN4llvm9MCContext12reportCommonENS_5SMLocESt8functionIFvRNS_12SMDiagnosticEPKNS_9SourceMgrEEE
15: 0x78c87a75fec2 - _ZN4llvm9MCContext11reportErrorENS_5SMLocERKNS_5TwineE
16: 0x78c87a74cb90 - _ZN12_GLOBAL__N_19ELFWriter18computeSymbolTableERN4llvm11MCAssemblerERKNS1_8DenseMapIPKNS1_8MCSymbolEjNS1_12DenseMapInfoIS7_vEENS1_6detail12DenseMapPairIS7_jEEEE
17: 0x78c87a74debd - _ZN12_GLOBAL__N_19ELFWriter11writeObjectERN4llvm11MCAssemblerE.constprop.0
18: 0x78c87a750039 - _ZN4llvm15ELFObjectWriter11writeObjectERNS_11MCAssemblerE
19: 0x78c87a757a2a - _ZN4llvm11MCAssembler6FinishEv
20: 0x78c878fb452b - _ZN4llvm10AsmPrinter14doFinalizationERNS_6ModuleE
21: 0x78c87a64c0f5 - _ZN4llvm13FPPassManager14doFinalizationERNS_6ModuleE.localalias
22: 0x78c87a657150 - _ZN4llvm6legacy15PassManagerImpl3runERNS_6ModuleE
23: 0x78c876eff370 - LLVMRustWriteOutputFile
24: 0x78c876dc80a2 - rustc_codegen_llvm[ac930458e5973ab]::back::write::write_output_file
25: 0x78c876dcd948 - rustc_codegen_llvm[ac930458e5973ab]::back::write::codegen
26: 0x78c876dbd874 - rustc_codegen_ssa[c5c52cb9fb858750]::back::write::finish_intra_module_work::<rustc_codegen_llvm[ac930458e5973ab]::LlvmCodegenBackend>
27: 0x78c876e501eb - std[d50e4344578a68f1]::sys::backtrace::__rust_begin_short_backtrace::<<rustc_codegen_llvm[ac930458e5973ab]::LlvmCodegenBackend as rustc_codegen_ssa[c5c52cb9fb858750]::traits::backend::ExtraBackendMethods>::spawn_named_thread<rustc_codegen_ssa[c5c52cb9fb858750]::back::write::spawn_work<rustc_codegen_llvm[ac930458e5973ab]::LlvmCodegenBackend>::{closure#0}, ()>::{closure#0}, ()>
28: 0x78c876e56292 - <<std[d50e4344578a68f1]::thread::Builder>::spawn_unchecked_<<rustc_codegen_llvm[ac930458e5973ab]::LlvmCodegenBackend as rustc_codegen_ssa[c5c52cb9fb858750]::traits::backend::ExtraBackendMethods>::spawn_named_thread<rustc_codegen_ssa[c5c52cb9fb858750]::back::write::spawn_work<rustc_codegen_llvm[ac930458e5973ab]::LlvmCodegenBackend>::{closure#0}, ()>::{closure#0}, ()>::{closure#1} as core[ac489912b681a327]::ops::function::FnOnce<()>>::call_once::{shim:vtable#0}
29: 0x78c87db528cb - std::sys::pal::unix::thread::Thread::new::thread_start::h5f4d058ee9815e28
30: 0x78c87327270a - <unknown>
31: 0x78c8732f6aac - <unknown>
32: 0x0 - <unknown>
thetek42 and torkleyy
Metadata
Metadata
Assignees
Labels
No labels