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

Exceptions raised from Rust with error::raise crash the playground with an unreachable error #389

Open
lopopolo opened this issue Feb 25, 2021 · 2 comments
Labels
A-wasm-build-target Area: Support for wasm build targets. C-bug Category: This is a bug. E-help-wanted Call for participation: Help is requested to fix this issue. O-wasm-emscripten Target: Support for building the `wasm32-unknown-emscripten` target.

Comments

@lopopolo
Copy link
Member

Exceptions raised in Rust code crash the playground.

Example

Regexp.compile(Object.new)
Integer('0x')

Stacktrace

159ff24693cdf2cbaabe.bundle.js:2 artichoke 0.1.0-pre.0 (2021-02-24 revision 4156) [wasm32-unknown-emscripten]
159ff24693cdf2cbaabe.bundle.js:2 [rustc 1.50.0 (cb75ad5db 2021-02-10) on x86_64-unknown-linux-gnu]
159ff24693cdf2cbaabe.bundle.js:2 Uncaught RuntimeError: unreachable
    at https://artichoke.run/playground.wasm:wasm-function[187]:0x22952
    at dynCall_viii (https://artichoke.run/playground.wasm:wasm-function[3052]:0x1fa79a)
    at https://artichoke.run/159ff24693cdf2cbaabe.bundle.js:2:2437295
    at invoke_viii (https://artichoke.run/159ff24693cdf2cbaabe.bundle.js:2:2502225)
    at https://artichoke.run/playground.wasm:wasm-function[1695]:0x120ede
    at https://artichoke.run/playground.wasm:wasm-function[1696]:0x121526
    at https://artichoke.run/playground.wasm:wasm-function[1353]:0xdd4e9
    at https://artichoke.run/playground.wasm:wasm-function[188]:0x229ee
    at dynCall_viii (https://artichoke.run/playground.wasm:wasm-function[3052]:0x1fa79a)
    at https://artichoke.run/159ff24693cdf2cbaabe.bundle.js:2:2437295
@lopopolo lopopolo added C-bug Category: This is a bug. A-wasm-build-target Area: Support for wasm build targets. E-help-wanted Call for participation: Help is requested to fix this issue. O-wasm-emscripten Target: Support for building the `wasm32-unknown-emscripten` target. labels Feb 25, 2021
@lopopolo
Copy link
Member Author

discovered while working on artichoke/artichoke#1107.

@lopopolo
Copy link
Member Author

lopopolo commented Sep 6, 2021

I think these upstream mruby PRs might be related since the crashes occur when raising errors in native code:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-wasm-build-target Area: Support for wasm build targets. C-bug Category: This is a bug. E-help-wanted Call for participation: Help is requested to fix this issue. O-wasm-emscripten Target: Support for building the `wasm32-unknown-emscripten` target.
Development

No branches or pull requests

1 participant