`feat_wasm` utilities that spawn a child process cannot work under WASI
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 5/5
- Thời gian dự kiến
- Hơn một tuần
- Mức phù hợp với người mới
- 25/100
Hướng nghiên cứu
Read docs/src/wasi-test-gaps.md and the feat_wasm handling for nice and split, including tests marked #[uutests::wasi_ignore(NoSubprocessSpawning)]. The issue asks for a product decision among several approaches, so first trace how these utilities behave under WASI and assess the tradeoffs described. Done means agreeing on and documenting a behavior for subprocess-spawning utilities under WASI.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Description
WASI has no fork/exec/posix_spawn equivalent for a guest module, on both wasm32-wasip1 and wasm32-wasip2. Any utility whose job is to launch another program cannot do that job under WASI, regardless of implementation.
Affects every feat_wasm utility that spawns a child: nice, split. Every such test carries #[uutests::wasi_ignore(NoSubprocessSpawning)].
Impact
nice's only working case under WASI is the no-argument "print current niceness." Any invocation with a command fails. The failure is clean now (see the exit-code issue), but the feature doesn't exist under WASI.
Possible workarounds — checked, neither is real
- In-process dispatch.
coreutils.wasmis a multicall binary with every utility linked in. If the target command matches one of those (e.g.nice echo a b c), we could call itsuumaindirectly instead of exec. But: does nothing for an external program (still no way to load another module); drops the actual point ofnice(no priority/SIGHUP concept under WASI anyway, so it'd just run the command, not nice it); doesn't helptimeout(no way to preempt a direct call without real threads — see shared-everything-threads, draft, unimplemented); needs new plumbing to expose the dispatch table (currently only incoreutils's generateduutils_map.rs) to individualuu_*crates. - WASI preview 3. No process/fork/exec proposal at any phase;
wasi:clihas no exec interface. Preview 3's scope is native async, not new capabilities. WebAssembly/WASI#899 (wasi:exec) is open but scoped to spawning other components, not native binaries, and the SIG leans toward handling it via the component model's runtime instantiation rather than a WASI interface. No phase assigned.
Ask
Decide what these utilities should do under feat_wasm:
- Ship as-is, documenting the exec path as always-failing.
- Exclude them from
feat_wasmsince their core function is unreachable. - Add in-process dispatch for
niceas a best-effort fallback, accepting the semantic change and the new plumbing it needs. - Something else, e.g. a dedicated "WASI has no subprocess spawning" error instead of the generic
operation not supported on this platform.
Scope/product decision, not a code bug — docs/src/wasi-test-gaps.md already documents the limitation.
- Ngôn ngữ chính
- Rust
- Star
- 24.4k
- Fork
- 2.2k
- Merge trung bình
- 2 ngày 23 giờ
- Pull request đã merge (30 ngày)
- 402
Chuẩn bị môi trường
Khởi chạy dev container của dự án ngay trên trình duyệt, bằng tài khoản GitHub của bạn.
- Không có Dockerfile hay tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của uutils/coreutils
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
Maintainer thường phản hồi trong vòng 1 ngày
-
split -n leaves bytes from a previous run in chunks that should be emptyCó thể đã có người làm @costajohnt đã nhận 2 ngày trước. Đang mởU - split
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 85/100
Maintainer thường phản hồi trong vòng 1 ngày
-
dircolors: '=' is not escaped and '^'/'\\' do not toggle the backslash state, unlike GNUCó thể làm lại được Pull request cho issue này đã bị đóng mà không được merge. Đang mởU - dircolors
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 63/100
Maintainer thường phản hồi trong vòng 1 ngày
-
U - shred
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
Maintainer thường phản hồi trong vòng 1 ngày
-
chown -v: `+ID` spec echoed verbatim on a broken symlinkCó thể đã có người làm @sunsss123soldier đã nhận 7 ngày trước. Đang mởgood first issue oss-scanner U - chown
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 80/100
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của uutils/coreutils
Issue tương tự
-
go good first issue test
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
Maintainer thường phản hồi trong vòng 2 ngày
-
bug triaged tui ux wontfix
Độ khó 2/5 Nửa ngày Mức phù hợp với người mới 70/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
bevyengine/bevy#26642 ·
Maintainer thường phản hồi trong vòng 2 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
Maintainer thường phản hồi trong vòng 1 ngày