GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — wasm-opt [parse exception: popping from empty stack (at 0:543)] · Issue #8896 · WebAssembly/binaryen

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

New issue
Copy link
New issue
Copy link
Open
Open
wasm-opt [parse exception: popping from empty stack (at 0:543)]#8896
Copy link

Description

@vapier
vapier
opened on Jul 12, 2026
Issue body actions

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

Activity

  1. tlively commented on Jul 13, 2026

    @tlively
    tlively
    on Jul 13, 2026
    Member
    More actions

    Binaryen and wasm-tools both agree that this module is invalid, so there is no Binaryen bug here. It does sound plausible that a mismatch in prototype and definition signatures would cause this, but then the bug would be in the original program and not even in LLVM.

  2. vapier commented on Jul 13, 2026

    @vapier
    vapier
    on Jul 13, 2026
    Author
    More actions

    at the very least, the diagnostics shown to users are bad. an assert/abort/coredump is not how well defined tools behave.

    if the runtime wants to assert matching function definitions, then somewhere in the stack that diagnostic should show up.

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

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

      You are visitor 01402520 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.