Title: fs::StatFs promise crashes v8 with incorrect argument · Issue #61224 · nodejs/node · GitHub
Open Graph Title: fs::StatFs promise crashes v8 with incorrect argument · Issue #61224 · nodejs/node
X Title: fs::StatFs promise crashes v8 with incorrect argument · Issue #61224 · nodejs/node
Description: Version v24.6.0 Platform Darwin Vesuvius 24.6.0 Darwin Kernel Version 24.6.0: Wed Oct 15 21:12:21 PDT 2025; root:xnu-11417.140.69.703.14~1/RELEASE_X86_64 x86_64 Subsystem fs What steps will reproduce the bug? Run the following code: impo...
Open Graph Description: Version v24.6.0 Platform Darwin Vesuvius 24.6.0 Darwin Kernel Version 24.6.0: Wed Oct 15 21:12:21 PDT 2025; root:xnu-11417.140.69.703.14~1/RELEASE_X86_64 x86_64 Subsystem fs What steps will reprodu...
X Description: Version v24.6.0 Platform Darwin Vesuvius 24.6.0 Darwin Kernel Version 24.6.0: Wed Oct 15 21:12:21 PDT 2025; root:xnu-11417.140.69.703.14~1/RELEASE_X86_64 x86_64 Subsystem fs What steps will reprodu...
Opengraph URL: https://github.com/nodejs/node/issues/61224
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"fs::StatFs promise crashes v8 with incorrect argument","articleBody":"### Version\n\nv24.6.0\n\n### Platform\n\n```text\nDarwin Vesuvius 24.6.0 Darwin Kernel Version 24.6.0: Wed Oct 15 21:12:21 PDT 2025; root:xnu-11417.140.69.703.14~1/RELEASE_X86_64 x86_64\n```\n\n### Subsystem\n\nfs\n\n### What steps will reproduce the bug?\n\nRun the following code:\n```\nimport * as fs from 'node:fs/promises'\nfs.statfs()\n```\nOther arguments such as `null`, `undefined`, `4` or `Symbol()` crash as well.\n\n### How often does it reproduce? Is there a required condition?\n\nIt crashes 100% consistently.\n\n### What is the expected behavior? Why is that the expected behavior?\n\nA thrown error, like maybe an `ERR_INVALID_ARG_TYPE` or something similar.\n\n### What do you see instead?\n\n```\n\n # node[50047]: void node::fs::StatFs(const FunctionCallbackInfo\u003cValue\u003e \u0026) at ../src/node_file.cc:1228\n # Assertion failed: (*path) != nullptr\n\n----- Native stack trace -----\n\n 1: 0x1094142b1 node::Assert(node::AssertionInfo const\u0026) [/usr/local/Cellar/node/24.6.0/bin/node]\n 2: 0x1080c1e39 node::fs::StatFs(v8::FunctionCallbackInfo\u003cv8::Value\u003e const\u0026) [/usr/local/Cellar/node/24.6.0/bin/node]\n 3: 0x108bf644d Builtins_CallApiCallbackGeneric [/usr/local/Cellar/node/24.6.0/bin/node]\n\n----- JavaScript stack trace -----\n\n1: statfs (node:internal/fs/promises:1050:13)\n2: file:///Users/dada/a.js:4:4\n3: run (node:internal/modules/esm/module_job:371:25)\n\n\nfish: Job 1, 'node a.js' terminated by signal SIGABRT (Abort)\n```\n\n### Additional information\n\n_No response_","author":{"url":"https://github.com/msikma","@type":"Person","name":"msikma"},"datePublished":"2025-12-30T14:36:50.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/61224/node/issues/61224"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:ff743689-13cb-b74f-509d-b4641aa5741d |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B532:296F05:C911A6:10FEEB1:6A4D58FD |
| html-safe-nonce | e4d1360f57d5012f1b20d0a317f32641e74bdfb3189238b95fe4f416e984edfc |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCNTMyOjI5NkYwNTpDOTExQTY6MTBGRUVCMTo2QTRENThGRCIsInZpc2l0b3JfaWQiOiIzMDI1ODc2NzQ2MTE1MDQ1NjI5IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | e1e327449caba97c568422542ebe98f6103f81d48473b0297b696e2969c82394 |
| hovercard-subject-tag | issue:3770397920 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/nodejs/node/61224/issue_layout |
| twitter:image | https://opengraph.githubassets.com/849411871a4fef1fa280db356492ea8b73d0ad974f19c598196fcd4c825272c7/nodejs/node/issues/61224 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/849411871a4fef1fa280db356492ea8b73d0ad974f19c598196fcd4c825272c7/nodejs/node/issues/61224 |
| og:image:alt | Version v24.6.0 Platform Darwin Vesuvius 24.6.0 Darwin Kernel Version 24.6.0: Wed Oct 15 21:12:21 PDT 2025; root:xnu-11417.140.69.703.14~1/RELEASE_X86_64 x86_64 Subsystem fs What steps will reprodu... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | msikma |
| hostname | github.com |
| expected-hostname | github.com |
| None | 2a1443ff9733a3016431263ea73c93d8fe00c195eb4a7670ac30e7848f045441 |
| turbo-cache-control | no-preview |
| go-import | github.com/nodejs/node git https://github.com/nodejs/node.git |
| octolytics-dimension-user_id | 9950313 |
| octolytics-dimension-user_login | nodejs |
| octolytics-dimension-repository_id | 27193779 |
| octolytics-dimension-repository_nwo | nodejs/node |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 27193779 |
| octolytics-dimension-repository_network_root_nwo | nodejs/node |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | f3bdd3157ea1f0fd738d408eceeead721acf1dc3 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width