Postmessaged Shared Wasm Memories lack .buffer property
Categories
(Core :: JavaScript: WebAssembly, defect)
Tracking
()
People
(Reporter: alonzakai, Unassigned)
Details
Attachments
(1 file)
35.88 KB,
application/zip
|
Details |
User Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36
Steps to reproduce:
The attached program is a small "hello world" program compiled with Emscripten that uses pthreads. All our pthreads tests started failing on Nightly in our CI over the last 24 hours, so it looks like something broke. To see the breakage, serve a.html in a COOP/COEP-supporting manner (e.g. ./emrun a.html from Emscripten) and browse to that site.
Actual results:
The page reports "Exception thrown" and in the dev console there is the error:
TypeError: can't access property "byteLength", wasmMemory.buffer is undefined
Expected results:
The page should load ok and print "hello world", with no error.
That works in older Firefox and in Chrome.
Please triage this to the JavaScript:WebAssembly component, which is almost certainly the correct place. Thanks!
Comment 2•1 year ago
|
||
The Bugbug bot thinks this bug should belong to the 'Core::JavaScript: WebAssembly' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.
Comment 3•1 year ago
|
||
Sorry, I missed this. I believe this is a duplicate of bug 1876358 which Jan fixed very quickly. Alon, are you still seeing this issue in the latest nightly?
Thanks, I confirmed it works on nightly again, https://github.com/emscripten-core/emscripten/pull/21282
Comment 6•1 year ago
|
||
Thanks!
Description
•