FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

src: fix reading empty string views in Blob[De]serializer by joyeecheung · Pull Request #52000 · nodejs/node · GitHub

/ node Public

src: fix reading empty string views in Blob[De]serializer - #52000

Merged
nodejs-github-bot merged 2 commits into
nodejs:mainfrom
joyeecheung:fix-serdes-0
Mar 10, 2024
Merged

src: fix reading empty string views in Blob[De]serializer#52000
nodejs-github-bot merged 2 commits into
nodejs:mainfrom
joyeecheung:fix-serdes-0

Conversation

Copy link
Copy Markdown
Member

The string writing/reading was intended for debugging info in snapshot, which had a CHECK_GT(length, 0) check, it then got repurposed for SEA resource writing/reading and turned into a helper for string views, but was not updated to handle empty views, causing occasional crash in the CI when the read is protected. This patch fixes it.

Fixes: #50740

nodejs-github-bot added c++ Issues and PRs that require attention from people who are familiar with C++. needs-ci PRs that need a full CI run. labels Mar 7, 2024

targos commented Mar 7, 2024

Copy link
Copy Markdown
Member

The functions are supposed to return something.

The string writing/reading was intended for debugging info
in snapshot, which had a CHECK_GT(length, 0) check, it then
got repurposed for SEA resource writing/reading and turned
into a helper for string views, but was not updated to handle
empty views, causing occasional crash in the CI when the
read is protected. This patch fixes it.

Copy link
Copy Markdown
Member Author

oops, forgot to commit my local changes before pushing

joyeecheung added the request-ci Add this label to start a Jenkins CI on a PR. label Mar 7, 2024
github-actions Bot removed the request-ci Add this label to start a Jenkins CI on a PR. label Mar 7, 2024

Copy link
Copy Markdown
Collaborator

targos commented Mar 7, 2024

Copy link
Copy Markdown
Member

This seems to break tests instead of removing flakyness.

Copy link
Copy Markdown
Member Author

Hmm, need to update the assertion in LoadEnvironment..

joyeecheung added the request-ci Add this label to start a Jenkins CI on a PR. label Mar 7, 2024
github-actions Bot removed the request-ci Add this label to start a Jenkins CI on a PR. label Mar 7, 2024

Copy link
Copy Markdown
Collaborator

Copy link
Copy Markdown
Collaborator

joyeecheung added commit-queue Add this label to land a pull request using GitHub Actions. commit-queue-squash Add this label to instruct the Commit Queue to squash all the PR commits into the first one. labels Mar 10, 2024
nodejs-github-bot removed the commit-queue Add this label to land a pull request using GitHub Actions. label Mar 10, 2024
nodejs-github-bot merged commit 1f19316 into nodejs:main Mar 10, 2024

Copy link
Copy Markdown
Collaborator

Landed in 1f19316

marco-ippolito pushed a commit that referenced this pull request May 2, 2024
The string writing/reading was intended for debugging info
in snapshot, which had a CHECK_GT(length, 0) check, it then
got repurposed for SEA resource writing/reading and turned
into a helper for string views, but was not updated to handle
empty views, causing occasional crash in the CI when the
read is protected. This patch fixes it.

PR-URL: #52000
Fixes: #50740
Reviewed-By: Michaël Zasso <targos@protonmail.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to 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++. commit-queue-squash Add this label to instruct the Commit Queue to squash all the PR commits into the first one. needs-ci PRs that need a full CI run.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

SEA tests run into SIGSEGV during SEA execution

5 participants


Back | FazBrowse Home | New Git URL