Skip to content

Crash report #140382

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
gaykitty opened this issue May 17, 2025 · 2 comments
Open

Crash report #140382

gaykitty opened this issue May 17, 2025 · 2 comments
Labels
crash Prefer [crash-on-valid] or [crash-on-invalid] lld:MachO

Comments

@gaykitty
Copy link

This crashed happen in a build of a Rust project on macOS in github CI.

https://github.com/EFForg/rayhunter/actions/runs/15087128975/job/42411142264?pr=324

error: linking with `rust-lld` failed: signal: 6 (SIGABRT)
  |
  = note:  "rust-lld" "-flavor" "darwin" "/var/folders/q7/x09_16xd767gr8lwc56pjb_m0000gn/T/rustc1SiTMN/symbols.o" "<17 object files omitted>" "/Users/runner/work/rayhunter/rayhunter/target/x86_64-apple-darwin/release/deps/{libmd5-2faad8e9d7e753b4.rlib,libreqwest-8ad6a1bc87ba3b60.rlib,libipnet-44da52a0118d7a98.rlib,liburl-de8cea8c202df651.rlib,libidna-4add8d47501cf5a8.rlib,libutf8_iter-bb55f034f6eba6fa.rlib,libidna_adapter-7955641a7cc6e976.rlib,libicu_properties-790857676f9bdc0f.rlib,libicu_properties_data-c32bf8dc20b9a540.rlib,libicu_normalizer-2fb66d9585544670.rlib,libicu_normalizer_data-6f65feee3a3460d3.rlib,libicu_collections-9b0022b8b85cf646.rlib,libpotential_utf-4020423f5394ec17.rlib,libicu_provider-ac373ced4e58066c.rlib,libicu_locale_core-f2781ad3097a4c8a.rlib,libtinystr-fd7b1ef28923f310.rlib,liblitemap-b7f8c2be7dcbd9bc.rlib,libwriteable-2e06b79956baee01.rlib,libzerovec-1c7c179f2414d6f8.rlib,libzerotrie-523749c2a263f131.rlib,libyoke-449a4b504dddd0e0.rlib,libstable_deref_trait-93b083e80a719abb.rlib,libzerofrom-dd5b2bf0e418c974.rlib,libaxum-92c866ca4b475071.rlib,libserde_json-4d77e930548662fb.rlib,libserde_path_to_error-40ebf8dd8fba89c6.rlib,libserde_urlencoded-99423eb8caee6e10.rlib,libryu-8a9daec3b151ae75.rlib,libform_urlencoded-79cce4c178e824ae.rlib,libpercent_encoding-4cafd79b9ce690cd.rlib,libhyper_util-0f748494f4a0c9c7.rlib,libhyper-17b95e28392eb41e.rlib,libwant-1dfd928b7bb0fe5e.rlib,libtry_lock-e8f44fdf0be80442.rlib,libhttparse-22f9f22f2f2a8b6c.rlib,libhttpdate-e6740acea22ed606.rlib,libmatchit-0072bf1927e9bd48.rlib,libaxum_core-920575d966a926f4.rlib,libmime-b85d40b12e6cf0be.rlib,libhttp_body_util-cafd441ef22c9a26.rlib,libhttp_body-dd07484037d0482e.rlib,libhttp-7d40c0d86b1c7358.rlib,libitoa-3c5a5f20a1b773a8.rlib,libfnv-b26280dd55f788f6.rlib,libtracing-c7dce1314e9c3038.rlib,libtracing_core-f2b8a59739b001a7.rlib,libonce_cell-8b4f4a38f23f9210.rlib,libtower-be1e9de72eebb4f9.rlib,libsync_wrapper-5bf7298140c3f030.rlib,libfutures_util-dc5a3e4279d8ddfa.rlib,libfutures_io-359c9d706b0d79e8.rlib,libfutures_channel-d2cc2f9b205e8fc2.rlib,libfutures_task-84e5ec8e6c3c6f4e.rlib,libpin_utils-9ca5a96a3beaa4b7.rlib,libtower_layer-149526b9c9d4e454.rlib,libtower_service-8c9309fab0ac3f00.rlib,libtokio-9dc6423f97bbc33b.rlib,libsignal_hook_registry-c9ad24d8ad1a5857.rlib,libbytes-4f79e09fd44026aa.rlib,libparking_lot-e15facaae15f7e05.rlib,libparking_lot_core-380287f7bcccd8a3.rlib,libpin_project_lite-9bb39bca80c232e2.rlib,libsha2-b0e3f39470e5fc1f.rlib,libnusb-c970934e3b2ce336.rlib,libslab-eed97e89d86ba082.rlib,libatomic_waker-cb9a97dead980a13.rlib,libcore_foundation-a03ffe7067d4ed09.rlib,libio_kit_sys-d822f681448be29c.rlib,libmach2-fd5e7b49ac1a947c.rlib,libadb_client-a185852555c0a6f6.rlib,libregex-5f08846aa101b35a.rlib,libregex_automata-9f22e66b350d72a3.rlib,libaho_corasick-2a4f7c02b5c03338.rlib,libregex_syntax-1252cb9e467d5f37.rlib,libhomedir-d606cad7675b8396.rlib,libnix-7744803928e34913.rlib,libbitflags-48fb50059e1296d2.rlib,libsha1-99c8182e14968d71.rlib,libcpufeatures-8bbf4fed08b316ad.rlib,libbincode-edde750a077ba5b2.rlib,librusb-46968232bd90944b.rlib,liblibusb1_sys-62a27c2785a4b138.rlib,libchrono-09c3a40e3b6be333.rlib,libiana_time_zone-176601213f10a8d3.rlib,libcore_foundation_sys-6495c7c7d137b6d7.rlib,libmdns_sd-69a064b4b9583823.rlib,libfastrand-37370a6d85f469e8.rlib,libsocket2-a29f34fafa751eea.rlib,libmio-5e952ffc7b77c216.rlib,libflume-6df6ee1040b85b11.rlib,libfutures_sink-76444bcff38a8720.rlib,libfutures_core-42d5c33039da9da0.rlib,libif_addrs-6f7d2667a90296ed.rlib,libthiserror-1bdb29b3d3ffa1e0.rlib,librsa-51953797f2affe14.rlib,libpkcs1-bdce70e97ea0e2d6.rlib,libpkcs8-6b147e8e9e1b0244.rlib,libspki-4d39a071a15c2619.rlib,libder-9e98bb95ca053e0b.rlib,libpem_rfc7468-7b6e738e091941df.rlib,libbase64ct-82ab287feb25b7f7.rlib,libsubtle-267b4a3a1056b264.rlib,libsignature-110200ca01cd7d5c.rlib,libdigest-de28a235deab3c4e.rlib,libconst_oid-89e8763b29c24229.rlib,libblock_buffer-0b3de20d1170de38.rlib,libcrypto_common-930687bb5c1496d4.rlib,libgeneric_array-f2adb61a07734152.rlib,libtypenum-c74dead6fc0a0e2a.rlib,libnum_bigint_dig-c81517fd8c191a99.rlib,libnum_iter-5e66b952215fd1d8.rlib,librand-16766a38f35ccd43.rlib,librand_chacha-b823db9e2e5a508f.rlib,librand_core-4eed3838ed2fab3b.rlib,libgetrandom-9bca90dd97867205.rlib,libzeroize-56fabaa28eb32ee1.rlib,liblazy_static-92ef96689b9bb063.rlib,libspin-1acbbf5fa8de3f8b.rlib,liblock_api-b4b47b8253662755.rlib,libscopeguard-161ca0d39ffb5902.rlib,libbase64-013cefe28e0b47c0.rlib,libserde-9fee12018856f321.rlib,librand-628e32a14dd3a542.rlib,librand_chacha-d9aef6caf9af84d8.rlib,libppv_lite86-d96e8888b88a6a2a.rlib,libzerocopy-4e3b8d06e4748653.rlib,librand_core-67000329439c5306.rlib,libgetrandom-818dbc4496241ee7.rlib,liblibc-52bb2fbd53dedfc6.rlib,libbyteorder-09e1ea117886ae75.rlib,libimage-6ecbc1c1ba61885f.rlib,libimage_webp-119d586f1c29f913.rlib,libqoi-6c82b6f697faabd4.rlib,libpng-46c20e79dc6166c5.rlib,libbitflags-6015c45a463e919c.rlib,libfdeflate-fb601a9137c562e8.rlib,libexr-994d5336078bf63e.rlib,libzune_inflate-74f5a7320913ce11.rlib,libbit_field-d0681504a8115bd2.rlib,liblebe-350eee690a8561df.rlib,libhalf-b5c08d0096c77012.rlib,libsmallvec-10cde4a8c8f0c797.rlib,libzune_jpeg-592c908b3478b619.rlib,libzune_core-59ca04834bbd14fe.rlib,libgif-dbe02029978cc070.rlib,libcolor_quant-22a0739f7231c3f6.rlib,libbyteorder_lite-8c55b696e9e80157.rlib,libravif-3fdeedc5f83583a6.rlib,libloop9-71f3cff6dfd6f5db.rlib,libavif_serialize-97127290d938fe16.rlib,libquick_error-199e4269ca689953.rlib,librgb-f3e399266f967b1a.rlib,librav1e-17807609fc34cb25.rlib,libprofiling-0ff1dd210d52a787.rlib,libav1_grain-cae58bf72fe8963a.rlib,libnom-bdc2dcc2c485d656.rlib,libmemchr-d7c04c2a6d8a391e.rlib,libnum_rational-851c299654cfd17d.rlib,libnum_bigint-0b2406fbae6694c5.rlib,libnum_integer-2a279cb1ad11c57d.rlib,libdebug_unreachable-6c191e0d9b269366.rlib,libmaybe_rayon-9cd43457926f1aa6.rlib,librayon-050ddff11ed625f4.rlib,librayon_core-7914bd89f95ab8cc.rlib,libcrossbeam_deque-be7dfcca91c26a8e.rlib,libcrossbeam_epoch-400f5fba10476394.rlib,libcrossbeam_utils-0211e8ad8bf378c4.rlib,libv_frame-d212cd6f109a4e61.rlib,libaligned_vec-506a3a6bd5b27683.rlib,libarrayvec-204c68caead97967.rlib,libthiserror-cdf06fea209a00ca.rlib,libbitstream_io-c3aefdc5764c57c7.rlib,libitertools-fbcda3c0baaa3747.rlib,libeither-71f141448f2e540f.rlib,liblog-38fb6523aaf0d65a.rlib,libimgref-1ca2b8fea46ce305.rlib,libbytemuck-999a41366aefd288.rlib,libnum_traits-88c204ecd2d0bdd8.rlib,libtiff-27e559703c1d4632.rlib,libflate2-62244a24d257efd3.rlib,libminiz_oxide-8d3c0228e646c42c.rlib,libsimd_adler32-0281c860a3c8ffab.rlib,libcrc32fast-e21188af23fdce7b.rlib,libcfg_if-f3fae18cddc9ca4f.rlib,libweezl-be0529f645eaf7ba.rlib,libjpeg_decoder-3fab296383a6bfb4.rlib,libclap-fb8d9a1f734e5bc0.rlib,libclap_builder-c45644eef337c820.rlib,libstrsim-a2d497e8a1fbf1d4.rlib,libanstream-69558a01ae8573b5.rlib,libanstyle_query-0f11f98fd0b86f10.rlib,libis_terminal_polyfill-03aa86f9f5a53668.rlib,libcolorchoice-d902c068683e79c4.rlib,libanstyle_parse-481ae4667727a7a7.rlib,libutf8parse-f0309a0d2f37140d.rlib,libclap_lex-b474af8349443f50.rlib,libanstyle-0a70eca2880de8a0.rlib,libanyhow-b19d40665ed10a99.rlib}.rlib" "<sysroot>/lib/rustlib/x86_64-apple-darwin/lib/{libstd-*,libpanic_unwind-*,libobject-*,libmemchr-*,libaddr2line-*,libgimli-*,librustc_demangle-*,libstd_detect-*,libhashbrown-*,librustc_std_workspace_alloc-*,libminiz_oxide-*,libadler2-*,libunwind-*,libcfg_if-*,liblibc-*,liballoc-*,librustc_std_workspace_core-*,libcore-*,libcompiler_builtins-*}.rlib" "-framework" "IOKit" "-framework" "CoreFoundation" "-framework" "IOKit" "-framework" "Security" "-framework" "CoreFoundation" "-liconv" "-lSystem" "-lc" "-lm" "-arch" "x86_64" "-platform_version" "macos" "10.12.0" "10.12.0" "-syslibroot" "/Applications/Xcode_15.2.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.2.sdk" "-L" "/Users/runner/work/rayhunter/rayhunter/target/x86_64-apple-darwin/release/build/libusb1-sys-2c44af8bc862fcd8/out" "-o" "/Users/runner/work/rayhunter/rayhunter/target/x86_64-apple-darwin/release/deps/installer-082b780f416a4a52" "-dead_strip"
  = note: some arguments are omitted. use `--verbose` to show all linker arguments
  = note: rust-lld: warning: /Users/runner/work/rayhunter/rayhunter/target/x86_64-apple-darwin/release/deps/liblibusb1_sys-62a27c2785a4b138.rlib(ec765896ae0fed97-core.o) has version 14.2.0, which is newer than target minimum of 10.12.0
          rust-lld: warning: /Users/runner/work/rayhunter/rayhunter/target/x86_64-apple-darwin/release/deps/liblibusb1_sys-62a27c2785a4b138.rlib(285c3a87414af4c4-darwin_usb.o) has version 14.2.0, which is newer than target minimum of 10.12.0
          rust-lld: warning: /Users/runner/work/rayhunter/rayhunter/target/x86_64-apple-darwin/release/deps/liblibusb1_sys-62a27c2785a4b138.rlib(285c3a87414af4c4-events_posix.o) has version 14.2.0, which is newer than target minimum of 10.12.0
          rust-lld: warning: /Users/runner/work/rayhunter/rayhunter/target/x86_64-apple-darwin/release/deps/liblibusb1_sys-62a27c2785a4b138.rlib(285c3a87414af4c4-threads_posix.o) has version 14.2.0, which is newer than target minimum of 10.12.0
          rust-lld: warning: /Users/runner/work/rayhunter/rayhunter/target/x86_64-apple-darwin/release/deps/liblibusb1_sys-62a27c2785a4b138.rlib(ec765896ae0fed97-descriptor.o) has version 14.2.0, which is newer than target minimum of 10.12.0
          rust-lld: warning: /Users/runner/work/rayhunter/rayhunter/target/x86_64-apple-darwin/release/deps/liblibusb1_sys-62a27c2785a4b138.rlib(ec765896ae0fed97-hotplug.o) has version 14.2.0, which is newer than target minimum of 10.12.0
          rust-lld: warning: /Users/runner/work/rayhunter/rayhunter/target/x86_64-apple-darwin/release/deps/liblibusb1_sys-62a27c2785a4b138.rlib(ec765896ae0fed97-io.o) has version 14.2.0, which is newer than target minimum of 10.12.0
          rust-lld: warning: /Users/runner/work/rayhunter/rayhunter/target/x86_64-apple-darwin/release/deps/liblibusb1_sys-62a27c2785a4b138.rlib(ec765896ae0fed97-sync.o) has version 14.2.0, which is newer than target minimum of 10.12.0
          PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace.
          Stack dump without symbol names (ensure you have llvm-symbolizer in your PATH or set the environment var `LLVM_SYMBOLIZER_PATH` to point to it):
          0  rust-lld                 0x000000010a6836c7 llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) + 39
          1  rust-lld                 0x000000010a681748 llvm::sys::RunSignalHandlers() + 248
          2  rust-lld                 0x000000010a683da0 SignalHandler(int) + 272
          3  libsystem_platform.dylib 0x00007ff807d055ed _sigtramp + 29
          4  libsystem_platform.dylib 0x0000000000000040 _sigtramp + 18446603370449840752
          5  libsystem_c.dylib        0x00007ff807bfeb45 abort + 123
          6  rust-lld                 0x000000010a9ffa7c lld::macho::WordLiteralSection::getLiteral8Offset(unsigned long) const + 396
          7  rust-lld                 0x000000010a9ff740 lld::macho::WordLiteralInputSection::getOffset(unsigned long long) const + 80
          8  rust-lld                 0x000000010a9fe6e3 lld::macho::ConcatInputSection::writeTo(unsigned char*) + 147
          9  rust-lld                 0x000000010a9c1204 lld::macho::TextOutputSection::writeTo(unsigned char*) const + 164
          10 rust-lld                 0x000000010a605bed std::__1::__function::__func<llvm::parallelFor(unsigned long, unsigned long, llvm::function_ref<void (unsigned long)>)::$_1, std::__1::allocator<llvm::parallelFor(unsigned long, unsigned long, llvm::function_ref<void (unsigned long)>)::$_1>, void ()>::operator()() + 45
          11 rust-lld                 0x000000010a605aed std::__1::__function::__func<llvm::parallel::TaskGroup::spawn(std::__1::function<void ()>)::$_0, std::__1::allocator<llvm::parallel::TaskGroup::spawn(std::__1::function<void ()>)::$_0>, void ()>::operator()() + 29
          12 rust-lld                 0x000000010a60561f llvm::parallel::detail::(anonymous namespace)::ThreadPoolExecutor::work(llvm::ThreadPoolStrategy, unsigned int) + 367
          13 rust-lld                 0x000000010a6056d1 void* std::__1::__thread_proxy[abi:v15007]<std::__1::tuple<std::__1::unique_ptr<std::__1::__thread_struct, std::__1::default_delete<std::__1::__thread_struct>>, llvm::parallel::detail::(anonymous namespace)::ThreadPoolExecutor::ThreadPoolExecutor(llvm::ThreadPoolStrategy)::'lambda'()::operator()() const::'lambda'()>>(void*) + 49
          14 libsystem_pthread.dylib  0x00007ff807cd81d3 _pthread_start + 125
          15 libsystem_pthread.dylib  0x00007ff807cd3bd3 thread_start + 15
