Skip to content

Stack unwinding on Windows (SEH) #291

@mrowqa

Description

@mrowqa

The tests are failing on Windows and I looked into the matter. The problem lies in setjmp/longjmp functions which unwind on Windows. I have implemented workaround here #265 (comment).

Goal: compatibility with SEH, so wasm trap can freely unwind through different stack frames: wasm, Rust, C++ and more.
Major work to be done: our compiler, cranelift, should provide us with unwind information
Firefox implementation: doesn't rely on SEH; it manually iterates over wasm frames and performs the clean up, and uses custom thunks to restore stack pointer.
Helpful references:

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