Thanks to visit codestin.com
Credit goes to github.com

Skip to content

#5080 still fails when __stack_pointer exists as a global but is not exported #5093

@sbenedetto

Description

@sbenedetto

#5080 fixes part of the problem for me, but I’m still able to reproduce the same wasm-bindgen CLI failure on a wasm module.

What I’m seeing:

  • The module contains many additional globals such as GOT.func.internal.*
  • It also has a global named __stack_pointer
  • But __stack_pointer is not exported

When wasm-bindgen runs on that module, it still panics during descriptor interpretation with:

called Result::unwrap() on an Err value: failed to find 32752 in function table

A local workaround is to force-export __stack_pointer from the wasm module. Once I do that, the same wasm-bindgen revision succeeds without any further changes.

So the remaining gap seems to be:

Hope this helps.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    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