Skip to content

Currently nightly does not provides stack probing #7239

Open
@kwonoj

Description

@kwonoj

Describe the bug

If plugin panics, on old nightly (nightly-2022-09-23) error looks like this:

 1: RuntimeError: out of bounds memory access
    2: heap_get_oob
    at Compiler.transformSync (/
...

building plugin with the nightly swc current uses (

nightly-2023-03-20
)

Now it says

thread '<unnamed>' panicked at 'not implemented: Stack probing is unimplemented on AArch64', /Users/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/cranelift-codegen-0.91.1/src/isa/aarch64/abi.rs:642:9
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

Error: failed to handle: not implemented: Stack probing is unimplemented on AArch64
    at Compiler.transformSync

Since there's no full stack trace it wasn't very much helpful anyway, but now it doesn't even shows the error itself.

This is mostly for the tracking, looks like it's coming from somewhere upstream.

Input code

No response

Config

No response

Playground link

No response

Expected behavior

Provide proper runtime error

Actual behavior

No response

Version

latest

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions