Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: use allocationtype kold in v8 scriptormodule legacy lifetime #32339

Merged
merged 1 commit into from Jan 5, 2022

Conversation

VerteDinde
Copy link
Member

Description of Change

In a recent Chromium upgrade, this CL changed the default value of V8_SCRIPTORMODULE_LEGACY_LIFETIME to false, and removed kOld type allocations. This change is causing a potential crash in v8 for Electron versions 17.0.0-alpha.4 and higher. This PR adds a suggested upsteam fix as a patch.

There is an open PR for the upsteam fix here. Because we're moving 17-x-y from alpha to beta this week, I added this patch until the upsteam fix was merged, to add more stability to 17.0.0-beta.1.

This patch can be removed when either A) the linked upstream PR is merged, or B) Node.js removes weak refs from ScriptOrModule.

Checklist

Release Notes

Notes: Fixes a potential crash in v8 by using allocation type: kOld in v8 ScriptOrModule legacy lifetime

@VerteDinde VerteDinde added semver/patch backwards-compatible bug fixes target/17-x-y labels Jan 4, 2022
@VerteDinde VerteDinde requested a review from a team as a code owner January 4, 2022 23:42
@electron-cation electron-cation bot added the new-pr 🌱 PR opened in the last 24 hours label Jan 4, 2022
@VerteDinde VerteDinde merged commit b61805b into main Jan 5, 2022
@VerteDinde VerteDinde deleted the add_allocationtype_kold_patch branch January 5, 2022 19:43
@release-clerk
Copy link

release-clerk bot commented Jan 5, 2022

Release Notes Persisted

Fixes a potential crash in v8 by using allocation type: kOld in v8 ScriptOrModule legacy lifetime

@trop
Copy link
Contributor

trop bot commented Jan 5, 2022

I have automatically backported this PR to "17-x-y", please check out #32355

@kromain
Copy link
Contributor

kromain commented Jan 11, 2022

the fix has been reviewed and merged upstream now: https://chromium.googlesource.com/v8/v8.git/+/d6f8af01693d0b00638d129aad046d4525909f77

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
new-pr 🌱 PR opened in the last 24 hours semver/patch backwards-compatible bug fixes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants