deps: backport V8 LLE alias fix to 26.x and 24.x
Dieses Issue hat noch niemand übernommen.
Bewertung
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Anfängerfreundlichkeit
- 52/100
- Issue-Typ
- Bug
- Klarheit
- Klar beschrieben
- Aktivitätsstatus
- Aktiv
- Tech-Stack
- javascript
Rechercherichtung
Beginne mit deps/v8/src/compiler/turboshaft/late-load-elimination-reducer.cc und vergleiche die aktiven 26.x- und 24.x-V8-Snapshots mit dem Upstream-Commit b44239fe. Führe v8-lle-poc.js mit node --allow-natives-syntax auf beiden Release-Linien aus und überprüfe anschließend, dass der Upstream-Fix und die regress-554421904-Abdeckung vorhanden sind und der Reproducer 1.1 zurückgibt.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
Summary
Please backport V8 commit b44239fe / V8 bug 554421904, "Turboshaft LLE: non-writing calls can create aliases", to the active Node.js 26.x and 24.x release lines.
This is the same upstream V8 miscompilation tracked in #66083 for 26.x, but 24.x is also affected by default: Node 24 ships V8 13.6 with Turboshaft load elimination enabled by default, and the minimized reproducer returns the wrong value there too.
Version
Reproduced locally with:
v26.9.0/ V814.6.202.34-node.32v24.18.0/ V813.6.233.17-node.50
Source check after fetching current tags/branches:
upstream/v26.xandupstream/v26.x-staging: V814.6.202.34, noregress-554421904testupstream/v24.xandupstream/v24.x-staging: V813.6.233.17, noregress-554421904test
Platform
macOS arm64
This appears to be a compiler optimization bug rather than platform-specific behavior.
Subsystem
V8 / deps
What steps will reproduce the bug?
Run the minimized reproducer from #66083 with native syntax enabled:
node --allow-natives-syntax v8-lle-poc.js
I also checked the relevant runtime flag defaults:
26.x:--turboshaft-load-eliminationis enabled by default24.x:--turboshaft-load-eliminationis enabled by default22.x:--turboshaft-load-eliminationis disabled by default, so this request is intentionally limited to26.xand24.x
How often does it reproduce? Is there a required condition?
It reproduced consistently for me on both default-affected lines listed above.
The reproducer requires optimized code and the Turboshaft load-elimination pass. That pass is enabled by default on the Node 26 and Node 24 builds tested.
What is the expected behavior? Why is that the expected behavior?
The store to staleArray[7] should be preserved, so the returned array slot should contain 1.1:
staleArray[7]: 1.1 | expected: 1.1 | OK
RESULT: NOT TRIGGERED on this build
What do you see instead?
Node 26:
v26.9.0 V8 14.6.202.34-node.32
staleArray[7]: undefined | expected: 1.1 | WRONG!
RESULT: BUG TRIGGERED — Turboshaft LLE eliminated a valid store
Node 24:
v24.18.0 V8 13.6.233.17-node.50
staleArray[7]: undefined | expected: 1.1 | WRONG!
RESULT: BUG TRIGGERED — Turboshaft LLE eliminated a valid store
Additional information
The upstream fix is small and directly addresses the alias invalidation ordering in Turboshaft late load elimination:
- Fix: https://chromium.googlesource.com/v8/v8/+/b44239fe
- Review: https://chromium-review.googlesource.com/c/v8/v8/+/8345010
- V8 bug: 554421904
The current 26.x and 24.x V8 snapshots still have the vulnerable early !op.Effects().can_write() bailout before invalidating non-aliasing inputs in deps/v8/src/compiler/turboshaft/late-load-elimination-reducer.cc.
- Vorherrschende Sprache
- JavaScript
- Sterne
- 122k
- Forks
- 37.4k
- Ø Merge
- 4 T. 3 Std.
- Gemergte PRs (30 T.)
- 273
Beitragsleitfaden
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus nodejs/node
-
doc
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 65/100
-
build
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 88/100
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 84/100
-
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 90/100
-
feature request
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 68/100
Ähnliche Issues
-
bug
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 90/100
apache/cloudstack#14222 ·
-
Browser Waiting for: Product Owner
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 85/100
getsentry/sentry-javascript#24577 · 1 Kommentar ·
-
curation good first issue
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 88/100
amponce/archive-movie-browser#186 ·
-
light
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 85/100
aemdemos/patients-stryker#253 ·
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 86/100
clerk/javascript#9852 ·