Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

The wasm-reduce tool encountered an abnormal timeout under the condition of "--command=./wasmer run test.wasm"

Aperta
#7,864 5 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
42/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
wasm
Ambito
compilers

Direzione di ricerca

Inizia riproducendo il timeout con hello_world.c, test.wasm, work.wasm e il comando wasm-reduce segnalato, quindi confrontalo con i comandi del runtime che funzionano separatamente. Traccia il percorso di esecuzione dei comandi di wasm-reduce e verifica il completamento usando wasmer; è completato quando la riduzione fornita non segnala più un timeout anomalo.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Phenomenon description

Hello, when I use the wasm-reduce tool to shorten the wasm program, there is an abnormal timeout. The command in --command exits normally when executed separately in the terminal, and the exit code is 0. But when using the wasm-reduce tool, the execution is as follows:

Image

Commands from other runtime tools can be executed normally, as follows:

Image
Steps to reproduce
// hello_world.c
#include <stdio.h>
int main() {
  printf("Hello, world!\n");
  return 0;
}
emcc hello_world.c -o hello_world.wasm -O2 -s WASM=1
/bin/wasm-reduce hello_world.wasm "--command=/path/to/wasmer run test.wasm" -t test.wasm -w work.wasm
Versions and Environment

binaryen is built from source.

  • wasm-reduce: version 123 (version_123-229-g6f4e4f7d0)
  • wasmer: 6.0.1
  • emcc: 4.0.10 (b7dc6e5747465580df5984e723b9d1f10d8e804b)
  • wabt: 1.0.27
  • Host OS: Ubuntu 22.04.5 LTS x64
  • CPU: 12th Gen Intel® Core™ i7-12700 × 20
Extra Info

If you need any other relevant information, please let me know and I will do my best to provide it. Looking forward to your reply! Thank you!

Lingua principale
WebAssembly
Stelle
8.6k
Fork
885
Merge medio
2g 2h
PR unite (30g)
86

Guida per i contributori

Apri la guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di WebAssembly/binaryen

Tutte le issue di WebAssembly/binaryen

Issue simili

Altre issue su Compilers

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.