You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
MatchData#end returns invalid offset when called within evalAsync #555
app.wasm:0x5739f8 Uncaught RuntimeError: memory access out of bounds
at enc_strlen (app.wasm:0x5739f7)
at rb_enc_strlen (app.wasm:0x573574)
at update_char_offset (app.wasm:0x50cc96)
at match_begin (app.wasm:0x507547)
at ractor_safe_call_cfunc_1 (app.wasm:0x67a681)
at vm_call0_body (app.wasm:0x638879)
at rb_funcallv_scope (app.wasm:0x637cdb)
at rb_funcall (app.wasm:0x65269f)
at subx (app.wasm:0x7ed59)
at date__parse (app.wasm:0x7bd9b)
Author: Yuta Saito <kateinoigakukun@gmail.com>
Date: Mon Jan 29 09:49:15 2024 +0000
wasm: align fiber stack pointer to 16 bytes
In WebAssembly C ABI, the linear stack pointer must be always aligned
to 16 bytes like other archs.
The misaligned stack pointer causes some weird memory corruption since
compiler assumes the aligned stack pointer.
Stackblitz reproduction: https://stackblitz.com/edit/ruby-wasm-demo-78s71k?file=index.html
MatchData#end returns incorrect match offset when used in async context: