Skip to content

wasm-opt hangs on Windows #7250

Open
Open
@Photosounder

Description

I obtained binaryen on MSYS2 on Windows 10 using the command pacman -S mingw-w64-ucrt-x86_64-binaryen, which gives me "wasm-opt version 121". wasm-opt always hangs after writing an output file (the output file appears to be complete) and not even Ctrl-C can kill it (only the Task Manager can or closing the parent process), but returns properly when doing a simple wasm-opt --help, so I think this has something to do with closing the stream, although the file handle must be closed by the time it starts to hang because I can delete the file even though the program hangs.

Here's an example, the contents of the input file don't seem to influence the outcome:

$wasm-opt demo_nolibc.wasm -O0 -o opt-test.wasm -d
reading...
reading binary from demo_nolibc.wasm
Loading 'demo_nolibc.wasm'...
warning: no passes specified, not doing any work
writing...
writing binary to opt-test.wasm
Opening 'opt-test.wasm'

It hangs the same regardless of whether I run this from msys2's bash.exe or from cmd.exe.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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