Skip to content

Incorrect start function signature validation #4506

@Q1IQ

Description

@Q1IQ

Subject of the issue

iwasm incorrectly reports '_start function signature is wrong' error when loading WebAssembly modules that should execute normally. The module contains a valid _start function but the engine fails to recognize the correct signature, preventing proper execution.

Test case

positive_1.wasm.txt

Your environment

  • OS: Ubuntu 20.04
  • CPU: amd64
  • WAMR version: iwasm 2.2.0
  • Commands:
iwasm --interp -f main ./program.wasm

Actual behavior

WASM module load failed: the signature of builtin _start function is wrong

Expected State

The module should load and execute successfully, outputting the expected result:

42

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