GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||
GeezerVison is showing github.com — test: deflake test-filehandle-close by panva · Pull Request #66750 · nodejs/node Conversation
Member
An fd released with closeSync() can be reused by background I/O before FileHandle.close() runs in the thread pool, so closing it can succeed. Construct the handle around a high invalid fd to keep the native EBADF rejection path deterministic. Refs: https://github.com/nodejs/reliability/blob/main/reports/2026-10-15.md Assisted-by: Codex
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactionsAn fd released with closeSync() can be reused by background I/O before FileHandle.close() runs in the thread pool, so closing it can succeed. Construct the handle around a high invalid fd to keep the native EBADF rejection path deterministic. Refs: https://github.com/nodejs/reliability/blob/main/reports/2026-10-15.md Signed-off-by: Filip Skokan <[email protected]> Assisted-by: Codex
aduh95
approved these changes
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Switching to internal API is not very satisfying, but I guess the test still does its job of validating the error shape
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
Collaborator
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
gurgunday
approved these changes
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Lgtm
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
watilde
approved these changes
lpinca
approved these changes
UlisesGascon
approved these changes
Uh oh!
There was an error while loading. Please reload this page.
Collaborator
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
nodejs-github-bot
pushed a commit
that referenced
this pull request
The child closed stdin and expected the next open() to return fd 0, but another thread can open a descriptor in between and take it. Pass the file to the child as stdin and wrap fd 0 in a FileHandle, so it is open from the start. After the transfer is discarded, accept an fd 0 that was reused for another file. Signed-off-by: Christian Aurich Zanettini Martins <[email protected]> PR-URL: #66980 Refs: nodejs/reliability#1701 Refs: #66750 Reviewed-By: Filip Skokan <[email protected]>
aduh95
pushed a commit
that referenced
this pull request
The child closed stdin and expected the next open() to return fd 0, but another thread can open a descriptor in between and take it. Pass the file to the child as stdin and wrap fd 0 in a FileHandle, so it is open from the start. After the transfer is discarded, accept an fd 0 that was reused for another file. Signed-off-by: Christian Aurich Zanettini Martins <[email protected]> PR-URL: #66980 Refs: nodejs/reliability#1701 Refs: #66750 Reviewed-By: Filip Skokan <[email protected]>
aduh95
pushed a commit
that referenced
this pull request
An fd released with closeSync() can be reused by background I/O before FileHandle.close() runs in the thread pool, so closing it can succeed. Construct the handle around a high invalid fd to keep the native EBADF rejection path deterministic. Refs: https://github.com/nodejs/reliability/blob/main/reports/2026-10-15.md Signed-off-by: Filip Skokan <[email protected]> Assisted-by: Codex PR-URL: #66750 Reviewed-By: Antoine du Hamel <[email protected]> Reviewed-By: Gürgün Dayıoğlu <[email protected]> Reviewed-By: Daijiro Wachi <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Ulises Gascón <[email protected]>
aduh95
pushed a commit
that referenced
this pull request
The child closed stdin and expected the next open() to return fd 0, but another thread can open a descriptor in between and take it. Pass the file to the child as stdin and wrap fd 0 in a FileHandle, so it is open from the start. After the transfer is discarded, accept an fd 0 that was reused for another file. Signed-off-by: Christian Aurich Zanettini Martins <[email protected]> PR-URL: #66980 Refs: nodejs/reliability#1701 Refs: #66750 Reviewed-By: Filip Skokan <[email protected]>
gabylb
pushed a commit
to gabylb/node
that referenced
this pull request
An fd released with closeSync() can be reused by background I/O before FileHandle.close() runs in the thread pool, so closing it can succeed. Construct the handle around a high invalid fd to keep the native EBADF rejection path deterministic. Refs: https://github.com/nodejs/reliability/blob/main/reports/2026-10-15.md Signed-off-by: Filip Skokan <[email protected]> Assisted-by: Codex PR-URL: nodejs#66750 Reviewed-By: Antoine du Hamel <[email protected]> Reviewed-By: Gürgün Dayıoğlu <[email protected]> Reviewed-By: Daijiro Wachi <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Ulises Gascón <[email protected]>
gabylb
pushed a commit
to gabylb/node
that referenced
this pull request
The child closed stdin and expected the next open() to return fd 0, but another thread can open a descriptor in between and take it. Pass the file to the child as stdin and wrap fd 0 in a FileHandle, so it is open from the start. After the transfer is discarded, accept an fd 0 that was reused for another file. Signed-off-by: Christian Aurich Zanettini Martins <[email protected]> PR-URL: nodejs#66980 Refs: nodejs/reliability#1701 Refs: nodejs#66750 Reviewed-By: Filip Skokan <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
ReviewersUh oh!
There was an error while loading. Please reload this page. AssigneesNo one assignedLabels
author ready
ProjectsMilestoneNo milestoneDevelopmentSuccessfully merging this pull request may close these issues. Uh oh!
There was an error while loading. Please reload this page. 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. |