WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
286422
REGRESSION: [dart2wasm] WasmGC interpreter/compiler bug discovered by dart2wasm compiled app
https://bugs.webkit.org/show_bug.cgi?id=286422
Summary
REGRESSION: [dart2wasm] WasmGC interpreter/compiler bug discovered by dart2wa...
Martin Kustermann
Reported
2025-01-23 05:37:27 PST
Created
attachment 473984
[details]
[dart2wasm] WasmGC interpreter/compiler bug discovered by dart2wasm compiled app This is a regression introduced between 287397 (good) to 289284 (bad). Here's a reproduction: First we unpack the attached file: ``` % tar xvzf flute.tar.gz flute.wasm flute.wasm.map flute.mjs pkg/dart2wasm/bin/run_wasm.js ``` Now we run it with normal JSC ``` % jsc $PWD/pkg/dart2wasm/bin/run_wasm.js -- $PWD/flute.mjs $PWD/flute.wasm -- Error: RuntimeError: Out of bounds array.set (evaluating 'this.instantiatedModule.exports.$invokeMain(args)') Stack: module0.wasm-function[_DefaultMap&_HashFieldBase&MapMixin&_HashBase&_OperatorEqualsAndHashCode&_LinkedHashMapMixin._insert]@[wasm code] module0.wasm-function[_DefaultMap&_HashFieldBase&MapMixin&_HashBase&_OperatorEqualsAndHashCode&_LinkedHashMapMixin._set]@[wasm code] module0.wasm-function[_DefaultMap&_HashFieldBase&MapMixin&_HashBase&_OperatorEqualsAndHashCode&_LinkedHashMapMixin._insert]@[wasm code] module0.wasm-function[_DefaultMap&_HashFieldBase&MapMixin&_HashBase&_OperatorEqualsAndHashCode&_LinkedHashMapMixin.putIfAbsent]@[wasm code] module0.wasm-function[_DefaultBinaryMessenger.setMessageHandler]@[wasm code] module0.wasm-function[MethodChannel.setMethodCallHandler]@[wasm code] module0.wasm-function[main]@[wasm code] module0.wasm-function[_invokeMain]@[wasm code] invokeMain@/tmp/bad/flute.mjs:432:48 @/tmp/bad/pkg/dart2wasm/bin/run_wasm.js:425:31 ``` Now if we run this using `--useWasmIPInt=false` the issue goes away ``` % jsc --useWasmIPInt=false $PWD/pkg/dart2wasm/bin/run_wasm.js -- $PWD/flute.mjs $PWD/flute.wasm -- Frame #1: build 2.0 ms; draw 11.0 ms Frame #2: build 1.0 ms; draw 64.0 ms Frame #3: build 1.0 ms; draw 62.0 ms Frame #4: build 2.0 ms; draw 57.0 ms Frame #5: build 1.0 ms; draw 53.0 ms Frame #6: build 1.0 ms; draw 52.0 ms Frame #7: build 1.0 ms; draw 56.0 ms Frame #8: build 1.0 ms; draw 51.0 ms Frame #9: build 2.0 ms; draw 52.0 ms ```
Attachments
[dart2wasm] WasmGC interpreter/compiler bug discovered by dart2wasm compiled app
(870.15 KB, application/gzip)
2025-01-23 05:37 PST
,
Martin Kustermann
no flags
Details
View All
Add attachment
proposed patch, testcase, etc.
Keith Miller
Comment 1
2025-01-23 17:16:47 PST
<
rdar://143409513
>
Radar WebKit Bug Importer
Comment 2
2025-01-23 17:17:00 PST
<
rdar://problem/143533748
>
Keith Miller
Comment 3
2025-01-23 17:17:35 PST
<
rdar://143409513
>
daniel_liu4
Comment 4
2025-01-24 11:06:17 PST
Pull request:
https://github.com/WebKit/WebKit/pull/39507
EWS
Comment 5
2025-01-24 14:48:24 PST
Committed
289367@main
(6f3eff0a3124): <
https://commits.webkit.org/289367@main
> Reviewed commits have been landed. Closing PR #39507 and removing active labels.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug