Skip to content

WASM integration doesn't patch stack frames in WebKit  #7223

@Lms24

Description

@Lms24

Is there an existing issue for this?

How do you use Sentry?

Sentry Saas (sentry.io)

Which SDK are you using? If you use the CDN bundles, please specify the exact bundle (e.g. bundle.tracing.min.js) in your SDK setup.

@sentry/browser

SDK Version

7.38.0

Framework Version

No response

Link to Sentry event

No response

SDK Setup

No response

Steps to Reproduce

cd packages/integration-tests
yarn test -g "wasm" --browser=webkit

Expected Result

The integration should patch the WebAssembly API so that when an error in a WASM module occurs, it can patch the module's stack frames:

Example:

{"addr_mode": "rel:0", "filename": "simple.wasm", "function": "internal_func", "in_app": true, "instruction_addr": "0x8c", "platform": "native"}

Actual Result

It seems like either patching the API doesn't work or patching the stack frames later on fails when using a WebKit-based browser.

Example of the actual stack frame from the expected example above:

{"abs_path": "[native code]", "filename": "[native code]", "function": "wasm-stub", "in_app": true}

Link to the failing test on CI: https://github.com/getsentry/sentry-javascript/actions/runs/4204160700/jobs/7294561872#step:11:341

Metadata

Metadata

Assignees

No one assigned

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions