fs: fix not found close creation context#53910
Closed
anonrig wants to merge 1 commit intonodejs:mainfrom
Closed
Conversation
Collaborator
Member
|
FWIW I couldn't reproduce with that snippet (unless my computer crashing counts 🤣)! |
Member
Author
|
@redyetidev I added a test which fails on macOS. If you have a hard limit on "number of open files" in environments like windows, it would throw an error, but the goal is to crash, not not to have errors. |
Member
|
Thanks for adding the test :-) |
avivkeller
reviewed
Jul 17, 2024
Member
avivkeller
left a comment
There was a problem hiding this comment.
For the rare chance that test-fs-close is moved for some reason.
Collaborator
Collaborator
Collaborator
Member
|
This looks related? https://ci.nodejs.org/job/node-test-commit-arm-debug/13783/nodes=ubuntu2004_debug-arm64/consoleFull 15:42:00 not ok 1374 parallel/test-fs-close-fast-api
15:42:00 ---
15:42:00 duration_ms: 8968.09100
15:42:00 severity: crashed
15:42:00 exitcode: -6
15:42:00 stack: |-
15:42:00 undefined
15:42:00 FATAL ERROR: v8::HandleScope::CreateHandle() Cannot create a handle without a HandleScope
15:42:00 ----- Native stack trace -----
15:42:00
15:42:00 1: 0xaaaab4399ce4 node::DumpNativeBacktrace(_IO_FILE*) [out/Debug/node]
15:42:00 2: 0xaaaab44e5018 node::OnFatalError(char const*, char const*) [out/Debug/node]
15:42:00 3: 0xaaaab4950dc0 v8::Utils::ReportApiFailure(char const*, char const*) [out/Debug/node]
15:42:00 4: 0xaaaab4cfd02c v8::internal::HandleScope::Extend(v8::internal::Isolate*) [out/Debug/node]
15:42:00 5: 0xaaaab49412d0 v8::internal::HandleScope::CreateHandle(v8::internal::Isolate*, unsigned long) [out/Debug/node]
15:42:00 6: 0xaaaab4990120 v8::Object::GetCreationContext() [out/Debug/node]
15:42:00 7: 0xaaaab49901b0 v8::Object::GetCreationContextChecked() [out/Debug/node]
15:42:00 8: 0xaaaab44f3a9c [out/Debug/node]
15:42:00 9: 0xffff98069f10
15:42:00 ... |
Member
Author
|
@santigimeno @joyeecheung can you take a look? |
Member
|
For reference, still occurs on this PR (at least from my testing). |
2 tasks
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
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.
Referencing a similar problem fixed by @santigimeno on #51286 (comment), this PR should fix the
No creation contextbug for close.The easiest way to reproduce this is via:
Fixes #53902