Repository: rust
Issue: cross-compiled a rustc and panicked on execution.
Labels: I-ICE,T-compiler,O-musl,C-bug,T-libs

I cross-compiled a musl rust toolchain based on rust-1.60. I panicked at the execution.
In fact, this mian.rs generates main.
The problem should be caused by the exit of the subprocess during the link.
`RUSTFLAGS="-Clink-args=-lhmulibs -lhmsrv_net -lhmsrv_fs -lhwsecurec" rustc --print link-args main.rs`
The code in question
![image](https://github.com/rust-lang/rust/assets/17870505/52546d12-7f6c-47fa-b92c-8f72ed8a915c)

Does this file need to be adjusted for each new arch or OS?
library/std/src/sys/unix/pipe.rs

**LOG:**
/home/hello/src $ sh compile.sh
"cc" "/lib/rustlib/aarch64-unknown-linux-musl/lib/self-contained/crt1.o" "/lib/rustlib/aarch64-unknown-linux-musl/lib/self-contained/crti.o" "/lib/rustlib/aarch64-unknown-linux-musl/lib/self-contained/crtbegin.o" "main.main.f22ff6f4-cgu.0.rcgu.o" "main.main.f22ff6f4-cgu.1.rcgu.o" "main.main.f22ff6f4-cgu.2.rcgu.o" "main.main.f22ff6f4-cgu.3.rcgu.o" "main.main.f22ff6f4-cgu.4.rcgu.o" "main.main.f22ff6f4-cgu.5.rcgu.o" "main.main.f22ff6f4-cgu.6.rcgu.o" "main.main.f22ff6f4-cgu.7.rcgu.o" "main.3wm9dmufygn208a2.rcgu.o" "-Wl,--as-needed" "-L" "/lib/rustlib/aarch64-unknown-linux-musl/lib" "-Wl,--start-group" "-Wl,-Bstatic" "/lib/rustlib/aarch64-unknown-linux-musl/lib/libstd-f0d743903306e887.rlib" "/lib/rustlib/aarch64-unknown-linux-musl/lib/libpanic_unwind-b8e8caebea974af7.rlib" "/lib/rustlib/aarch64-unknown-linux-musl/lib/libminiz_oxide-cf2038dd34faccdb.rlib" "/lib/rustlib/aarch64-unknown-linux-musl/lib/libadler-b964938f2abb2058.rlib" "/lib/rustlib/aarch64-unknown-linux-musl/lib/libobject-0404864d1ae697e5.rlib" "/lib/rustlib/aarch64-unknown-linux-musl/lib/libmemchr-4dea6bf0545366f9.rlib" "/lib/rustlib/aarch64-unknown-linux-musl/lib/libaddr2line-7ffd46c946991885.rlib" "/lib/rustlib/aarch64-unknown-linux-musl/lib/libgimli-36006d955dd6620b.rlib" "/lib/rustlib/aarch64-unknown-linux-musl/lib/librustc_demangle-8c4cf0113f36fd19.rlib" "/lib/rustlib/aarch64-unknown-linux-musl/lib/libstd_detect-28ca2d3f2d625fc7.rlib" "/lib/rustlib/aarch64-unknown-linux-musl/lib/libhashbrown-584289d0105523ab.rlib" "/lib/rustlib/aarch64-unknown-linux-musl/lib/librustc_std_workspace_alloc-d62fc3de6f7fcb30.rlib" "/lib/rustlib/aarch64-unknown-linux-musl/lib/libunwind-b214f611b3c82821.rlib" "-lunwind" "/lib/rustlib/aarch64-unknown-linux-musl/lib/libcfg_if-7caf8277e698410f.rlib" "/lib/rustlib/aarch64-unknown-linux-musl/lib/liblibc-b96940ff71a4bd49.rlib" "-lc" "/lib/rustlib/aarch64-unknown-linux-musl/lib/liballoc-b0a57589a11b56d8.rlib" "/lib/rustlib/aarch64-unknown-linux-musl/lib/librustc_std_workspace_core-b8bd54faa50da7b8.rlib" "/lib/rustlib/aarch64-unknown-linux-musl/lib/libcore-66cafac6dbe668a4.rlib" "-Wl,--end-group" "/lib/rustlib/aarch64-unknown-linux-musl/lib/libcompiler_builtins-ea3c140a5db2b815.rlib" "-Wl,-Bdynamic" "-Wl,--eh-frame-hdr" "-Wl,-znoexecstack" "-nostartfiles" "-L" "/lib/rustlib/aarch64-unknown-linux-musl/lib" "-L" "/lib/rustlib/aarch64-unknown-linux-musl/lib/self-contained" "-o" "main" "-Wl,--gc-sections" "-static" "-no-pie" "-Wl,-zrelro,-znow" "-nodefaultlibs" "-lhmulibs" "-lhmsrv_net" "-lhmsrv_fs" "-lhwsecurec" "/lib/rustlib/aarch64-unknown-linux-musl/lib/self-contained/crtend.o" "/lib/rustlib/aarch64-unknown-linux-musl/lib/self-contained/crtn.o"
thread 'rustc' panicked at 'called `Result::unwrap()` on an `Err` value: Os { code: 22, kind: InvalidInput, message: "Invalid argument" }', library/std/src/process.rs:1872:21
stack backtrace:
   0:          0x350c510 - std::backtrace_rs::backtrace::libunwind::trace::h2233453334ce2306
                               at /home/ymt/abuild2/rustc-1.60.0-src/library/std/src/../../backtrace/src/backtrace/libunwind.rs:93:5
   1:          0x350c510 - std::backtrace_rs::backtrace::trace_unsynchronized::hb95238cba8783079
                               at /home/ymt/abuild2/rustc-1.60.0-src/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5
   2:          0x350c510 - std::sys_common::backtrace::_print_fmt::ha8c9684f0464d501
                               at /home/ymt/abuild2/rustc-1.60.0-src/library/std/src/sys_common/backtrace.rs:66:5
   3:          0x350c510 - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::h08cac21bf1d61a16
                               at /home/ymt/abuild2/rustc-1.60.0-src/library/std/src/sys_common/backtrace.rs:45:22
   4:          0x3561178 - core::fmt::write::hb9eca63220767085
                               at /home/ymt/abuild2/rustc-1.60.0-src/library/core/src/fmt/mod.rs:1190:17
   5:          0x350675c - std::io::Write::write_fmt::h63d362651970a161
                               at /home/ymt/abuild2/rustc-1.60.0-src/library/std/src/io/mod.rs:1657:15
   6:          0x350ef54 - std::sys_common::backtrace::_print::h0da72cf8792d6005
                               at /home/ymt/abuild2/rustc-1.60.0-src/library/std/src/sys_common/backtrace.rs:48:5
   7:          0x350ef54 - std::sys_common::backtrace::print::h45ee9fb0bf2ab8e5
                               at /home/ymt/abuild2/rustc-1.60.0-src/library/std/src/sys_common/backtrace.rs:35:9
   8:          0x350ef54 - std::panicking::default_hook::{{closure}}::h1b4dbf04ea57a585
                               at /home/ymt/abuild2/rustc-1.60.0-src/library/std/src/panicking.rs:295:22
   9:          0x350eb84 - std::panicking::default_hook::h686e27bcf08c2f03
                               at /home/ymt/abuild2/rustc-1.60.0-src/library/std/src/panicking.rs:314:9
  10:           0x5bb0d8 - <alloc[221c021b656a6a73]::boxed::Box<dyn for<'a, 'b> core[25cbc20583a8aedc]::ops::function::Fn<(&'a core[25cbc20583a8aedc]::panic::panic_info::PanicInfo<'b>,), Output = ()> + core[25cbc20583a8aedc]::marker::Sync + core[25cbc20583a8aedc]::marker::Send> as core[25cbc20583a8aedc]::ops::function::Fn<(&core[25cbc20583a8aedc]::panic::panic_info::PanicInfo,)>>::call
                               at /home/ymt/abuild2/rustc-1.60.0-src/library/alloc/src/boxed.rs:1867:9
  11:           0x5bb0d8 - rustc_driver[d30cc2cf7248222d]::DEFAULT_HOOK::{closure#0}::{closure#0}
                               at /home/ymt/abuild2/rustc-1.60.0-src/compiler/rustc_driver/src/lib.rs:1155:13
  12:          0x350f6cc - std::panicking::rust_panic_with_hook::had898afb15b4fc1e
                               at /home/ymt/abuild2/rustc-1.60.0-src/library/std/src/panicking.rs:702:17
  13:          0x350f430 - std::panicking::begin_panic_handler::{{closure}}::h7b1af82b63472bf0
                               at /home/ymt/abuild2/rustc-1.60.0-src/library/std/src/panicking.rs:588:13
  14:          0x350c968 - std::sys_common::backtrace::__rust_end_short_backtrace::hd271763c6d80a541
                               at /home/ymt/abuild2/rustc-1.60.0-src/library/std/src/sys_common/backtrace.rs:138:18
  15:          0x350f17c - rust_begin_unwind
                               at /home/ymt/abuild2/rustc-1.60.0-src/library/std/src/panicking.rs:584:5
  16:           0x55ed24 - core::panicking::panic_fmt::h4bf2150d01ac8667
                               at /home/ymt/abuild2/rustc-1.60.0-src/library/core/src/panicking.rs:143:14
  17:           0x55edc4 - core::result::unwrap_failed::h5112146f70e0c3b1
                               at /home/ymt/abuild2/rustc-1.60.0-src/library/core/src/result.rs:1749:5
  18:          0x350ae00 - core::result::Result<T,E>::unwrap::hda02e2935fdc1474
                               at /home/ymt/abuild2/rustc-1.60.0-src/library/core/src/result.rs:1065:23
  19:          0x350ae00 - std::process::Child::wait_with_output::hc20c900fc6fe1e76
                               at /home/ymt/abuild2/rustc-1.60.0-src/library/std/src/process.rs:1872:17
  20:          0x2bc5414 - rustc_codegen_ssa[c7474e2383cd134a]::back::link::exec_linker
                               at /home/ymt/abuild2/rustc-1.60.0-src/compiler/rustc_codegen_ssa/src/back/link.rs:1327:30
  21:           0x743c38 - rustc_codegen_ssa[c7474e2383cd134a]::back::link::link_natively::<rustc_codegen_llvm[9327c0291f7e1a92]::back::archive::LlvmArchiveBuilder>::{closure#0}
                               at /home/ymt/abuild2/rustc-1.60.0-src/compiler/rustc_codegen_ssa/src/back/link.rs:676:43
  22:           0x743c38 - <rustc_data_structures[773b54bd1e9e3444]::profiling::VerboseTimingGuard>::run::<core[25cbc20583a8aedc]::result::Result<std[e7210e0781cf881e]::process::Output, std[e7210e0781cf881e]::io::error::Error>, rustc_codegen_ssa[c7474e2383cd134a]::back::link::link_natively<rustc_codegen_llvm[9327c0291f7e1a92]::back::archive::LlvmArchiveBuilder>::{closure#0}>
                               at /home/ymt/abuild2/rustc-1.60.0-src/compiler/rustc_data_structures/src/profiling.rs:644:9
  23:           0x743c38 - <rustc_session[414c788a8555c26]::session::Session>::time::<core[25cbc20583a8aedc]::result::Result<std[e7210e0781cf881e]::process::Output, std[e7210e0781cf881e]::io::error::Error>, rustc_codegen_ssa[c7474e2383cd134a]::back::link::link_natively<rustc_codegen_llvm[9327c0291f7e1a92]::back::archive::LlvmArchiveBuilder>::{closure#0}>
                               at /home/ymt/abuild2/rustc-1.60.0-src/compiler/rustc_session/src/utils.rs:16:9
  24:           0x74613c - rustc_codegen_ssa[c7474e2383cd134a]::back::link::link_natively::<rustc_codegen_llvm[9327c0291f7e1a92]::back::archive::LlvmArchiveBuilder>
                               at /home/ymt/abuild2/rustc-1.60.0-src/compiler/rustc_codegen_ssa/src/back/link.rs:676:16
  25:           0x74460c - rustc_codegen_ssa[c7474e2383cd134a]::back::link::link_binary::<rustc_codegen_llvm[9327c0291f7e1a92]::back::archive::LlvmArchiveBuilder>
                               at /home/ymt/abuild2/rustc-1.60.0-src/compiler/rustc_codegen_ssa/src/back/link.rs:114:21
  26:           0x73cca0 - <rustc_codegen_llvm[9327c0291f7e1a92]::LlvmCodegenBackend as rustc_codegen_ssa[c7474e2383cd134a]::traits::backend::CodegenBackend>::link
                               at /home/ymt/abuild2/rustc-1.60.0-src/compiler/rustc_codegen_llvm/src/lib.rs:370:9
  27:           0x684118 - <rustc_interface[791e2fcbc78be80d]::queries::Linker>::link
                               at /home/ymt/abuild2/rustc-1.60.0-src/compiler/rustc_interface/src/queries.rs:379:9
  28:           0x616ac0 - rustc_driver[d30cc2cf7248222d]::run_compiler::{closure#1}
                               at /home/ymt/abuild2/rustc-1.60.0-src/compiler/rustc_driver/src/lib.rs:420:13
  29:           0x616ac0 - rustc_interface[791e2fcbc78be80d]::interface::create_compiler_and_run::<core[25cbc20583a8aedc]::result::Result<(), rustc_errors[74537d8d26024c04]::ErrorReported>, rustc_driver[d30cc2cf7248222d]::run_compiler::{closure#1}>::{closure#1}
                               at /home/ymt/abuild2/rustc-1.60.0-src/compiler/rustc_interface/src/interface.rs:314:13
  30:           0x616ac0 - rustc_span[81a3087c7623546f]::with_source_map::<core[25cbc20583a8aedc]::result::Result<(), rustc_errors[74537d8d26024c04]::ErrorReported>, rustc_interface[791e2fcbc78be80d]::interface::create_compiler_and_run<core[25cbc20583a8aedc]::result::Result<(), rustc_errors[74537d8d26024c04]::ErrorReported>, rustc_driver[d30cc2cf7248222d]::run_compiler::{closure#1}>::{closure#1}>
                               at /home/ymt/abuild2/rustc-1.60.0-src/compiler/rustc_span/src/lib.rs:1013:5
  31:           0x5c1334 - rustc_interface[791e2fcbc78be80d]::interface::create_compiler_and_run::<core[25cbc20583a8aedc]::result::Result<(), rustc_errors[74537d8d26024c04]::ErrorReported>, rustc_driver[d30cc2cf7248222d]::run_compiler::{closure#1}>
                               at /home/ymt/abuild2/rustc-1.60.0-src/compiler/rustc_interface/src/interface.rs:308:5
  32:           0x610154 - rustc_interface[791e2fcbc78be80d]::interface::run_compiler::<core[25cbc20583a8aedc]::result::Result<(), rustc_errors[74537d8d26024c04]::ErrorReported>, rustc_driver[d30cc2cf7248222d]::run_compiler::{closure#1}>::{closure#0}
                               at /home/ymt/abuild2/rustc-1.60.0-src/compiler/rustc_interface/src/interface.rs:328:12
  33:           0x610154 - <scoped_tls[fc738e0d035c1b]::ScopedKey<rustc_span[81a3087c7623546f]::SessionGlobals>>::set::<rustc_interface[791e2fcbc78be80d]::interface::run_compiler<core[25cbc20583a8aedc]::result::Result<(), rustc_errors[74537d8d26024c04]::ErrorReported>, rustc_driver[d30cc2cf7248222d]::run_compiler::{closure#1}>::{closure#0}, core[25cbc20583a8aedc]::result::Result<(), rustc_errors[74537d8d26024c04]::ErrorReported>>
                               at /home/ymt/abuild2/rustc-1.60.0-src/vendor/scoped-tls/src/lib.rs:137:9
  34:           0x61754c - rustc_span[81a3087c7623546f]::create_session_globals_then::<core[25cbc20583a8aedc]::result::Result<(), rustc_errors[74537d8d26024c04]::ErrorReported>, rustc_interface[791e2fcbc78be80d]::interface::run_compiler<core[25cbc20583a8aedc]::result::Result<(), rustc_errors[74537d8d26024c04]::ErrorReported>, rustc_driver[d30cc2cf7248222d]::run_compiler::{closure#1}>::{closure#0}>
                               at /home/ymt/abuild2/rustc-1.60.0-src/compiler/rustc_span/src/lib.rs:111:5
  35:           0x61754c - rustc_interface[791e2fcbc78be80d]::util::run_in_thread_pool_with_globals::<rustc_interface[791e2fcbc78be80d]::interface::run_compiler<core[25cbc20583a8aedc]::result::Result<(), rustc_errors[74537d8d26024c04]::ErrorReported>, rustc_driver[d30cc2cf7248222d]::run_compiler::{closure#1}>::{closure#0}, core[25cbc20583a8aedc]::result::Result<(), rustc_errors[74537d8d26024c04]::ErrorReported>>::{closure#0}
                               at /home/ymt/abuild2/rustc-1.60.0-src/compiler/rustc_interface/src/util.rs:148:32
  36:           0x61754c - std[e7210e0781cf881e]::sys_common::backtrace::__rust_begin_short_backtrace::<rustc_interface[791e2fcbc78be80d]::util::run_in_thread_pool_with_globals<rustc_interface[791e2fcbc78be80d]::interface::run_compiler<core[25cbc20583a8aedc]::result::Result<(), rustc_errors[74537d8d26024c04]::ErrorReported>, rustc_driver[d30cc2cf7248222d]::run_compiler::{closure#1}>::{closure#0}, core[25cbc20583a8aedc]::result::Result<(), rustc_errors[74537d8d26024c04]::ErrorReported>>::{closure#0}, core[25cbc20583a8aedc]::result::Result<(), rustc_errors[74537d8d26024c04]::ErrorReported>>
                               at /home/ymt/abuild2/rustc-1.60.0-src/library/std/src/sys_common/backtrace.rs:122:18
  37:           0x60c12c - <std[e7210e0781cf881e]::thread::Builder>::spawn_unchecked_::<rustc_interface[791e2fcbc78be80d]::util::run_in_thread_pool_with_globals<rustc_interface[791e2fcbc78be80d]::interface::run_compiler<core[25cbc20583a8aedc]::result::Result<(), rustc_errors[74537d8d26024c04]::ErrorReported>, rustc_driver[d30cc2cf7248222d]::run_compiler::{closure#1}>::{closure#0}, core[25cbc20583a8aedc]::result::Result<(), rustc_errors[74537d8d26024c04]::ErrorReported>>::{closure#0}, core[25cbc20583a8aedc]::result::Result<(), rustc_errors[74537d8d26024c04]::ErrorReported>>::{closure#1}::{closure#0}
                               at /home/ymt/abuild2/rustc-1.60.0-src/library/std/src/thread/mod.rs:498:17
  38:           0x60c12c - <core[25cbc20583a8aedc]::panic::unwind_safe::AssertUnwindSafe<<std[e7210e0781cf881e]::thread::Builder>::spawn_unchecked_<rustc_interface[791e2fcbc78be80d]::util::run_in_thread_pool_with_globals<rustc_interface[791e2fcbc78be80d]::interface::run_compiler<core[25cbc20583a8aedc]::result::Result<(), rustc_errors[74537d8d26024c04]::ErrorReported>, rustc_driver[d30cc2cf7248222d]::run_compiler::{closure#1}>::{closure#0}, core[25cbc20583a8aedc]::result::Result<(), rustc_errors[74537d8d26024c04]::ErrorReported>>::{closure#0}, core[25cbc20583a8aedc]::result::Result<(), rustc_errors[74537d8d26024c04]::ErrorReported>>::{closure#1}::{closure#0}> as core[25cbc20583a8aedc]::ops::function::FnOnce<()>>::call_once
                               at /home/ymt/abuild2/rustc-1.60.0-src/library/core/src/panic/unwind_safe.rs:271:9
  39:           0x60c12c - std[e7210e0781cf881e]::panicking::try::do_call::<core[25cbc20583a8aedc]::panic::unwind_safe::AssertUnwindSafe<<std[e7210e0781cf881e]::thread::Builder>::spawn_unchecked_<rustc_interface[791e2fcbc78be80d]::util::run_in_thread_pool_with_globals<rustc_interface[791e2fcbc78be80d]::interface::run_compiler<core[25cbc20583a8aedc]::result::Result<(), rustc_errors[74537d8d26024c04]::ErrorReported>, rustc_driver[d30cc2cf7248222d]::run_compiler::{closure#1}>::{closure#0}, core[25cbc20583a8aedc]::result::Result<(), rustc_errors[74537d8d26024c04]::ErrorReported>>::{closure#0}, core[25cbc20583a8aedc]::result::Result<(), rustc_errors[74537d8d26024c04]::ErrorReported>>::{closure#1}::{closure#0}>, core[25cbc20583a8aedc]::result::Result<(), rustc_errors[74537d8d26024c04]::ErrorReported>>
                               at /home/ymt/abuild2/rustc-1.60.0-src/library/std/src/panicking.rs:492:40
  40:           0x60c12c - std[e7210e0781cf881e]::panicking::try::<core[25cbc20583a8aedc]::result::Result<(), rustc_errors[74537d8d26024c04]::ErrorReported>, core[25cbc20583a8aedc]::panic::unwind_safe::AssertUnwindSafe<<std[e7210e0781cf881e]::thread::Builder>::spawn_unchecked_<rustc_interface[791e2fcbc78be80d]::util::run_in_thread_pool_with_globals<rustc_interface[791e2fcbc78be80d]::interface::run_compiler<core[25cbc20583a8aedc]::result::Result<(), rustc_errors[74537d8d26024c04]::ErrorReported>, rustc_driver[d30cc2cf7248222d]::run_compiler::{closure#1}>::{closure#0}, core[25cbc20583a8aedc]::result::Result<(), rustc_errors[74537d8d26024c04]::ErrorReported>>::{closure#0}, core[25cbc20583a8aedc]::result::Result<(), rustc_errors[74537d8d26024c04]::ErrorReported>>::{closure#1}::{closure#0}>>
                               at /home/ymt/abuild2/rustc-1.60.0-src/library/std/src/panicking.rs:456:19
  41:           0x60f5e0 - std[e7210e0781cf881e]::panic::catch_unwind::<core[25cbc20583a8aedc]::panic::unwind_safe::AssertUnwindSafe<<std[e7210e0781cf881e]::thread::Builder>::spawn_unchecked_<rustc_interface[791e2fcbc78be80d]::util::run_in_thread_pool_with_globals<rustc_interface[791e2fcbc78be80d]::interface::run_compiler<core[25cbc20583a8aedc]::result::Result<(), rustc_errors[74537d8d26024c04]::ErrorReported>, rustc_driver[d30cc2cf7248222d]::run_compiler::{closure#1}>::{closure#0}, core[25cbc20583a8aedc]::result::Result<(), rustc_errors[74537d8d26024c04]::ErrorReported>>::{closure#0}, core[25cbc20583a8aedc]::result::Result<(), rustc_errors[74537d8d26024c04]::ErrorReported>>::{closure#1}::{closure#0}>, core[25cbc20583a8aedc]::result::Result<(), rustc_errors[74537d8d26024c04]::ErrorReported>>
                               at /home/ymt/abuild2/rustc-1.60.0-src/library/std/src/panic.rs:137:14
  42:           0x60f5e0 - <std[e7210e0781cf881e]::thread::Builder>::spawn_unchecked_::<rustc_interface[791e2fcbc78be80d]::util::run_in_thread_pool_with_globals<rustc_interface[791e2fcbc78be80d]::interface::run_compiler<core[25cbc20583a8aedc]::result::Result<(), rustc_errors[74537d8d26024c04]::ErrorReported>, rustc_driver[d30cc2cf7248222d]::run_compiler::{closure#1}>::{closure#0}, core[25cbc20583a8aedc]::result::Result<(), rustc_errors[74537d8d26024c04]::ErrorReported>>::{closure#0}, core[25cbc20583a8aedc]::result::Result<(), rustc_errors[74537d8d26024c04]::ErrorReported>>::{closure#1}
                               at /home/ymt/abuild2/rustc-1.60.0-src/library/std/src/thread/mod.rs:497:30
  43:           0x60f5e0 - <<std[e7210e0781cf881e]::thread::Builder>::spawn_unchecked_<rustc_interface[791e2fcbc78be80d]::util::run_in_thread_pool_with_globals<rustc_interface[791e2fcbc78be80d]::interface::run_compiler<core[25cbc20583a8aedc]::result::Result<(), rustc_errors[74537d8d26024c04]::ErrorReported>, rustc_driver[d30cc2cf7248222d]::run_compiler::{closure#1}>::{closure#0}, core[25cbc20583a8aedc]::result::Result<(), rustc_errors[74537d8d26024c04]::ErrorReported>>::{closure#0}, core[25cbc20583a8aedc]::result::Result<(), rustc_errors[74537d8d26024c04]::ErrorReported>>::{closure#1} as core[25cbc20583a8aedc]::ops::function::FnOnce<()>>::call_once::{shim:vtable#0}
                               at /home/ymt/abuild2/rustc-1.60.0-src/library/core/src/ops/function.rs:227:5
  44:          0x351635c - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::h416b1b13623acd5e
                               at /home/ymt/abuild2/rustc-1.60.0-src/library/alloc/src/boxed.rs:1853:9
  45:          0x351635c - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::h13da4b5f6df715f7
                               at /home/ymt/abuild2/rustc-1.60.0-src/library/alloc/src/boxed.rs:1853:9
  46:          0x351635c - std::sys::unix::thread::Thread::new::thread_start::h565fb63c7ba409c2
                               at /home/ymt/abuild2/rustc-1.60.0-src/library/std/src/sys/unix/thread.rs:108:17
  47:          0x3543014 - start
                               at /home/workspace/bulid_sdk_all/build/tmp/work-shared/hm-libc-source/git/src/thread/pthread_create.c:254

error: internal compiler error: unexpected panic

note: 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.60.0 running on aarch64-unknown-linux-musl

note: compiler flags: -C link-args=-lhmulibs -lhmsrv_net -lhmsrv_fs -lhwsecurec

query stack during panic:
end of query stack