@EugeneZelenko EugeneZelenko added lld:MachO crash Prefer [crash-on-valid] or [crash-on-invalid] and removed new issue labels May 17, 2025
@llvmbot
Copy link
Member

llvmbot commented May 17, 2025

@llvm/issue-subscribers-lld-macho

Author: Sashanoraa (gaykitty)

This crashed happen in a build of a Rust project on macOS in github CI.

https://github.com/EFForg/rayhunter/actions/runs/15087128975/job/42411142264?pr=324

error: linking with `rust-lld` failed: signal: 6 (SIGABRT)
  |
  = note:  "rust-lld" "-flavor" "darwin" "/var/folders/q7/x09_16xd767gr8lwc56pjb_m0000gn/T/rustc1SiTMN/symbols.o" "&lt;17 object files omitted&gt;" "/Users/runner/work/rayhunter/rayhunter/target/x86_64-apple-darwin/release/deps/{libmd5-2faad8e9d7e753b4.rlib,libreqwest-8ad6a1bc87ba3b60.rlib,libipnet-44da52a0118d7a98.rlib,liburl-de8cea8c202df651.rlib,libidna-4add8d47501cf5a8.rlib,libutf8_iter-bb55f034f6eba6fa.rlib,libidna_adapter-7955641a7cc6e976.rlib,libicu_properties-790857676f9bdc0f.rlib,libicu_properties_data-c32bf8dc20b9a540.rlib,libicu_normalizer-2fb66d9585544670.rlib,libicu_normalizer_data-6f65feee3a3460d3.rlib,libicu_collections-9b0022b8b85cf646.rlib,libpotential_utf-4020423f5394ec17.rlib,libicu_provider-ac373ced4e58066c.rlib,libicu_locale_core-f2781ad3097a4c8a.rlib,libtinystr-fd7b1ef28923f310.rlib,liblitemap-b7f8c2be7dcbd9bc.rlib,libwriteable-2e06b79956baee01.rlib,libzerovec-1c7c179f2414d6f8.rlib,libzerotrie-523749c2a263f131.rlib,libyoke-449a4b504dddd0e0.rlib,libstable_deref_trait-93b083e80a719abb.rlib,libzerofrom-dd5b2bf0e418c974.rlib,libaxum-92c866ca4b475071.rlib,libserde_json-4d77e930548662fb.rlib,libserde_path_to_error-40ebf8dd8fba89c6.rlib,libserde_urlencoded-99423eb8caee6e10.rlib,libryu-8a9daec3b151ae75.rlib,libform_urlencoded-79cce4c178e824ae.rlib,libpercent_encoding-4cafd79b9ce690cd.rlib,libhyper_util-0f748494f4a0c9c7.rlib,libhyper-17b95e28392eb41e.rlib,libwant-1dfd928b7bb0fe5e.rlib,libtry_lock-e8f44fdf0be80442.rlib,libhttparse-22f9f22f2f2a8b6c.rlib,libhttpdate-e6740acea22ed606.rlib,libmatchit-0072bf1927e9bd48.rlib,libaxum_core-920575d966a926f4.rlib,libmime-b85d40b12e6cf0be.rlib,libhttp_body_util-cafd441ef22c9a26.rlib,libhttp_body-dd07484037d0482e.rlib,libhttp-7d40c0d86b1c7358.rlib,libitoa-3c5a5f20a1b773a8.rlib,libfnv-b26280dd55f788f6.rlib,libtracing-c7dce1314e9c3038.rlib,libtracing_core-f2b8a59739b001a7.rlib,libonce_cell-8b4f4a38f23f9210.rlib,libtower-be1e9de72eebb4f9.rlib,libsync_wrapper-5bf7298140c3f030.rlib,libfutures_util-dc5a3e4279d8ddfa.rlib,libfutures_io-359c9d706b0d79e8.rlib,libfutures_channel-d2cc2f9b205e8fc2.rlib,libfutures_task-84e5ec8e6c3c6f4e.rlib,libpin_utils-9ca5a96a3beaa4b7.rlib,libtower_layer-149526b9c9d4e454.rlib,libtower_service-8c9309fab0ac3f00.rlib,libtokio-9dc6423f97bbc33b.rlib,libsignal_hook_registry-c9ad24d8ad1a5857.rlib,libbytes-4f79e09fd44026aa.rlib,libparking_lot-e15facaae15f7e05.rlib,libparking_lot_core-380287f7bcccd8a3.rlib,libpin_project_lite-9bb39bca80c232e2.rlib,libsha2-b0e3f39470e5fc1f.rlib,libnusb-c970934e3b2ce336.rlib,libslab-eed97e89d86ba082.rlib,libatomic_waker-cb9a97dead980a13.rlib,libcore_foundation-a03ffe7067d4ed09.rlib,libio_kit_sys-d822f681448be29c.rlib,libmach2-fd5e7b49ac1a947c.rlib,libadb_client-a185852555c0a6f6.rlib,libregex-5f08846aa101b35a.rlib,libregex_automata-9f22e66b350d72a3.rlib,libaho_corasick-2a4f7c02b5c03338.rlib,libregex_syntax-1252cb9e467d5f37.rlib,libhomedir-d606cad7675b8396.rlib,libnix-7744803928e34913.rlib,libbitflags-48fb50059e1296d2.rlib,libsha1-99c8182e14968d71.rlib,libcpufeatures-8bbf4fed08b316ad.rlib,libbincode-edde750a077ba5b2.rlib,librusb-46968232bd90944b.rlib,liblibusb1_sys-62a27c2785a4b138.rlib,libchrono-09c3a40e3b6be333.rlib,libiana_time_zone-176601213f10a8d3.rlib,libcore_foundation_sys-6495c7c7d137b6d7.rlib,libmdns_sd-69a064b4b9583823.rlib,libfastrand-37370a6d85f469e8.rlib,libsocket2-a29f34fafa751eea.rlib,libmio-5e952ffc7b77c216.rlib,libflume-6df6ee1040b85b11.rlib,libfutures_sink-76444bcff38a8720.rlib,libfutures_core-42d5c33039da9da0.rlib,libif_addrs-6f7d2667a90296ed.rlib,libthiserror-1bdb29b3d3ffa1e0.rlib,librsa-51953797f2affe14.rlib,libpkcs1-bdce70e97ea0e2d6.rlib,libpkcs8-6b147e8e9e1b0244.rlib,libspki-4d39a071a15c2619.rlib,libder-9e98bb95ca053e0b.rlib,libpem_rfc7468-7b6e738e091941df.rlib,libbase64ct-82ab287feb25b7f7.rlib,libsubtle-267b4a3a1056b264.rlib,libsignature-110200ca01cd7d5c.rlib,libdigest-de28a235deab3c4e.rlib,libconst_oid-89e8763b29c24229.rlib,libblock_buffer-0b3de20d1170de38.rlib,libcrypto_common-930687bb5c1496d4.rlib,libgeneric_array-f2adb61a07734152.rlib,libtypenum-c74dead6fc0a0e2a.rlib,libnum_bigint_dig-c81517fd8c191a99.rlib,libnum_iter-5e66b952215fd1d8.rlib,librand-16766a38f35ccd43.rlib,librand_chacha-b823db9e2e5a508f.rlib,librand_core-4eed3838ed2fab3b.rlib,libgetrandom-9bca90dd97867205.rlib,libzeroize-56fabaa28eb32ee1.rlib,liblazy_static-92ef96689b9bb063.rlib,libspin-1acbbf5fa8de3f8b.rlib,liblock_api-b4b47b8253662755.rlib,libscopeguard-161ca0d39ffb5902.rlib,libbase64-013cefe28e0b47c0.rlib,libserde-9fee12018856f321.rlib,librand-628e32a14dd3a542.rlib,librand_chacha-d9aef6caf9af84d8.rlib,libppv_lite86-d96e8888b88a6a2a.rlib,libzerocopy-4e3b8d06e4748653.rlib,librand_core-67000329439c5306.rlib,libgetrandom-818dbc4496241ee7.rlib,liblibc-52bb2fbd53dedfc6.rlib,libbyteorder-09e1ea117886ae75.rlib,libimage-6ecbc1c1ba61885f.rlib,libimage_webp-119d586f1c29f913.rlib,libqoi-6c82b6f697faabd4.rlib,libpng-46c20e79dc6166c5.rlib,libbitflags-6015c45a463e919c.rlib,libfdeflate-fb601a9137c562e8.rlib,libexr-994d5336078bf63e.rlib,libzune_inflate-74f5a7320913ce11.rlib,libbit_field-d0681504a8115bd2.rlib,liblebe-350eee690a8561df.rlib,libhalf-b5c08d0096c77012.rlib,libsmallvec-10cde4a8c8f0c797.rlib,libzune_jpeg-592c908b3478b619.rlib,libzune_core-59ca04834bbd14fe.rlib,libgif-dbe02029978cc070.rlib,libcolor_quant-22a0739f7231c3f6.rlib,libbyteorder_lite-8c55b696e9e80157.rlib,libravif-3fdeedc5f83583a6.rlib,libloop9-71f3cff6dfd6f5db.rlib,libavif_serialize-97127290d938fe16.rlib,libquick_error-199e4269ca689953.rlib,librgb-f3e399266f967b1a.rlib,librav1e-17807609fc34cb25.rlib,libprofiling-0ff1dd210d52a787.rlib,libav1_grain-cae58bf72fe8963a.rlib,libnom-bdc2dcc2c485d656.rlib,libmemchr-d7c04c2a6d8a391e.rlib,libnum_rational-851c299654cfd17d.rlib,libnum_bigint-0b2406fbae6694c5.rlib,libnum_integer-2a279cb1ad11c57d.rlib,libdebug_unreachable-6c191e0d9b269366.rlib,libmaybe_rayon-9cd43457926f1aa6.rlib,librayon-050ddff11ed625f4.rlib,librayon_core-7914bd89f95ab8cc.rlib,libcrossbeam_deque-be7dfcca91c26a8e.rlib,libcrossbeam_epoch-400f5fba10476394.rlib,libcrossbeam_utils-0211e8ad8bf378c4.rlib,libv_frame-d212cd6f109a4e61.rlib,libaligned_vec-506a3a6bd5b27683.rlib,libarrayvec-204c68caead97967.rlib,libthiserror-cdf06fea209a00ca.rlib,libbitstream_io-c3aefdc5764c57c7.rlib,libitertools-fbcda3c0baaa3747.rlib,libeither-71f141448f2e540f.rlib,liblog-38fb6523aaf0d65a.rlib,libimgref-1ca2b8fea46ce305.rlib,libbytemuck-999a41366aefd288.rlib,libnum_traits-88c204ecd2d0bdd8.rlib,libtiff-27e559703c1d4632.rlib,libflate2-62244a24d257efd3.rlib,libminiz_oxide-8d3c0228e646c42c.rlib,libsimd_adler32-0281c860a3c8ffab.rlib,libcrc32fast-e21188af23fdce7b.rlib,libcfg_if-f3fae18cddc9ca4f.rlib,libweezl-be0529f645eaf7ba.rlib,libjpeg_decoder-3fab296383a6bfb4.rlib,libclap-fb8d9a1f734e5bc0.rlib,libclap_builder-c45644eef337c820.rlib,libstrsim-a2d497e8a1fbf1d4.rlib,libanstream-69558a01ae8573b5.rlib,libanstyle_query-0f11f98fd0b86f10.rlib,libis_terminal_polyfill-03aa86f9f5a53668.rlib,libcolorchoice-d902c068683e79c4.rlib,libanstyle_parse-481ae4667727a7a7.rlib,libutf8parse-f0309a0d2f37140d.rlib,libclap_lex-b474af8349443f50.rlib,libanstyle-0a70eca2880de8a0.rlib,libanyhow-b19d40665ed10a99.rlib}.rlib" "&lt;sysroot&gt;/lib/rustlib/x86_64-apple-darwin/lib/{libstd-*,libpanic_unwind-*,libobject-*,libmemchr-*,libaddr2line-*,libgimli-*,librustc_demangle-*,libstd_detect-*,libhashbrown-*,librustc_std_workspace_alloc-*,libminiz_oxide-*,libadler2-*,libunwind-*,libcfg_if-*,liblibc-*,liballoc-*,librustc_std_workspace_core-*,libcore-*,libcompiler_builtins-*}.rlib" "-framework" "IOKit" "-framework" "CoreFoundation" "-framework" "IOKit" "-framework" "Security" "-framework" "CoreFoundation" "-liconv" "-lSystem" "-lc" "-lm" "-arch" "x86_64" "-platform_version" "macos" "10.12.0" "10.12.0" "-syslibroot" "/Applications/Xcode_15.2.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.2.sdk" "-L" "/Users/runner/work/rayhunter/rayhunter/target/x86_64-apple-darwin/release/build/libusb1-sys-2c44af8bc862fcd8/out" "-o" "/Users/runner/work/rayhunter/rayhunter/target/x86_64-apple-darwin/release/deps/installer-082b780f416a4a52" "-dead_strip"
  = note: some arguments are omitted. use `--verbose` to show all linker arguments
  = note: rust-lld: warning: /Users/runner/work/rayhunter/rayhunter/target/x86_64-apple-darwin/release/deps/liblibusb1_sys-62a27c2785a4b138.rlib(ec765896ae0fed97-core.o) has version 14.2.0, which is newer than target minimum of 10.12.0
          rust-lld: warning: /Users/runner/work/rayhunter/rayhunter/target/x86_64-apple-darwin/release/deps/liblibusb1_sys-62a27c2785a4b138.rlib(285c3a87414af4c4-darwin_usb.o) has version 14.2.0, which is newer than target minimum of 10.12.0
          rust-lld: warning: /Users/runner/work/rayhunter/rayhunter/target/x86_64-apple-darwin/release/deps/liblibusb1_sys-62a27c2785a4b138.rlib(285c3a87414af4c4-events_posix.o) has version 14.2.0, which is newer than target minimum of 10.12.0
          rust-lld: warning: /Users/runner/work/rayhunter/rayhunter/target/x86_64-apple-darwin/release/deps/liblibusb1_sys-62a27c2785a4b138.rlib(285c3a87414af4c4-threads_posix.o) has version 14.2.0, which is newer than target minimum of 10.12.0
          rust-lld: warning: /Users/runner/work/rayhunter/rayhunter/target/x86_64-apple-darwin/release/deps/liblibusb1_sys-62a27c2785a4b138.rlib(ec765896ae0fed97-descriptor.o) has version 14.2.0, which is newer than target minimum of 10.12.0
          rust-lld: warning: /Users/runner/work/rayhunter/rayhunter/target/x86_64-apple-darwin/release/deps/liblibusb1_sys-62a27c2785a4b138.rlib(ec765896ae0fed97-hotplug.o) has version 14.2.0, which is newer than target minimum of 10.12.0
          rust-lld: warning: /Users/runner/work/rayhunter/rayhunter/target/x86_64-apple-darwin/release/deps/liblibusb1_sys-62a27c2785a4b138.rlib(ec765896ae0fed97-io.o) has version 14.2.0, which is newer than target minimum of 10.12.0
          rust-lld: warning: /Users/runner/work/rayhunter/rayhunter/target/x86_64-apple-darwin/release/deps/liblibusb1_sys-62a27c2785a4b138.rlib(ec765896ae0fed97-sync.o) has version 14.2.0, which is newer than target minimum of 10.12.0
          PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace.
          Stack dump without symbol names (ensure you have llvm-symbolizer in your PATH or set the environment var `LLVM_SYMBOLIZER_PATH` to point to it):
          0  rust-lld                 0x000000010a6836c7 llvm::sys::PrintStackTrace(llvm::raw_ostream&amp;, int) + 39
          1  rust-lld                 0x000000010a681748 llvm::sys::RunSignalHandlers() + 248
          2  rust-lld                 0x000000010a683da0 SignalHandler(int) + 272
          3  libsystem_platform.dylib 0x00007ff807d055ed _sigtramp + 29
          4  libsystem_platform.dylib 0x0000000000000040 _sigtramp + 18446603370449840752
          5  libsystem_c.dylib        0x00007ff807bfeb45 abort + 123
          6  rust-lld                 0x000000010a9ffa7c lld::macho::WordLiteralSection::getLiteral8Offset(unsigned long) const + 396
          7  rust-lld                 0x000000010a9ff740 lld::macho::WordLiteralInputSection::getOffset(unsigned long long) const + 80
          8  rust-lld                 0x000000010a9fe6e3 lld::macho::ConcatInputSection::writeTo(unsigned char*) + 147
          9  rust-lld                 0x000000010a9c1204 lld::macho::TextOutputSection::writeTo(unsigned char*) const + 164
          10 rust-lld                 0x000000010a605bed std::__1::__function::__func&lt;llvm::parallelFor(unsigned long, unsigned long, llvm::function_ref&lt;void (unsigned long)&gt;)::$_1, std::__1::allocator&lt;llvm::parallelFor(unsigned long, unsigned long, llvm::function_ref&lt;void (unsigned long)&gt;)::$_1&gt;, void ()&gt;::operator()() + 45
          11 rust-lld                 0x000000010a605aed std::__1::__function::__func&lt;llvm::parallel::TaskGroup::spawn(std::__1::function&lt;void ()&gt;)::$_0, std::__1::allocator&lt;llvm::parallel::TaskGroup::spawn(std::__1::function&lt;void ()&gt;)::$_0&gt;, void ()&gt;::operator()() + 29
          12 rust-lld                 0x000000010a60561f llvm::parallel::detail::(anonymous namespace)::ThreadPoolExecutor::work(llvm::ThreadPoolStrategy, unsigned int) + 367
          13 rust-lld                 0x000000010a6056d1 void* std::__1::__thread_proxy[abi:v15007]&lt;std::__1::tuple&lt;std::__1::unique_ptr&lt;std::__1::__thread_struct, std::__1::default_delete&lt;std::__1::__thread_struct&gt;&gt;, llvm::parallel::detail::(anonymous namespace)::ThreadPoolExecutor::ThreadPoolExecutor(llvm::ThreadPoolStrategy)::'lambda'()::operator()() const::'lambda'()&gt;&gt;(void*) + 49
          14 libsystem_pthread.dylib  0x00007ff807cd81d3 _pthread_start + 125
          15 libsystem_pthread.dylib  0x00007ff807cd3bd3 thread_start + 15

