Closed Bug 1876355 Opened 1 year ago Closed 1 year ago

Postmessaged Shared Wasm Memories lack .buffer property

Categories

(Core :: JavaScript: WebAssembly, defect)

Firefox 124
defect

Tracking

()

RESOLVED DUPLICATE of bug 1876358

People

(Reporter: alonzakai, Unassigned)

Details

Attachments

(1 file)

35.88 KB, application/zip
Details
Attached file bug.zip

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!

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.

Component: Untriaged → JavaScript: WebAssembly
Product: Firefox → Core

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?

Flags: needinfo?(alonzakai)

Thanks, I confirmed it works on nightly again, https://github.com/emscripten-core/emscripten/pull/21282

Flags: needinfo?(alonzakai)

(I don't seem to have permission to resolve this, sorry.)

Thanks!

Status: UNCONFIRMED → RESOLVED
Closed: 1 year ago
Duplicate of bug: 1876358
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: