René's URL Explorer Experiment


Title: fs.realpath infinite loop · Issue #60295 · nodejs/node · GitHub

Open Graph Title: fs.realpath infinite loop · Issue #60295 · nodejs/node

X Title: fs.realpath infinite loop · Issue #60295 · nodejs/node

Description: Version v25.0.0 Platform uname -a Linux [hostname] 6.8.0-1039-aws #41~22.04.1-Ubuntu SMP Thu Sep 11 10:54:48 UTC 2025 x86_64 x86_64 x86_64 GNU/Linux Subsystem fs What steps will reproduce the bug? $ mkdir test $ cd test $ mkdir -p a/b/{c...

Open Graph Description: Version v25.0.0 Platform uname -a Linux [hostname] 6.8.0-1039-aws #41~22.04.1-Ubuntu SMP Thu Sep 11 10:54:48 UTC 2025 x86_64 x86_64 x86_64 GNU/Linux Subsystem fs What steps will reproduce the bug? ...

X Description: Version v25.0.0 Platform uname -a Linux [hostname] 6.8.0-1039-aws #41~22.04.1-Ubuntu SMP Thu Sep 11 10:54:48 UTC 2025 x86_64 x86_64 x86_64 GNU/Linux Subsystem fs What steps will reproduce the bug? ...

Opengraph URL: https://github.com/nodejs/node/issues/60295

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"fs.realpath infinite loop","articleBody":"### Version\n\nv25.0.0\n\n### Platform\n\n```text\nuname -a\nLinux [hostname] 6.8.0-1039-aws #41~22.04.1-Ubuntu SMP Thu Sep 11 10:54:48 UTC 2025 x86_64 x86_64 x86_64 GNU/Linux\n```\n\n### Subsystem\n\nfs\n\n### What steps will reproduce the bug?\n\n```\n$ mkdir test\n$ cd test\n$ mkdir -p a/b/{c,d}\n$ ln -s a/b/c  # Make symlink to c dir in a/b\n$ ln -s \"c/../d\"  # Make symlink to d dir via c symlink\n$ node -e \"const fs = require('fs'); console.log(fs.realpathSync('d'));\"\n```\nThe `node` call never returns. If I call it with `strace` it's just checking the same file over and over:\n```\n...\nstatx(AT_FDCWD, \"/home/niko/test/d\", AT_STATX_SYNC_AS_STAT|AT_SYMLINK_NOFOLLOW, STATX_ALL, {stx_mask=STATX_ALL|STATX_MNT_ID, stx_attributes=0, stx_mode=S_IFLNK|0777, stx_size=6, ...}) = 0\nstatx(AT_FDCWD, \"/home/niko/test/d\", AT_STATX_SYNC_AS_STAT|AT_SYMLINK_NOFOLLOW, STATX_ALL, {stx_mask=STATX_ALL|STATX_MNT_ID, stx_attributes=0, stx_mode=S_IFLNK|0777, stx_size=6, ...}) = 0\n...\n```\n\n### How often does it reproduce? Is there a required condition?\n\nReproduces every time.\n\n### What is the expected behavior? Why is that the expected behavior?\n\nExpected behavior is that the realpath would be printed to the console:\n```\n$ node -e \"const fs = require('fs'); console.log(fs.realpathSync('d'));\"\n/home/niko/test/a/b/d\n```\n\nNote that `realpathSync.native` does work properly:\n```\n$ node -e \"const fs = require('fs'); console.log(fs.realpathSync.native('d'));\"\n/home/niko/test/a/b/d\n```\n\n### What do you see instead?\n\nAn infinite loop (see Steps section above).\n\n### Additional information\n\n_No response_","author":{"url":"https://github.com/adzenith","@type":"Person","name":"adzenith"},"datePublished":"2025-10-17T13:14:48Z","url":"https://github.com/nodejs/node/issues/60295"}

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:1a6116d0-990e-d2df-b9c3-fda59e99b508
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idAF26:33F13D:DEC2AE:1324C65:6AFBF266
html-safe-nonceed75ccc685218262c5cd3d78a569712c50387a6fd357fe978c1e688e34cd239d
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBRjI2OjMzRjEzRDpERUMyQUU6MTMyNEM2NTo2QUZCRjI2NiIsInZpc2l0b3JfaWQiOiI1Mzg3NjkxNDc2MDU4MDc3MTgiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac65e45dbea66f37cfeee35f3215d56f91abecc1b440d45b130ec54437ab9f3152
hovercard-subject-tagissue:3526145422
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/nodejs/node/60295/issue_layout
twitter:imagehttps://opengraph.githubassets.com/455dcae1f2911385f59e90b1344e475cc30c701fe8b8e1572395767fa99aab97/nodejs/node/issues/60295
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/455dcae1f2911385f59e90b1344e475cc30c701fe8b8e1572395767fa99aab97/nodejs/node/issues/60295
og:image:altVersion v25.0.0 Platform uname -a Linux [hostname] 6.8.0-1039-aws #41~22.04.1-Ubuntu SMP Thu Sep 11 10:54:48 UTC 2025 x86_64 x86_64 x86_64 GNU/Linux Subsystem fs What steps will reproduce the bug? ...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameadzenith
hostnamegithub.com
expected-hostnamegithub.com
Nonefa74413a1d84dac536fcca0740780bcbd3207bafec0e51873b73ff8e8cca032f
turbo-cache-controlno-preview
go-importgithub.com/nodejs/node git https://github.com/nodejs/node.git
octolytics-dimension-user_id9950313
octolytics-dimension-user_loginnodejs
octolytics-dimension-repository_id27193779
octolytics-dimension-repository_nwonodejs/node
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id27193779
octolytics-dimension-repository_network_root_nwonodejs/node
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
releaseb3b5633a74535d9c23385512d534c66c8fde1907
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/nodejs/node/issues/60295#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fnodejs%2Fnode%2Fissues%2F60295
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fnodejs%2Fnode%2Fissues%2F60295
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=nodejs%2Fnode
Reloadhttps://github.com/nodejs/node/issues/60295
Reloadhttps://github.com/nodejs/node/issues/60295
Reloadhttps://github.com/nodejs/node/issues/60295
nodejshttps://github.com/nodejs
nodehttps://github.com/nodejs/node
Codehttps://github.com/nodejs/node
Issues644 (644)https://github.com/nodejs/node/issues
Pull requests679 (679)https://github.com/nodejs/node/pulls
Actionshttps://github.com/nodejs/node/actions
Projectshttps://github.com/nodejs/node/projects
Security and qualityhttps://github.com/nodejs/node/security
Insightshttps://github.com/nodejs/node/pulse
https://github.com/nodejs/node
New issuehttps://github.com/login?return_to=https://github.com/nodejs/node/issues/60295
New issuehttps://github.com/login?return_to=https://github.com/nodejs/node/issues/60295
#65457https://github.com/nodejs/node/pull/65457
fs.realpath infinite loophttps://github.com/nodejs/node/issues/60295#top
#65457https://github.com/nodejs/node/pull/65457
https://github.com/adzenith
adzenithhttps://github.com/adzenith
on Oct 17, 2025https://github.com/nodejs/node/issues/60295#issue-3526145422
adzenithhttps://github.com/adzenith
on Oct 17, 2025https://github.com/nodejs/node/issues/60295#event-20344627488
Use realpath.nativehttps://github.com/adzenith/vscode-symlink-follow/commit/cd9a5792931fe6a192a63de1501c3680bd25ba3b
cd9a579https://github.com/adzenith/vscode-symlink-follow/commit/cd9a5792931fe6a192a63de1501c3680bd25ba3b
fix: use realpath.nativehttps://github.com/adzenith/vscode-symlink-follow/commit/d5e6a88204bf2070b1d25540608b8f79338955bf
d5e6a88https://github.com/adzenith/vscode-symlink-follow/commit/d5e6a88204bf2070b1d25540608b8f79338955bf
https://github.com/peixotoleonardo
peixotoleonardohttps://github.com/peixotoleonardo
on Oct 20, 2025https://github.com/nodejs/node/issues/60295#issuecomment-3423550649
https://github.com/targos
targoshttps://github.com/targos
on Oct 21, 2025https://github.com/nodejs/node/issues/60295#issuecomment-3425087872
https://github.com/mattskel
mattskelhttps://github.com/mattskel
on Jan 5, 2026https://github.com/nodejs/node/issues/60295#issuecomment-3710150246
@adzenithhttps://github.com/adzenith
@targoshttps://github.com/targos
mattskelhttps://github.com/mattskel
on Jan 15, 2026https://github.com/nodejs/node/issues/60295#event-22068998563
lib: fix infinite loop in fs.realpathSynchttps://github.com/mattskel/node/commit/1ebe380833cc7e7961b135b27ef9113bf9db5613
1ebe380https://github.com/mattskel/node/commit/1ebe380833cc7e7961b135b27ef9113bf9db5613
lib: fix infinite loop in fs.realpathSynchttps://github.com/mattskel/node/commit/2914f1e1bea975ee2c2ca164e29b767d404dc989
2914f1ehttps://github.com/mattskel/node/commit/2914f1e1bea975ee2c2ca164e29b767d404dc989
https://github.com/apps/github-actions
github-actionshttps://github.com/apps/github-actions
on Jul 20, 2026https://github.com/nodejs/node/issues/60295#issuecomment-5019621246
GitHub Actionshttps://help.github.com/en/actions
github-actionshttps://github.com/apps/github-actions
staleIssues and PRs marked stale due to inactivity and scheduled for automatic closure.https://github.com/nodejs/node/issues?q=state%3Aopen%20label%3A%22stale%22
on Jul 20, 2026https://github.com/nodejs/node/issues/60295#event-28198558942
https://github.com/apps/github-actions
github-actionshttps://github.com/apps/github-actions
on Aug 20, 2026https://github.com/nodejs/node/issues/60295#issuecomment-5350107565
GitHub Actionshttps://help.github.com/en/actions
github-actionshttps://github.com/apps/github-actions
not plannedhttps://github.com/nodejs/node/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Anot-planned
on Aug 20, 2026https://github.com/nodejs/node/issues/60295#event-29716972274
https://github.com/adzenith
adzenithhttps://github.com/adzenith
on Aug 22, 2026https://github.com/nodejs/node/issues/60295#issuecomment-5378754980
jazellyhttps://github.com/jazelly
on Aug 22, 2026https://github.com/nodejs/node/issues/60295#event-29845193019
efekrsklhttps://github.com/efekrskl
staleIssues and PRs marked stale due to inactivity and scheduled for automatic closure.https://github.com/nodejs/node/issues?q=state%3Aopen%20label%3A%22stale%22
on Aug 22, 2026https://github.com/nodejs/node/issues/60295#event-29854020794
jazellyhttps://github.com/jazelly
on Sep 27, 2026https://github.com/nodejs/node/issues/60295#event-31921612567
fs: resolve symlinks before parent componentshttps://github.com/jazelly/node/commit/9d006210177852c444f107f0d798132bd3912325
9d00621https://github.com/jazelly/node/commit/9d006210177852c444f107f0d798132bd3912325
jazellyhttps://github.com/jazelly
on Nov 6, 2026https://github.com/nodejs/node/issues/60295#event-35346577215
fs: resolve symlinks before parent componentshttps://github.com/jazelly/node/commit/d1c5735b846ef92a25f863c00fa7354533c22327
d1c5735https://github.com/jazelly/node/commit/d1c5735b846ef92a25f863c00fa7354533c22327
nodejs-github-bothttps://github.com/nodejs-github-bot
completedhttps://github.com/nodejs/node/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
#65457https://github.com/nodejs/node/pull/65457
on Nov 10, 2026https://github.com/nodejs/node/issues/60295#event-35679210190
MikeMcC399https://github.com/MikeMcC399
on Nov 10, 2026https://github.com/nodejs/node/issues/60295#event-35683480439
fs: resolve symlinks before parent componentshttps://github.com/MikeMcC399/node/commit/40aad9ed15d3f67e10982e8c63c88fb92b7d01d2
40aad9ehttps://github.com/MikeMcC399/node/commit/40aad9ed15d3f67e10982e8c63c88fb92b7d01d2
aduh95https://github.com/aduh95
on Nov 11, 2026https://github.com/nodejs/node/issues/60295#event-35823459275
fs: resolve symlinks before parent componentshttps://github.com/nodejs/node/commit/b9cdb3dbabecbce95c41b4c8ff454ef9849e87db
b9cdb3dhttps://github.com/nodejs/node/commit/b9cdb3dbabecbce95c41b4c8ff454ef9849e87db
fs: resolve symlinks before parent componentshttps://github.com/nodejs/node/commit/df76b0ff64fea0e038b0d76a01a35ae83e441b3f
df76b0fhttps://github.com/nodejs/node/commit/df76b0ff64fea0e038b0d76a01a35ae83e441b3f
fs: resolve symlinks before parent componentshttps://github.com/nodejs/node/commit/9960109e994bd481410f09013a9786ec56099ef7
9960109https://github.com/nodejs/node/commit/9960109e994bd481410f09013a9786ec56099ef7
Sign up for freehttps://github.com/signup?return_to=https://github.com/nodejs/node/issues/60295
Sign in to commenthttps://github.com/login?return_to=https://github.com/nodejs/node/issues/60295
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.