Title: fs.chown crashes when uid is -1 · Issue #58826 · nodejs/node · GitHub
Open Graph Title: fs.chown crashes when uid is -1 · Issue #58826 · nodejs/node
X Title: fs.chown crashes when uid is -1 · Issue #58826 · nodejs/node
Description: Version 24.3 Platform Darwin kt3k-mac-2.local 23.6.0 Darwin Kernel Version 23.6.0: Mon Jul 29 21:14:21 PDT 2024; root:xnu-10063.141.2~1/RELEASE_ARM64_T8103 arm64 Subsystem fs What steps will reproduce the bug? Run import fs from "node:fs...
Open Graph Description: Version 24.3 Platform Darwin kt3k-mac-2.local 23.6.0 Darwin Kernel Version 23.6.0: Mon Jul 29 21:14:21 PDT 2024; root:xnu-10063.141.2~1/RELEASE_ARM64_T8103 arm64 Subsystem fs What steps will reprod...
X Description: Version 24.3 Platform Darwin kt3k-mac-2.local 23.6.0 Darwin Kernel Version 23.6.0: Mon Jul 29 21:14:21 PDT 2024; root:xnu-10063.141.2~1/RELEASE_ARM64_T8103 arm64 Subsystem fs What steps will reprod...
Opengraph URL: https://github.com/nodejs/node/issues/58826
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"fs.chown crashes when uid is -1","articleBody":"### Version\n\n24.3\n\n### Platform\n\n```text\nDarwin kt3k-mac-2.local 23.6.0 Darwin Kernel Version 23.6.0: Mon Jul 29 21:14:21 PDT 2024; root:xnu-10063.141.2~1/RELEASE_ARM64_T8103 arm64\n```\n\n### Subsystem\n\nfs\n\n### What steps will reproduce the bug?\n\nRun\n```js\nimport fs from \"node:fs\";\nfs.chown(\"foo\", -1, 501, console.log);\n```\n\n### How often does it reproduce? Is there a required condition?\n\nalways\n\n### What is the expected behavior? Why is that the expected behavior?\n\ndoes not crash\n\n### What do you see instead?\n\ncrashes\n\n### Additional information\n\nThis didn't happen with Node 24.2","author":{"url":"https://github.com/kt3k","@type":"Person","name":"kt3k"},"datePublished":"2025-06-25T01:50:31.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":5},"url":"https://github.com/58826/node/issues/58826"}
| 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:726fc976-d828-c241-fd88-7b56ff7ef692 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 967C:3B7C3D:E7B7EB:ED31CF:6A4DC50A |
| html-safe-nonce | 550a7af2df6c1678cea05f57551f6c9966c1554b863cd82e98fe0bcc2eb82673 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5NjdDOjNCN0MzRDpFN0I3RUI6RUQzMUNGOjZBNERDNTBBIiwidmlzaXRvcl9pZCI6IjI2MzY2MDIxMDYwNjkyMzkwNTAiLCJyZWdpb25fZWRnZSI6InNlYSIsInJlZ2lvbl9yZW5kZXIiOiJzZWEifQ== |
| visitor-hmac | 7b27a3c5ab9ec5edd255d5e35244fdc6a3d6588b3997a128d6c4ad50f2a7efd1 |
| hovercard-subject-tag | issue:3173785601 |
| 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/58826/issue_layout |
| twitter:image | https://opengraph.githubassets.com/2f1932d7d6f6bad287120d5600f99526bed52adc5f0003eadd1fd1318cf61a55/nodejs/node/issues/58826 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/2f1932d7d6f6bad287120d5600f99526bed52adc5f0003eadd1fd1318cf61a55/nodejs/node/issues/58826 |
| og:image:alt | Version 24.3 Platform Darwin kt3k-mac-2.local 23.6.0 Darwin Kernel Version 23.6.0: Mon Jul 29 21:14:21 PDT 2024; root:xnu-10063.141.2~1/RELEASE_ARM64_T8103 arm64 Subsystem fs What steps will reprod... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | kt3k |
| hostname | github.com |
| expected-hostname | github.com |
| None | 06b8a6144231bf3a234f1c2e9993861e07ce98a905912b114aa386c2d7e84b33 |
| 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 | 1d344bdb7547fe6bca17a59bb2b8aac3dc9532a0 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width