`feat_wasm` utilities that spawn a child process cannot work under WASI
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 5/5
- Tiempo estimado
- Más de una semana
- Aptitud para principiantes
- 25/100
Línea de trabajo
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.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
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.
- Lenguaje dominante
- Rust
- Estrellas
- 24.4k
- Forks
- 2.2k
- Merge medio
- 2 d 23 h
- PR fusionados (30 d)
- 402
Preparar el entorno
Inicia el contenedor de desarrollo del proyecto en tu navegador, con tu propia cuenta de GitHub.
- Sin Dockerfile ni archivo de Docker Compose
- Sin plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de uutils/coreutils
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
Los mantenedores suelen responder en 1 día
-
split -n leaves bytes from a previous run in chunks that should be emptyPosiblemente ocupada @costajohnt la tomó hace 2 días. AbiertoU - split
Dificultad 2/5 1-3 horas Aptitud para principiantes 85/100
Los mantenedores suelen responder en 1 día
-
dircolors: '=' is not escaped and '^'/'\\' do not toggle the backslash state, unlike GNUQuizá libre de nuevo Un pull request para esta issue se cerró sin fusionarse. AbiertoU - dircolors
Dificultad 2/5 1-3 horas Aptitud para principiantes 63/100
Los mantenedores suelen responder en 1 día
-
U - shred
Dificultad 2/5 1-3 horas Aptitud para principiantes 65/100
Los mantenedores suelen responder en 1 día
-
chown -v: `+ID` spec echoed verbatim on a broken symlinkPosiblemente ocupada @sunsss123soldier la tomó hace 7 días. Abiertogood first issue oss-scanner U - chown
Dificultad 2/5 1-3 horas Aptitud para principiantes 80/100
Los mantenedores suelen responder en 1 día
Todos los issues de uutils/coreutils
Issues similares
-
marketing
Dificultad 2/5 Medio día Aptitud para principiantes 62/100
Los mantenedores suelen responder en 1 día
-
S: Untriaged T: Bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
libnyanpasu/clash-nyanpasu#6537 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 Menos de una hora Aptitud para principiantes 62/100
tauri-apps/tao#1445 ·
Los mantenedores suelen responder en 1 día
-
bug P3
Dificultad 1/5 1-3 horas Aptitud para principiantes 88/100
-
go good first issue test
Dificultad 2/5 1-3 horas Aptitud para principiantes 88/100
Los mantenedores suelen responder en 2 días