Skip to content

wasm-opt [parse exception: popping from empty stack (at 0:543)] #8896

Description

@vapier

Running some configure scripts crashes many times due to clang implicitly running wasm-opt for me. I'm using wasi-sdk 33.0 fwiw. I suspect the mismatch in declared prototype & actual function definition is upsetting the tool.

attaching one example program

$ wasm-opt --version
wasm-opt version 130 (version_130)

$ wasm-opt conftest -O2 -o x 
[parse exception: popping from empty stack (at 0:456)]
Fatal: error parsing wasm (try --debug for more info)

$ wasm-opt conftest -O2 -o x --debug
reading...
reading binary from conftest
Loading 'conftest'...
[parse exception: popping from empty stack (at 0:456)]
getNumCores: 4
Assertion failed: *currp (/src/src/wasm-traversal.h: pushTask: 286)
Aborted (core dumped)

conftest.gz

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions