Repository navigation
CI: build the wasm binding without wasi-sdk - #54
Merged
Merged
Conversation
Since rustc 1.100 the wasm32-wasip1-threads binding built with WASI_SDK_PATH pointing at wasi-sdk-29 never finishes loading: its main thread spins at 100% CPU in wasi-libc's __pthread_key_delete during module init, walking a thread list whose main-thread entry was never linked, before any Worker starts. rustc 1.99.1 with the same SDK was fine. With WASI_SDK_PATH set, napi build links the SDK's wasi-libc; without it the module links Rust's self-contained wasi-libc and loads normally. Nothing in the wasm build compiles C any more (zstd-sys is a dev-dependency only), so drop the SDK from both CI and the release build. Bound the wasm job and both smoke tests so a hang fails fast instead of holding a runner for six hours. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes the
Test (wasm32-wasip1-threads fallback)hang that started with the deps refresh in 03ee2a9 and blocks the release PR #52.Cause
Since rustc 1.100.0 (2026-11-09), the wasm binding built with
WASI_SDK_PATHpointing at wasi-sdk-29 never finishes loading. The last green run (Nov 4) was built with rustc 1.99.1 and the same SDK.The debug PR #53 traced it on the runner:
__pthread_key_delete. Itsdo td->tsd[k] = 0; while ((td = td->next) != self);loop never ends when the main thread's entry was never linked into the thread list.With
WASI_SDK_PATHset, napi build links the SDK's wasi-libc. Without it, the module links Rust's self-contained wasi-libc, which calls__init_tpbefore that delete. That's why the same rustc passes locally.Change
ci.ymland from the wasm row ofrelease.yml. Nothing in the wasm build compiles C any more:zstd-sysis a dev-dependency only, so the old "clang for zstd-sys" reason is gone.timeout-minutes: 30, its smoke steptimeout-minutes: 5, and the release smoke testtimeout 300, so a hang fails fast instead of holding a runner for 6 h.Verification
On #53, the same Linux runner without wasi-sdk passes the smoke test in about 1 s and the whole wasm test suite.
🤖 Generated with Claude Code