@PaulDance
Copy link

PaulDance commented May 18, 2025

I think I have a similar issue:

error: linking with `/nix/store/bifga2vns5hf76cfb1wbr5lr8d8slfhw-linker.macos.x64.sh` failed: exit status: 1
  |
  = note:  "/nix/store/bifga2vns5hf76cfb1wbr5lr8d8slfhw-linker.macos.x64.sh" "/tmp/rustcaYXgov/symbols.o" "<17 object files omitted>" "[...]/target/x86_64-apple-darwin/release/deps/{libhyper_rustls-f07610807f2c83d7.rlib,libtokio_rustls-526df7b0362734ac.rlib,librustls_native_certs-563919f18a6e7ae5.rlib,libsecurity_framework-4a1a538d7667a4ce.rlib,libbitflags-281b1a480c94dd67.rlib,libcore_foundation-2b84daaa017c0167.rlib,libsecurity_framework_sys-2b7c9149fd6a41e4.rlib,libcore_foundation_sys-60b1696ce3702dac.rlib,librustls-8e3afe1e79feeb9f.rlib,libwebpki-bcc88bb68e4210e4.rlib,libring-10abf697abea0ad4.rlib,libspin-7b0bfe428ea2d38c.rlib,libuntrusted-f25c414de076e954.rlib,libzeroize-8479f46d0dd6a65f.rlib,librustls_pki_types-2c4157b067d48ddc.rlib,liblog-d48aadcb153129f0.rlib,libhex-467f398b7440ec60.rlib,libsha2-c0c16dbe5d25d085.rlib,libcpufeatures-4e4b2633c3695655.rlib,libdigest-97f0c74a2f07dd38.rlib,libsubtle-40912cabe14ceebd.rlib,libconst_oid-bd0f711cf84e2a17.rlib,libblock_buffer-0ddddc8af623c01a.rlib,libcrypto_common-c8f1ae464d1eef85.rlib,libgeneric_array-9b5dbff897dd1a56.rlib,libtypenum-86a6f5e860f5cc82.rlib,librand_core-118643f640615005.rlib,libgetrandom-b01bf1f6ceac55c0.rlib,libhyper_util-7c1b8799de06e404.rlib,libtower_service-fb7d27941edb2490.rlib,libhyper-93f67afb794db1e8.rlib,libwant-cdf59ec2b0f8c147.rlib,libtry_lock-dd2e494ef0bc8e0c.rlib,libhttparse-489e086ab74f20b8.rlib,libh2-2116f39269bc408b.rlib,libtracing-05f482a85d321710.rlib,libtracing_core-a36823b4d81ca60e.rlib,libonce_cell-9b509edc20526270.rlib,libportable_atomic-e89c75a1b7be2c13.rlib,libindexmap-a711be875c4e71ab.rlib,libequivalent-6ad3fb8f42e607d7.rlib,libhashbrown-d6aea2a0d40516ff.rlib,libfoldhash-b31ae23eff93a860.rlib,libatomic_waker-6c11f44dc2f91d3d.rlib,libtokio_util-64685ee87edd0424.rlib,libtokio-e2046677d83dbd5a.rlib,libsignal_hook_registry-3aab91735b09d923.rlib,libsocket2-a2396bbf5c1fca7f.rlib,libmio-d18d51da00b2c1ed.rlib,libparking_lot-0c7eb076b2edad19.rlib,libparking_lot_core-2188fa5c766177b9.rlib,liblibc-94a6e8bcf4016080.rlib,libcfg_if-efdaec1c3ed7b771.rlib,libsmallvec-dee9827819f31b66.rlib,liblock_api-d37ac05fac3b402d.rlib,libserde-22468fe4d5ddd37d.rlib,libscopeguard-8242ec08b68a8d33.rlib,libhttpdate-9b991596a9a0a73b.rlib,libfutures_util-cd0a036fcbdfbbab.rlib,libmemchr-7ba792d5498e867c.rlib,libfutures_io-41760a1642bd0913.rlib,libslab-2810b9bf1f72f88a.rlib,libfutures_task-6a44d9e820cc7283.rlib,libpin_utils-e05b3f296cae278e.rlib,libfutures_channel-67e710215fd6c893.rlib,libfutures_sink-e18e3abc950c1ab3.rlib,libhttp_body_util-27f6e88809022f98.rlib,libpin_project_lite-2e0077966e2abc2b.rlib,libfutures_core-f9c991cbb780c895.rlib,libhttp_body-10b9bff2b503bbad.rlib,libhttp-7eb7f33051ea1f50.rlib,libitoa-7d47c517a10d8b70.rlib,libfnv-e3a775a1da0b3888.rlib,libclap-85641ffcf3a4e80b.rlib,libclap_builder-08ea5f470e2a1e35.rlib,libstrsim-cd26a886c6e3360a.rlib,libanstream-06ed8761693e9347.rlib,libanstyle_query-11957e3ac054287a.rlib,libis_terminal_polyfill-0f221960bad7b144.rlib,libcolorchoice-b9e4dab138e2dd7b.rlib,libanstyle_parse-edeedf4a679ab954.rlib,libutf8parse-c2b89ad6ca6ae0d3.rlib,libclap_lex-7fd2dd1074cbf905.rlib,libanstyle-b769bb9e1f8fbe30.rlib,libbytes-2909a4ac8bb505ce.rlib}.rlib" "/nix/store/0zqs6k0kmfmh2hjgz5zvh9g12s0hi1zf-rust-std-1.87.0-2025-05-15/lib/rustlib/x86_64-apple-darwin/lib/{libstd-8cdabb038232a533.rlib,libpanic_unwind-2252d59e6e375884.rlib,libobject-2b5990b5193efb8d.rlib,libmemchr-b4b25cfcf33de50f.rlib,libaddr2line-b88d7c25057a0f23.rlib,libgimli-3852522f706c789d.rlib,librustc_demangle-a9493e482287de02.rlib,libstd_detect-4dac51ce570fdda2.rlib,libhashbrown-0a34a4012b304cf1.rlib,librustc_std_workspace_alloc-b3974da548822c4d.rlib,libminiz_oxide-b82e08b38292c468.rlib,libadler2-4ecefb5bef7ba362.rlib,libunwind-a50b80a436720fd5.rlib,libcfg_if-a414cebdcffcdfaa.rlib,liblibc-0948458e90c60970.rlib,liballoc-62326b1a230d9193.rlib,librustc_std_workspace_core-5077f595212494a9.rlib,libcore-25a698aa447d0078.rlib,libcompiler_builtins-fb93f18499101709.rlib}.rlib" "-framework" "Security" "-framework" "CoreFoundation" "-liconv" "-lSystem" "-lc" "-lm" "-arch" "x86_64" "-mmacosx-version-min=11.0.0" "-L" "[...]/target/x86_64-apple-darwin/release/build/ring-962dfc3263f179cf/out" "-o" "[...]/agent-rust/target/x86_64-apple-darwin/release/deps/written_file_helper-90b60f8dd5b8da84" "-Wl,-dead_strip" "-nodefaultlibs"
  = note: some arguments are omitted. use `--verbose` to show all linker arguments
  = note: terminate called after throwing an instance of 'std::out_of_range'
            what():  unordered_map::at
          PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace.
           #0 0x00007f9e77e4259c llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) (/nix/store/wrrs3jy4rs84y92i46i4arv8qx87n7wk-llvm-20.1.4-lib/lib/libLLVM.so.20.1+0x117d59c)
           #1 0x00007f9e77e3f9fa SignalHandler(int) (/nix/store/wrrs3jy4rs84y92i46i4arv8qx87n7wk-llvm-20.1.4-lib/lib/libLLVM.so.20.1+0x117a9fa)
           #2 0x00007f9e76774470 __restore_rt (/nix/store/cg9s562sa33k78m63njfn1rw47dp9z0i-glibc-2.40-66/lib/libc.so.6+0x41470)
           #3 0x00007f9e767cccdc __pthread_kill_implementation (/nix/store/cg9s562sa33k78m63njfn1rw47dp9z0i-glibc-2.40-66/lib/libc.so.6+0x99cdc)
           #4 0x00007f9e767743c6 gsignal (/nix/store/cg9s562sa33k78m63njfn1rw47dp9z0i-glibc-2.40-66/lib/libc.so.6+0x413c6)
           #5 0x00007f9e7675b93a abort (/nix/store/cg9s562sa33k78m63njfn1rw47dp9z0i-glibc-2.40-66/lib/libc.so.6+0x2893a)
           #6 0x00007f9e76b00c3d __gnu_cxx::__verbose_terminate_handler() (.cold) (/nix/store/7c0v0kbrrdc2cqgisi78jdqxn73n3401-gcc-14.2.1.20250322-lib/lib/libstdc++.so.6+0xadc3d)
           #7 0x00007f9e76b121ca __cxxabiv1::__terminate(void (*)()) (/nix/store/7c0v0kbrrdc2cqgisi78jdqxn73n3401-gcc-14.2.1.20250322-lib/lib/libstdc++.so.6+0xbf1ca)
           #8 0x00007f9e76b007e9 std::unexpected() (/nix/store/7c0v0kbrrdc2cqgisi78jdqxn73n3401-gcc-14.2.1.20250322-lib/lib/libstdc++.so.6+0xad7e9)
           #9 0x00007f9e76b12447 (/nix/store/7c0v0kbrrdc2cqgisi78jdqxn73n3401-gcc-14.2.1.20250322-lib/lib/libstdc++.so.6+0xbf447)
          #10 0x00007f9e76b0349e std::__throw_out_of_range(char const*) (/nix/store/7c0v0kbrrdc2cqgisi78jdqxn73n3401-gcc-14.2.1.20250322-lib/lib/libstdc++.so.6+0xb049e)
          #11 0x000000000087e138 lld::macho::WordLiteralInputSection::getOffset(unsigned long) const (/nix/store/g71q4p1hfx1lc3x4s90y9rc736rfxxfw-lld-20.1.4/bin/ld64.lld+0x87e138)
          #12 0x000000000087c6a0 lld::macho::ConcatInputSection::writeTo(unsigned char*) (/nix/store/g71q4p1hfx1lc3x4s90y9rc736rfxxfw-lld-20.1.4/bin/ld64.lld+0x87c6a0)
          #13 0x00000000008ec785 lld::macho::TextOutputSection::writeTo(unsigned char*) const (/nix/store/g71q4p1hfx1lc3x4s90y9rc736rfxxfw-lld-20.1.4/bin/ld64.lld+0x8ec785)
          #14 0x00007f9e77d7c7d1 std::_Function_handler<void (), llvm::parallelFor(unsigned long, unsigned long, llvm::function_ref<void (unsigned long)>)::'lambda'()>::_M_invoke(std::_Any_data const&) (/nix/store/wrrs3jy4rs84y92i46i4arv8qx87n7wk-llvm-20.1.4-lib/lib/libLLVM.so.20.1+0x10b77d1)
          #15 0x00007f9e77d7d1aa std::_Function_handler<void (), llvm::parallel::TaskGroup::spawn(std::function<void ()>)::'lambda'()>::_M_invoke(std::_Any_data const&) (/nix/store/wrrs3jy4rs84y92i46i4arv8qx87n7wk-llvm-20.1.4-lib/lib/libLLVM.so.20.1+0x10b81aa)
          #16 0x00007f9e77d7d2ea std::thread::_State_impl<std::thread::_Invoker<std::tuple<llvm::parallel::detail::(anonymous namespace)::ThreadPoolExecutor::ThreadPoolExecutor(llvm::ThreadPoolStrategy)::'lambda'()::operator()() const::'lambda'()>>>::_M_run() (/nix/store/wrrs3jy4rs84y92i46i4arv8qx87n7wk-llvm-20.1.4-lib/lib/libLLVM.so.20.1+0x10b82ea)
          #17 0x00007f9e76b40064 execute_native_thread_routine (/nix/store/7c0v0kbrrdc2cqgisi78jdqxn73n3401-gcc-14.2.1.20250322-lib/lib/libstdc++.so.6+0xed064)
          #18 0x00007f9e767cae63 start_thread (/nix/store/cg9s562sa33k78m63njfn1rw47dp9z0i-glibc-2.40-66/lib/libc.so.6+0x97e63)
          #19 0x00007f9e7684edbc __GI___clone3 (/nix/store/cg9s562sa33k78m63njfn1rw47dp9z0i-glibc-2.40-66/lib/libc.so.6+0x11bdbc)
          clang: error: unable to execute command: Aborted (core dumped)
          clang: error: linker command failed due to signal (use -v to see invocation)
          
error: could not compile `written-file-helper` (bin "written-file-helper") due to 1 previous error

where the linker script is:

for var in "$@"
do
    if [[ "$var" == "-Wl,-exported_symbols_list"* ]]; then
        list_found=1
    fi
    if [[ "$var" == "-dynamiclib" ]]; then
        isdylib=1
    fi
done

if [[ -z "$list_found" && -z "$isdylib" ]]; then
    EXTRA_ARGS="-Wl,-unexported_symbol,*"
fi

$c_compiler_x86_64_apple_darwin -fuse-ld=$LD64_LLD "$EXTRA_ARGS" "$@"

and:

  • $c_compiler_x86_64_apple_darwin is /nix/store/nwjmpwx5a7imh377lq4ffh0jzkzhcw3l-osxcross-toolchain/bin/o64-clang
  • $LD64_LLD is /nix/store/lpakw0c9hmc8cq2fcz5zrmyx4kb8vjhh-lld-19.1.7/bin/ld64.lld

set from a Nix flake environment, and:

$ $c_compiler_x86_64_apple_darwin --version
clang version 20.1.4
Target: x86_64-apple-darwin22.1
Thread model: posix
InstalledDir: /nix/store/41zihx2w1sbllavl70j7hp33r44dhrdv-clang-20.1.4/bin

and Rust 1.87.0. The error still seems to occur with LLVM 19.1.7, so it might have been brought by that Rust update, but still.

Somewhat-minified reproducer:

use bytes::Bytes;
use http_body_util::Empty;
use hyper::Uri;
use hyper_util::client::legacy::Client;
use hyper_util::rt::TokioExecutor;

#[tokio::main]
async fn main() {
    let uri = "uri".parse::<Uri>().unwrap();
    let https = hyper_rustls::HttpsConnectorBuilder::new()
        .with_native_roots()
        .unwrap()
        .https_or_http()
        .enable_http1()
        .build();
    let client: Client<_, Empty<Bytes>> = Client::builder(TokioExecutor::new()).build(https);
    let mut _resp = client.get(uri.clone()).await.unwrap();

and most specifically: removing the last line cancels the error, but that might simply be due to code elimination since the release profile is used here.

NB: The error only occurs when CARGO_PROFILE_RELEASE_DEBUG is set to anything other than none, i.e. that some debug information is included in the passed data.

The error seems quite similar, but if it is not in the end, I can split this into a separate issue if need be.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
crash Prefer [crash-on-valid] or [crash-on-invalid] lld:MachO
Projects
None yet
Development

No branches or pull requests

4 participants