GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — v8: backport 22116dd6c884c026225e56dd8e442a660193e729 by laverdet · Pull Request #21992 · nodejs/node

Conversation

@laverdet

@laverdet laverdet commented Jul 27, 2018

Copy link
Copy Markdown
Contributor

This is a backport for v8 commit 22116dd6 which fixes v8 issue #7857. The issue does not affect core nodejs but does affect my native npm module isolated-vm. Essentially v8 will segfault if you try to create a startup snapshot of an isolate that contains a closure.

The snapshot crash as it pertains to isolated-vm was originally reported on superfly/fly#101.

The bug was introduced in v8 commit 6bd1d3c2, landed in v8 version 6.7.247, which made its way onto nodejs v10.2.0.

The fix landed in v8 version 6.9.186 will probably never see the light of day on the v10x branch of nodejs, which leads me to this PR :)

The patch applied cleanly with no conflicts.

Refs: https://github.com/v8/v8/commit/22116dd6c884c026225e56dd8e442a660193e729

Original commit message:

    [snapshot] fix resetting function code.

    Unconditionally setting the JSFunction code to that of the SFI
    may skip initializing the feedback vector.

    [email protected]

    Bug: v8:7857
    Cq-Include-Trybots: luci.chromium.try:linux_chromium_rel_ng
    Change-Id: I65d4bf32493be4cade2eaf3d665d44f93e80f809
    Reviewed-on: https://chromium-review.googlesource.com/1107618
    Commit-Queue: Yang Guo <[email protected]>
    Reviewed-by: Leszek Swirski <[email protected]>
    Cr-Commit-Position: refs/heads/master@{#53881}
Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • commit message follows commit guidelines

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

bricss reacted with thumbs up emoji
All reactions
  • 👍 1 reaction
@nodejs-github-bot nodejs-github-bot added v10.x v8 engine Issues and PRs related to the V8 dependency. labels Jul 27, 2018
@mscdex

mscdex commented Jul 27, 2018

Copy link
Copy Markdown
Contributor

I believe the v8_embedder_string variable in common.gypi needs to be incremented any time we float patches on top of V8.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@mscdex

mscdex commented Jul 27, 2018

Copy link
Copy Markdown
Contributor

/cc @nodejs/v8-update

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@laverdet
laverdet force-pushed the v10.x-staging branch from 0bba52e to c1181f9 Compare July 27, 2018 02:56
@laverdet

laverdet commented Jul 27, 2018

Copy link
Copy Markdown
Contributor Author

Thanks, I went ahead and updated the PR.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

TimothyGu
TimothyGu approved these changes Jul 28, 2018
View reviewed changes
@targos

targos commented Jul 29, 2018

Copy link
Copy Markdown
Member

@laverdet Could you please retarget this PR to the master branch (and change the embedder string accordingly)? We are still at V8 6.8 there and that version is going to be backported to v10.x.

Also, the first line of the commit message is a bit too long and should start with "deps".
May I suggest: deps: cherry-pick 22116dd from upstream V8? (we use "backport" when manual changes were necessary because of conflicts, otherwise it's "cherry-pick").

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@laverdet
laverdet changed the base branch from v10.x-staging to master July 29, 2018 16:43
@laverdet
laverdet force-pushed the v10.x-staging branch from c1181f9 to 2f2755e Compare July 29, 2018 16:43
@laverdet

laverdet commented Jul 29, 2018

Copy link
Copy Markdown
Contributor Author

@targos alright, I've made those changes.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

targos
targos approved these changes Aug 1, 2018
View reviewed changes

@targos targos left a comment

Copy link
Copy Markdown
Member

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@targos targos removed the v10.x label Aug 1, 2018
@targos

targos commented Aug 1, 2018

Copy link
Copy Markdown
Member

CI: https://ci.nodejs.org/job/node-test-pull-request/16115/
V8 CI: https://ci.nodejs.org/job/node-test-commit-v8-linux/1560/

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

fhinkel
fhinkel approved these changes Aug 8, 2018
View reviewed changes
@laverdet @targos
deps: cherry-pick 22116dd from upstream V8
e23ea6f
Refs: v8/v8@22116dd

Original commit message:

    [snapshot] fix resetting function code.

    Unconditionally setting the JSFunction code to that of the SFI
    may skip initializing the feedback vector.

    [email protected]

    Bug: v8:7857
    Cq-Include-Trybots: luci.chromium.try:linux_chromium_rel_ng
    Change-Id: I65d4bf32493be4cade2eaf3d665d44f93e80f809
    Reviewed-on: https://chromium-review.googlesource.com/1107618
    Commit-Queue: Yang Guo <[email protected]>
    Reviewed-by: Leszek Swirski <[email protected]>
    Cr-Commit-Position: refs/heads/master@{nodejs#53881}
@targos
targos force-pushed the v10.x-staging branch from 2f2755e to e23ea6f Compare September 3, 2018 17:55
@targos

targos commented Sep 3, 2018

Copy link
Copy Markdown
Member

I rebased the PR on top of master.
New CI: https://ci.nodejs.org/job/node-test-pull-request/16992/
V8: https://ci.nodejs.org/job/node-test-commit-v8-linux/1648/

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

devsnek
devsnek approved these changes Sep 3, 2018
View reviewed changes
@targos

targos commented Sep 3, 2018 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Member

The V8 test fails at compile time:

Edit: sorry, wrong PR.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@targos

targos commented Sep 4, 2018 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Member

Fixed V8 CI: https://ci.nodejs.org/job/node-test-commit-v8-linux/1654/
Edit: rebuild: https://ci.nodejs.org/job/node-test-commit-v8-linux/1659/

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@targos targos mentioned this pull request Sep 4, 2018
Wrong state after fixing git am conflict nodejs/node-core-utils#277
Closed
@targos

targos commented Sep 4, 2018

Copy link
Copy Markdown
Member

Landed in 0d3da39

laverdet reacted with hooray emoji
All reactions
  • 🎉 1 reaction

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@targos targos closed this Sep 4, 2018
targos pushed a commit that referenced this pull request Sep 4, 2018
@laverdet @targos
deps: cherry-pick 22116dd from upstream V8
0d3da39
Refs: v8/v8@22116dd

Original commit message:

    [snapshot] fix resetting function code.

    Unconditionally setting the JSFunction code to that of the SFI
    may skip initializing the feedback vector.

    [email protected]

    Bug: v8:7857
    Cq-Include-Trybots: luci.chromium.try:linux_chromium_rel_ng
    Change-Id: I65d4bf32493be4cade2eaf3d665d44f93e80f809
    Reviewed-on: https://chromium-review.googlesource.com/1107618
    Commit-Queue: Yang Guo <[email protected]>
    Reviewed-by: Leszek Swirski <[email protected]>
    Cr-Commit-Position: refs/heads/master@{#53881}

PR-URL: #21992
Reviewed-By: Tiancheng "Timothy" Gu <[email protected]>
Reviewed-By: Michaël Zasso <[email protected]>
Reviewed-By: Franziska Hinkelmann <[email protected]>
Reviewed-By: Gus Caplan <[email protected]>
targos pushed a commit that referenced this pull request Sep 5, 2018
@laverdet @targos
deps: cherry-pick 22116dd from upstream V8
212e6bb
Refs: v8/v8@22116dd

Original commit message:

    [snapshot] fix resetting function code.

    Unconditionally setting the JSFunction code to that of the SFI
    may skip initializing the feedback vector.

    [email protected]

    Bug: v8:7857
    Cq-Include-Trybots: luci.chromium.try:linux_chromium_rel_ng
    Change-Id: I65d4bf32493be4cade2eaf3d665d44f93e80f809
    Reviewed-on: https://chromium-review.googlesource.com/1107618
    Commit-Queue: Yang Guo <[email protected]>
    Reviewed-by: Leszek Swirski <[email protected]>
    Cr-Commit-Position: refs/heads/master@{#53881}

PR-URL: #21992
Reviewed-By: Tiancheng "Timothy" Gu <[email protected]>
Reviewed-By: Michaël Zasso <[email protected]>
Reviewed-By: Franziska Hinkelmann <[email protected]>
Reviewed-By: Gus Caplan <[email protected]>
@targos targos mentioned this pull request Sep 5, 2018
Release proposal: v10.10.0 #22716
Merged
targos pushed a commit that referenced this pull request Sep 6, 2018
@laverdet @targos
deps: cherry-pick 22116dd from upstream V8
037906b
Refs: v8/v8@22116dd

Original commit message:

    [snapshot] fix resetting function code.

    Unconditionally setting the JSFunction code to that of the SFI
    may skip initializing the feedback vector.

    [email protected]

    Bug: v8:7857
    Cq-Include-Trybots: luci.chromium.try:linux_chromium_rel_ng
    Change-Id: I65d4bf32493be4cade2eaf3d665d44f93e80f809
    Reviewed-on: https://chromium-review.googlesource.com/1107618
    Commit-Queue: Yang Guo <[email protected]>
    Reviewed-by: Leszek Swirski <[email protected]>
    Cr-Commit-Position: refs/heads/master@{#53881}

PR-URL: #21992
Reviewed-By: Tiancheng "Timothy" Gu <[email protected]>
Reviewed-By: Michaël Zasso <[email protected]>
Reviewed-By: Franziska Hinkelmann <[email protected]>
Reviewed-By: Gus Caplan <[email protected]>
@beevelop beevelop mentioned this pull request Sep 6, 2018
2018-09-06 Version 10.10.0 (Current) @targos beevelop/docker-android-nodejs#236
Closed
@beevelop beevelop mentioned this pull request Sep 6, 2018
2018-09-06 Version 10.10.0 (Current) @targos beevelop/docker-nodejs#221
Closed
@laverdet
laverdet deleted the v10.x-staging branch May 6, 2019 17:10
@aliceUnhinged613 aliceUnhinged613 mentioned this pull request May 16, 2022
[Snyk] Security upgrade gatsby from 2.18.18 to 2.19.36 aliceUnhinged613/node#58
Open
This was referenced May 16, 2022
[Snyk] Security upgrade gatsby from 2.18.18 to 2.19.36 137717unity/node#57
Open
[Snyk] Security upgrade gatsby from 2.18.18 to 2.19.36 Rednickle/node-1#49
Open
@kissofire kissofire mentioned this pull request May 16, 2022
[Snyk] Security upgrade gatsby from 2.13.73 to 2.19.36 kissofire/node#67
Open
@wedataintelligence wedataintelligence mentioned this pull request May 16, 2022
[Snyk] Security upgrade gatsby from 2.18.18 to 2.19.36 wedataintelligence/node#33
Open
@ron-a20 ron-a20 mentioned this pull request May 16, 2022
[Snyk] Security upgrade gatsby from 2.18.18 to 2.19.36 ron-a20/node#66
Open
@molllyn1 molllyn1 mentioned this pull request May 17, 2022
[Snyk] Security upgrade gatsby from 2.18.18 to 2.19.36 molllyn1/node#48
Open
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

4 more reviewers
@fhinkel fhinkel fhinkel approved these changes
@TimothyGu TimothyGu TimothyGu approved these changes
@targos targos targos approved these changes
@devsnek devsnek devsnek approved these changes
Reviewers whose approvals may not affect merge requirements

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

v8 engine Issues and PRs related to the V8 dependency.

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

7 participants

@laverdet @mscdex @targos @fhinkel @TimothyGu @devsnek @nodejs-github-bot
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.