Skip to content

Wasmtime does not exit with the same code as the wasm main on Windows #6352

@yowl

Description

@yowl

Test Case

Create a wasm which as a main that exits with a return value > 1. E.g. the attached

Steps to Reproduce

  • wasmtime --wasm-features=threads --wasi-modules=experimental-wasi-threads HelloWasm.wasm
  • echo %ERROR_LEVEL%

Expected Results

should print 100

Actual Results

prints 1

Versions and Environment

Wasmtime version or commit: wasmtime-cli 9.0.0

Operating system: Win11

Architecture: x64

Extra Info

Node.js prints 100 for this test. Thanks!

HelloWasm.zip

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugIncorrect behavior in the current implementation that needs fixing

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions