Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

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

Đang mở
#7,864 5 bình luận 0 reaction 0 người được giao Xem trên GitHub

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ó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
42/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
wasm
Lĩnh vực
compilers

Hướng nghiên cứu

Bắt đầu bằng cách tái hiện timeout với hello_world.c, test.wasm, work.wasm và lệnh wasm-reduce đã được báo cáo, sau đó so sánh với các lệnh runtime hoạt động riêng biệt. Theo dõi đường dẫn thực thi lệnh của wasm-reduce và xác minh việc hoàn tất khi sử dụng wasmer; được xem là hoàn tất khi bản reduction được cung cấp không còn báo cáo timeout bất thường.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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!

Ngôn ngữ chính
WebAssembly
Star
8.7k
Fork
893
Merge trung bình
1 ngày 14 giờ
Pull request đã merge (30 ngày)
77

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. 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.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của WebAssembly/binaryen

Tất cả issue của WebAssembly/binaryen

Issue tương tự

Thêm issue về Compilers

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.