Skip to content

Commit daa00ac

Browse files
committed
ci: set RUST_TEST_THREADS=1 on musl to prevent concurrent PTY SIGSEGV
The PTY gate serializes Terminal lifetimes within pty_terminal, but the SIGSEGV may occur in other concurrent operations (ctor init, signal handlers). Setting test threads to 1 eliminates all concurrency.
1 parent 0e6db16 commit daa00ac

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,9 @@ jobs:
149149
# -crt-static: vite-task is shipped as a NAPI module in vite+, and musl Node
150150
# with native modules links to musl libc dynamically, so we must do the same.
151151
RUSTFLAGS: --cfg tokio_unstable -D warnings -C target-feature=-crt-static
152+
# On musl, concurrent PTY operations can trigger SIGSEGV in musl internals.
153+
# Run test threads sequentially to avoid the race.
154+
RUST_TEST_THREADS: 1
152155
steps:
153156
- name: Install Alpine dependencies
154157
shell: sh {0}

.github/workflows/musl-stability.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ jobs:
2424
options: --shm-size=256m
2525
env:
2626
RUSTFLAGS: --cfg tokio_unstable -D warnings -C target-feature=-crt-static
27+
RUST_TEST_THREADS: 1
2728
steps:
2829
- name: Install Alpine dependencies
2930
shell: sh {0}

0 commit comments

Comments
 (0)