Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Plugin raises heap_get_oob on certain machines #5406

Closed
kwonoj opened this issue Aug 6, 2022 · 5 comments
Closed

Plugin raises heap_get_oob on certain machines #5406

kwonoj opened this issue Aug 6, 2022 · 5 comments
Assignees
Milestone

Comments

@kwonoj
Copy link
Member

kwonoj commented Aug 6, 2022

Describe the bug

Recently on some machines plugin raises these error without clear stack where it happens

Error: failed to handle: failed to invoke plugin: failed to invoke `/Users/ojkwon/github/swc-coverage-instrument/target/wasm32-wasi/debug/swc_plugin_coverage.wasm` as js transform plugin at /Users/ojkwon/github/swc-coverage-instrument/target/wasm32-wasi/debug/swc_plugin_coverage.wasm

Caused by:
    0: RuntimeError: out of bounds memory access
    1: heap_get_oob

This is not all-time reproducible, but if some machine hits those machine will hit this always.

Input code

-

Config

-

Playground link

No response

Expected behavior

Actual behavior

No response

Version

latest

Additional context

Per bisecting, #5062 seems causing the issue. It is unclear which specific change is offender, but could be a starting point to dig further.

@kwonoj
Copy link
Member Author

kwonoj commented Aug 6, 2022

ref: rkyv/rkyv#291

@alekangelov
Copy link

WSL ubuntu works, Vanilla Ubuntu works, windows 11 works (all with SOME issues, but eventually ran through)

but M1 mac does not

@kwonoj
Copy link
Member Author

kwonoj commented Aug 22, 2022

Latest swc_core / swc@core applied workaround this by disabling bytecheck for now. I'll close this, and track re-enabling via #5472.

@kwonoj kwonoj closed this as completed Aug 22, 2022
@kdy1 kdy1 modified the milestones: Planned, v1.2.242 Aug 23, 2022
@liaoyinglong

This comment was marked as resolved.

@swc-bot
Copy link
Collaborator

swc-bot commented Oct 19, 2022

This closed issue has been automatically locked because it had no new activity for a month. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you.

@swc-project swc-project locked as resolved and limited conversation to collaborators Oct 19, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Development

No branches or pull requests

5 participants