MacOS + Rust/Wasm : linking with `rust-lld` failed: signal: 10 (SIGBUS)
- Dominant language
- LLVM
- Stars
- 40.5k
- Forks
- 18.7k
- PR merge metrics
- PR metrics pending
Description
- only happens to me on my Macbook, not on the Ubuntu Github runner
- only happens for the target wasm32-unknown-unknown
- is caused/introduced by using the chumsky library, which is known for introducing a huge number of symbols with long names: https://codeberg.org/zesterer/chumsky
- is fixed by stripping debug information (`rustflags = ["-C", "debuginfo=1"]`)
```
error: linking with `rust-lld` failed: signal: 10 (SIGBUS)
|
= note: "rust-lld" "-flavor" "wasm" "--export" "main" "--export" "__wbindgen_describe___wbg_URL_3fd0f7d8a07b199f" "--export" "__wbindgen_describe___wbg_accessKeyLabel_caf5e0a694cf8b7b" "--export" "__wbindgen_describe___wbg_accessKey_bc1413543cbf779f" "--export" "__wbindgen_describe___wbg_activeElement_4afc74fc207bb2f3" "--export" "__wbindgen_describe___wbg_activeTexture_b8a63f4b51a716a9" "--export" "__wbindgen_describe___wbg_activeTexture_df98f0476a8d2771" "--export" "__wbindgen_describe___wbg_activeVRDisplays_2f101290631c50b1" "--export" "__wbindgen_describe___wbg_actualBoundingBoxAscent_c13b2793c148aa23" "--export"
[ a million wbindgen lines ]
"__wbindgen_describe___wbg_toLowerCase_1ceea7014d9ca9c7" "--export" "__wbindgen_describe___wbg_toPrecision_c3c0cb7e7c36739d" "--export" "__wbindgen_describe___wbg_toPrimitive_656e7677cbae0115" "--export" "__wbindgen_describe___wbg_toReversed_3896f6f6a86ab1fb" "--export" "__wbindgen_describe___wbg_toSorted_2cc9bd2d36e69d4b" "--export" "__wbindgen_describe___wbg_toSorted_7c2a8089345bfbb6" "--export" "__wbindgen_describe___wbg_toSorted_e0e706d11cf396cd" "--export" "__wbindgen_describe___wbg_toSpliced_27c0ee4e6b243f28" "--export" "__wbindgen_describe___wbg_toStringTag_3857ae128fbad6f7" "--export" "__wbindgen_describe___wbg_toString_15656af8d8e71f16" "--export" "__wbindgen_describe___wbg_toString_17019b0bff8c693c" "--export" "__wbindgen_describe___wbg_toString_1cfad94b81087d8c" "--export" "__wbindgen_describe___wbg_toString_2d4001ac2613559d" "--export" "__wbindgen_describe___wbg_toString_52aafb720bbc56d0" "--export" "__wbindgen_describe___wbg_toString_61ec7cfd3b708e38" "--export" "__wbindgen_describe___wbg_toString_6b4f839408ba9d1f" "--export" "__wbindgen_describe___wbg_toString_7fbc0abf5c3327f5" "--export" "__wbindgen_describe___wbg_toString_84837dcf04e821c3" "--export" "__wbindgen_describe___wbg_toString_8d874489bad7e5a2" "--export" "__wbindgen_describe___wbg_toString_981d4c8c25390ca5" "--export" "__wbindgen_describe___wbg_toString_9ae74d2321992740" "--export" "__wbindgen_describe___wbg_toString_9cd714f82a876f04" "--export" "__wbindgen_describe___wbg_toString_eddfd3adcedb5998" "--export" "__wbindgen_describe___wbg_toTimeString_81432a5bd2313107" "--export" "__wbindgen_describe___wbg_toUTCString_74afa2d9edf8d00c" "--export" "__wbindgen_describe___wbg_toUpperCase_65439d1da3f84627" "--export" "__wbindgen_describe___wbg_transferToFixedLength_0e440a945df83291" "--export" "__wbindgen_describe___wbg_transferToFixedLength_b36b692dfd7a7bd8" "--export" "__wbindgen_describe___wbg_transfer_99560aefb24596a6" "--export" "__wbindgen_describe___wbg_transfer_b845c8d082d86e43" "--export" "__wbindgen_describe___wbg_trimEnd_8a25c9d43f8a83c2" "--export" "__wbindgen_describe___wbg_trimLeft_3bf45fbb7ffb3090" "--export" "__wbindgen_describe___wbg_trimRight_68adaa101ddfba23" "--export" "__wbindgen_describe___wbg_trimStart_f2c46c4962a4a117" "--export" "__wbindgen_describe___wbg_trim_831018bdc81ebf35" "--export" "__wbindgen_describe___wbg_trunc_855f64bd7dc54301" "--export" "__wbindgen_describe___wbg_type__03403f6cdbca8d19" "--export" "__wbindgen_describe___wbg_type__263169153daf2e24" "--export" "__wbindgen_describe___wbg_type__7122a09a0f54b8f8" "--export" "__wbindgen_describe___wbg_type__cb516d8c6f5236f8" "--export" "__wbindgen_describe___wbg_type__dcc93538d212b1ee" "--export" "__wbindgen_describe___wbg_unescape_ce443f909234342e" "--export" "__wbindgen_describe___wbg_unicode_42a4a48109b2fef5" "--export" "__wbindgen_describe___wbg_union_6eae0ac7699a9103" "--export" "__wbindgen_describe___wbg_unit_7d81a9cf9a94571f" "--export" "__wbindgen_describe___wbg_unit_8b6ea89897d91504" "--export" "__wbindgen_describe___wbg_unscopables_984895eeffad010f" "--export" "__wbindgen_describe___wbg_unshift_57dc0a30fb8d172e" "--export" "__wbindgen_describe___wbg_unshift_9b16c63aca63631a" "--export" "__wbindgen_describe___wbg_validate_82d2d6648c36253f" "--export" "__wbindgen_describe___wbg_valueOf_161d94b685fb0325" "--export" "__wbindgen_describe___wbg_valueOf_67fbc181e7e6159f" "--export" "__wbindgen_describe___wbg_valueOf_9303441e8d11c0c2" "--export" "__wbindgen_describe___wbg_valueOf_96c1596174cf4ec4" "--export" "__wbindgen_describe___wbg_valueOf_97805fb72a599e25" "--export" "__wbindgen_describe___wbg_valueOf_dc4cc48193068de0" "--export" "__wbindgen_describe___wbg_valueOf_fcba89a2cb999e67" "--export" "__wbindgen_describe___wbg_value_0204cedf980e8a05" "--export" "__wbindgen_describe___wbg_value_174ec8874dd0f9ab" "--export" "__wbindgen_describe___wbg_value_4a3151334f105da9" "--export" "__wbindgen_describe___wbg_value_90e6063b55f1e4ec" "--export" "__wbindgen_describe___wbg_value_b5b7b8713f0804e9" "--export" "__wbindgen_describe___wbg_value_b8268c6297edd921" "--export" "__wbindgen_describe___wbg_value_f852716acdeb3e82" "--export" "__wbindgen_describe___wbg_values_006f1144019fd973" "--export" "__wbindgen_describe___wbg_values_11e64e39625e1bef" "--export" "__wbindgen_describe___wbg_values_55b059c6d0a36ae9" "--export" "__wbindgen_describe___wbg_values_7c9634ffbd9a104f" "--export" "__wbindgen_describe___wbg_values_b6e31fa5a4b09f65" "--export" "__wbindgen_describe___wbg_waitAsync_0ba44d28302c3d80" "--export" "__wbindgen_describe___wbg_waitAsync_15a1b28819ac7024" "--export" "__wbindgen_describe___wbg_waitAsync_15cb4c9d410545c6" "--export" "__wbindgen_describe___wbg_waitAsync_9030abe29f218db1" "--export" "__wbindgen_describe___wbg_wait_060d7fabbc659026" "--export" "__wbindgen_describe___wbg_wait_0e87c62ce04dc386" "--export" "__wbindgen_describe___wbg_wait_14dee9b1fd8c3fc9" "--export" "__wbindgen_describe___wbg_wait_fa5040247f194c4f" "--export" "__wbindgen_describe___wbg_weekend_95defbcd492bd108" "--export" "__wbindgen_describe___wbg_weeks_45e2373b14db1c78" "--export" "__wbindgen_describe___wbg_with_ce243922538f4480" "--export" "__wbindgen_describe___wbg_xor_2ae3b48196f7ca84" "--export" "__wbindgen_describe___wbg_xor_543e018fdf8809e8" "--export" "__wbindgen_describe___wbg_years_dbf88fd41192bd15" "--export" "__wbg_terminaldebugapi_free" "--export" "__wbindgen_describe_terminaldebugapi_getAtlasLookup" "--export" "__wbindgen_describe_terminaldebugapi_getBaseGlyphId" "--export" "__wbindgen_describe_terminaldebugapi_getCanvasSize" "--export" "__wbindgen_describe_terminaldebugapi_getCellSize" "--export" "__wbindgen_describe_terminaldebugapi_getGlyphCount" "--export" "__wbindgen_describe_terminaldebugapi_getMissingGlyphs" "--export" "__wbindgen_describe_terminaldebugapi_getSymbol" "--export" "__wbindgen_describe_terminaldebugapi_getTerminalSize" "--export" "terminaldebugapi_getAtlasLookup" "--export" "terminaldebugapi_getBaseGlyphId" "--export" "terminaldebugapi_getCanvasSize" "--export" "terminaldebugapi_getCellSize" "--export" "terminaldebugapi_getGlyphCount" "--export" "terminaldebugapi_getMissingGlyphs" "--export" "terminaldebugapi_getSymbol" "--export" "terminaldebugapi_getTerminalSize" "--export" "__wbindgen_describe___wbg_now_e7c6795a7f81e10f" "--export" "__wbindgen_describe___wbg_performance_3fcf6e32a7e1ed0a" "--export=__heap_base" "--export=__data_end" "-z" "stack-size=1048576" "--stack-first" "--no-demangle" "--no-entry" "<257 object files omitted>" "/Users/at/Projects/incremental-code/target/wasm32-unknown-unknown/debug/deps/{libthrobber_widgets_tui-c28b07b1b9403989,libserde_json-1d7635ee530ade12,libmemchr-80246285fac1c846,libzmij-75d329cf2c8f5593,libsimple_logger-4df45cfa3a60ccad,libcolored-1550d8fb41046a40,liblog-ecf992d237509ac9,libropey-3a7e3df4581a6412,libstr_indices-9b32a9e912bb557a,libparking_lot-c68215bf3a365512,libparking_lot_core-ea69461c1b9fe434,libsmallvec-e8c55975a9051771,liblock_api-ceb865c91004838a,libscopeguard-4587cc6a5e848eb6,libderive_more-78d7fcb747239b4b,libouroboros-602032147ba3e647,libaliasable-b77f37ad7c5ac4ab,liblanguage-74212cf0d1e28016,libchumsky-e7c4b5f4e9c2edf1,libstacker-b69097edfe8fa267,libpsm-420fa6a5edda2f3c,liblibc-6893c2ab94d20949,libhashbrown-58dc2e33af242772,libfoldhash-698b92ec5b100abb,liblogos-59ca80e0c3219be4,libanyhow-a316c0d98e76e947,libtachyonfx-f9d6dbdc397d1082,libmicromath-ae5d47a66028bc1c,libanpa-b8bb7eae2569a6ef,libbon-471e7f3288c8eebd,libweb_time-fda7bc6afd2b9636,libratzilla-2874ba94fa40b722,libbeamterm_renderer-a8e8d0e61cffd2d5}.rlib" "/lib/rustlib/wasm32-unknown-unknown/lib/libpanic_abort-*.rlib" "/Users/at/Projects/incremental-code/target/wasm32-unknown-unknown/debug/deps/{libwasm_bindgen_futures-7435ca19bdfe7880,libbeamterm_core-189a7ba79d72acfa,libemojis-55e547f1e987f64a,libphf-e6237e12150d347a,libphf_shared-7e9f38d5f59df11a,libsiphasher-1a243885dc699808,librustc_hash-ad33fa58cd86875b,libglow-7876c1b17a0cc9a9,libslotmap-115f2cb7d18ea371,libbeamterm_data-ac9ef8baf32fc9d1,libminiz_oxide-a879f6909e871a86,libadler2-9ded0d1d1d237aa9,libbitvec-4400b81a434ca5fc,libwyz-637bb83f1563d1dc,libtap-6100de2e7431f3b5,libradium-085cb8d92788095f,libfunty-6a39d27848e4d555,libratatui-f61a60b2f3ee2b45,libratatui_widgets-ba0976365d37c7a4,libtime-324b053e82cbb768,libtime_core-902af462b35a03a8,libnum_conv-27efea19fb6d2b46,libderanged-fd536f374fd0fdd4,libpowerfmt-294e35cfdd7ac5cd,libline_clipping-0684bd2db88ce9c3,libratatui_core-a86ac4001d6fa5e2,libunicode_truncate-ee34ee1cfe0bbbb4,liblru-3b1e5f674232a755,libkasuari-e2109ff5a53a5b26,libthiserror-52c25a1239bbd20e,libitertools-9484ae6ccf35db49,libeither-08a8b210f07e817e,libhashbrown-4c527bcb1232d1a5,libequivalent-75c77b02b365b2b5,liballocator_api2-fe965f32b9ae68e8,libfoldhash-646f0318ee3e3dda,libcompact_str-64b2c11e1b3d9613,libryu-7ec6d8323d53dd3f,libitoa-819b95bc891c4db1,libstatic_assertions-7936261fc1a62cb7,libcastaway-768a2b79b8af7ce8,libunicode_segmentation-1f323ab800c2b7c1,libunicode_width-a4f330a6f3680991,librustc_std_workspace_core-6a6de112e9034429,libstrum-ebc702df7c1e5db3,libweb_sys-3f231226b59990cb,libjs_sys-0117f8e54e575bdc,libwasm_bindgen-eb9b3b34fbb45d1e,libonce_cell-9b2a480a2e2441aa,libwasm_bindgen_shared-1870ae1de44f21a5,libunicode_ident-8e5490b712df52ff,libcfg_if-92f4ceed38db3e4c,libbitflags-712b8e81d70e7477,libserde-1aa86a0fe609ea16,libserde_core-fd07b63d629f17b2}.rlib" "/lib/rustlib/wasm32-unknown-unknown/lib/{libstd-*,libdlmalloc-*,libcfg_if-*,librustc_demangle-*,libstd_detect-*,libhashbrown-*,librustc_std_workspace_alloc-*,libminiz_oxide-*,libadler2-*,libunwind-*,liblibc-*,librustc_std_workspace_core-*,liballoc-*,libcore-*,libcompiler_builtins-*}.rlib" "-L" "/Users/at/Projects/incremental-code/target/wasm32-unknown-unknown/debug/build/psm-7efb2570113e6343/out" "-L" "/lib/rustlib/wasm32-unknown-unknown/lib/self-contained" "-o" "/Users/at/Projects/incremental-code/target/wasm32-unknown-unknown/debug/deps/incremental_code-7b28dd547d261ec1.wasm" "--gc-sections" "-O0"
= note: some arguments are omitted. use `--verbose` to show all linker arguments
= note: PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace and instructions to reproduce the bug.
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 0x00000001028524ac llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) + 56
1 rust-lld 0x00000001028501cc llvm::sys::RunSignalHandlers() + 172
2 rust-lld 0x0000000102852f5c SignalHandler(int, __siginfo*, void*) + 344
3 libsystem_platform.dylib 0x00000001851397a4 _sigtramp + 56
4 rust-lld 0x0000000102bd2144 lld::wasm::InputChunk::writeTo(unsigned char*) const + 160
5 rust-lld 0x0000000102be1c38 lld::wasm::CustomSection::writeTo(unsigned char*) + 548
6 rust-lld 0x00000001027d6108 std::__1::__function::__func)::$_0, std::__1::allocator)::$_0>, void ()>::operator()() + 48
7 rust-lld 0x00000001027d6024 std::__1::__function::__func)::$_0, std::__1::allocator)::$_0>, void ()>::operator()() + 40
8 rust-lld 0x00000001027d5a38 llvm::parallel::detail::(anonymous namespace)::ThreadPoolExecutor::work(llvm::ThreadPoolStrategy, unsigned int) + 1008
9 rust-lld 0x00000001027d5b44 void* std::__1::__thread_proxy[abi:nn200100]>, llvm::parallel::detail::(anonymous namespace)::ThreadPoolExecutor::ThreadPoolExecutor(llvm::ThreadPoolStrategy)::'lambda'()::operator()() const::'lambda'()>>(void*) + 48
10 libsystem_pthread.dylib 0x000000018512fc58 _pthread_start + 136
11 libsystem_pthread.dylib 0x000000018512ac1c thread_start + 8
warning: `incremental-code` (bin "incremental-code") generated 8 warnings
error: could not compile `incremental-code` (bin "incremental-code") due to 1 previous error; 8 warnings emitted
2026-05-02T20:40:19.934563Z ERROR ❌ error
error from build pipeline
Caused by:
0: HTML build pipeline failed (1 errors), showing first
1: error from asset pipeline
2: running cargo build
3: error during cargo build execution
4: cargo call to executable 'cargo' with args: '["build", "--target=wasm32-unknown-unknown", "--manifest-path", "/Users/at/Projects/incremental-code/Cargo.toml", "--features", "ratzilla"]' returned a bad status: exit status: 101
2026-05-02T20:40:19.934597Z ERROR error from build pipeline
2026-05-02T20:40:19.934601Z INFO 1: HTML build pipeline failed (1 errors), showing first
2026-05-02T20:40:19.934603Z INFO 2: error from asset pipeline
2026-05-02T20:40:19.934604Z INFO 3: running cargo build
2026-05-02T20:40:19.934605Z INFO 4: error during cargo build execution
2026-05-02T20:40:19.934607Z INFO 5: cargo call to executable 'cargo' with args: '["build", "--target=wasm32-unknown-unknown", "--manifest-path", "/Users/at/Projects/incremental-code/Cargo.toml", "--features", "ratzilla"]' returned a bad status: exit status: 101
error: Recipe `build-ratzilla` failed on line 33 with exit code 1
```
Contributor guide
Assessment
This issue has not been assessed yet.