Skip to content

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

@gaaraw

Description

@gaaraw

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions