Skip to content

Conversation

@Dossar
Copy link

Based off of #42409 to backport into node 16. Below credit of RaisinTen

Return early when the Inspector StringView to V8 String conversion fails
and returns an empty MaybeLocal instead of running the invalid
ToLocalChecked() assertion.
Fixes: #42407
Signed-off-by: Darshan Sen [email protected]

@nodejs-github-botnodejs-github-bot added c++ Issues and PRs that require attention from people who are familiar with C++. inspector Issues and PRs related to the V8 inspector protocol needs-ci PRs that need a full CI run. v16.x labels May 4, 2022
@Dossar
Copy link
Author

Dossar commented May 4, 2022

@danielleadams I see you're working on v16.15.1 -- this would be a good candidate to backport as well, as it fixes a breaking bug I've found in nightwatch 2.x

@richardlau
Copy link
Member

Please include #42720. The test added in #42409 destabilized the CI.

@Dossar
Copy link
Author

Please include #42720. The test added in #42409 destabilized the CI.

Done!

@aduh95aduh95 changed the title src,inspector: fix empty MaybeLocal crash (backport to node 16)[v16.x backport] src,inspector: fix empty MaybeLocal crashMay 5, 2022
@aduh95
Copy link
Contributor

Can you cherry-pick the original commit that landed on master, so the git author and the full commit message is preserved please?

Return early when the Inspector StringView to V8 String conversion fails and returns an empty MaybeLocal instead of running the invalid ToLocalChecked() assertion. Fixes: nodejs#42407 Signed-off-by: Darshan Sen <[email protected]> PR-URL: nodejs#42409 Reviewed-By: Richard Lau <[email protected]> Reviewed-By: Mohammed Keyvanzadeh <[email protected]> Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Tobias Nießen <[email protected]> Reviewed-By: Juan José Arboleda <[email protected]> Reviewed-By: James M Snell <[email protected]>
@DossarDossarforce-pushed the src,inspector/fix-empty-MaybeLocal-crash branch from 894897c to 730d294CompareMay 26, 2022 12:45
It was disconnecting the runners from the CI server. Not worth having a resource-intensive test for this kind of an edge cases. Fixes: nodejs#42719 Signed-off-by: Darshan Sen <[email protected]> PR-URL: nodejs#42720Fixes: nodejs#42719 Reviewed-By: James M Snell <[email protected]> Reviewed-By: Michaël Zasso <[email protected]> Reviewed-By: Richard Lau <[email protected]> Reviewed-By: Beth Griggs <[email protected]> Reviewed-By: Stewart X Addison <[email protected]> Reviewed-By: Luigi Pinca <[email protected]>
@DossarDossarforce-pushed the src,inspector/fix-empty-MaybeLocal-crash branch from 730d294 to bbd5fe6CompareMay 26, 2022 12:48
@Dossar
Copy link
Author

@richardlau@aduh95 apologies for the delay, I've cherrypicked the commits mentioned.

Commit 97c442a: cherrypicked from be01185
Commit bbd5fe6: cherrypicked from 19064be

@richardlaurichardlau added the request-ci Add this label to start a Jenkins CI on a PR. label May 26, 2022
@github-actionsgithub-actionsbot removed the request-ci Add this label to start a Jenkins CI on a PR. label May 26, 2022
@nodejs-github-bot
Copy link
Collaborator

@nodejs-github-bot
Copy link
Collaborator

@BethGriggsBethGriggs changed the base branch from v16.x to v16.x-stagingMay 31, 2022 09:58
juanarbol pushed a commit that referenced this pull request May 31, 2022
Return early when the Inspector StringView to V8 String conversion fails and returns an empty MaybeLocal instead of running the invalid ToLocalChecked() assertion. Fixes: #42407 Signed-off-by: Darshan Sen <[email protected]> PR-URL: #42409 Backport--PR-URL: #42967 Reviewed-By: Richard Lau <[email protected]> Reviewed-By: Mohammed Keyvanzadeh <[email protected]> Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Tobias Nießen <[email protected]> Reviewed-By: Juan José Arboleda <[email protected]> Reviewed-By: James M Snell <[email protected]>
juanarbol pushed a commit that referenced this pull request Jun 1, 2022
Return early when the Inspector StringView to V8 String conversion fails and returns an empty MaybeLocal instead of running the invalid ToLocalChecked() assertion. Fixes: #42407 Signed-off-by: Darshan Sen <[email protected]> PR-URL: #42409 Backport-PR-URL: #42967 Reviewed-By: Richard Lau <[email protected]> Reviewed-By: Mohammed Keyvanzadeh <[email protected]> Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Tobias Nießen <[email protected]> Reviewed-By: Juan José Arboleda <[email protected]> Reviewed-By: James M Snell <[email protected]>
juanarbol pushed a commit that referenced this pull request Jun 1, 2022
It was disconnecting the runners from the CI server. Not worth having a resource-intensive test for this kind of an edge cases. Fixes: #42719 Signed-off-by: Darshan Sen <[email protected]> PR-URL: #42720 Backport-PR-URL: #42967Fixes: #42719 Reviewed-By: James M Snell <[email protected]> Reviewed-By: Michaël Zasso <[email protected]> Reviewed-By: Richard Lau <[email protected]> Reviewed-By: Beth Griggs <[email protected]> Reviewed-By: Stewart X Addison <[email protected]> Reviewed-By: Luigi Pinca <[email protected]>
@juanarbol
Copy link
Member

This is amazing! Thanks for the help; your first PR goes to an LTS release :shipit:

Landed in 933d9ca...4fd90f1 🎉 💚

BethGriggs pushed a commit that referenced this pull request Jun 1, 2022
Return early when the Inspector StringView to V8 String conversion fails and returns an empty MaybeLocal instead of running the invalid ToLocalChecked() assertion. Fixes: #42407 Signed-off-by: Darshan Sen <[email protected]> PR-URL: #42409 Backport-PR-URL: #42967 Reviewed-By: Richard Lau <[email protected]> Reviewed-By: Mohammed Keyvanzadeh <[email protected]> Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Tobias Nießen <[email protected]> Reviewed-By: Juan José Arboleda <[email protected]> Reviewed-By: James M Snell <[email protected]>
BethGriggs pushed a commit that referenced this pull request Jun 1, 2022
It was disconnecting the runners from the CI server. Not worth having a resource-intensive test for this kind of an edge cases. Fixes: #42719 Signed-off-by: Darshan Sen <[email protected]> PR-URL: #42720 Backport-PR-URL: #42967Fixes: #42719 Reviewed-By: James M Snell <[email protected]> Reviewed-By: Michaël Zasso <[email protected]> Reviewed-By: Richard Lau <[email protected]> Reviewed-By: Beth Griggs <[email protected]> Reviewed-By: Stewart X Addison <[email protected]> Reviewed-By: Luigi Pinca <[email protected]>
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

c++Issues and PRs that require attention from people who are familiar with C++.inspectorIssues and PRs related to the V8 inspector protocolneeds-ciPRs that need a full CI run.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants

@Dossar@richardlau@aduh95@nodejs-github-bot@juanarbol@BethGriggs@RaisinTen