René's URL Explorer Experiment


Title: module.enableCompileCache() never returns on Windows for some cache-directory lengths (spins at 100% CPU) · Issue #66438 · nodejs/node · GitHub

Open Graph Title: module.enableCompileCache() never returns on Windows for some cache-directory lengths (spins at 100% CPU) · Issue #66438 · nodejs/node

X Title: module.enableCompileCache() never returns on Windows for some cache-directory lengths (spins at 100% CPU) · Issue #66438 · nodejs/node

Description: Version v24.18.0 Platform Microsoft Windows 11 Pro 10.0.26200, x64. LongPathsEnabled = 1. Subsystem module (compile cache) What steps will reproduce the bug? Run this PowerShell script. It calls module.enableCompileCache() on directories...

Open Graph Description: Version v24.18.0 Platform Microsoft Windows 11 Pro 10.0.26200, x64. LongPathsEnabled = 1. Subsystem module (compile cache) What steps will reproduce the bug? Run this PowerShell script. It calls mo...

X Description: Version v24.18.0 Platform Microsoft Windows 11 Pro 10.0.26200, x64. LongPathsEnabled = 1. Subsystem module (compile cache) What steps will reproduce the bug? Run this PowerShell script. It calls mo...

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

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"module.enableCompileCache() never returns on Windows for some cache-directory lengths (spins at 100% CPU)","articleBody":"### Version\n\nv24.18.0\n\n### Platform\n\nMicrosoft Windows 11 Pro 10.0.26200, x64. `LongPathsEnabled` = 1.\n\n### Subsystem\n\nmodule (compile cache)\n\n### What steps will reproduce the bug?\n\nRun this PowerShell script. It calls `module.enableCompileCache()` on directories of different lengths under `%TEMP%`, and kills any call that has not returned after 6 seconds.\n\n```powershell\n$base = Join-Path $env:TEMP 'cc-repro'\nNew-Item -ItemType Directory -Force -Path $base | Out-Null\nforeach ($len in 200, 220, 230, 240, 245, 250, 260, 300) {\n    $p = $base; $i = 0\n    while ($p.Length -lt $len) { $p = Join-Path $p (\"d\" + ($i++)) }\n    $p = $p.Substring(0, $len).TrimEnd('\\')\n    $psi = [System.Diagnostics.ProcessStartInfo]::new('node.exe')\n    $psi.Arguments = \"-e `\"const r=require('module').enableCompileCache(process.argv[1]);console.log(r.status+' '+(r.message||''))`\" `\"$p`\"\"\n    $psi.UseShellExecute = $false; $psi.RedirectStandardOutput = $true\n    $proc = [System.Diagnostics.Process]::Start($psi)\n    if (-not $proc.WaitForExit(6000)) { $proc.Kill(); \"{0} chars: HANG\" -f $p.Length }\n    else { \"{0} chars: {1}\" -f $p.Length, $proc.StandardOutput.ReadToEnd().Trim() }\n}\n```\n\n### How often does it reproduce? Is there a required condition?\n\nIt happens every time for directory lengths 240 and 245, with `%TEMP%` under `C:\\Users\\\u003cuser>\\AppData\\Local\\Temp`. The exact lengths that hang depend on the path's structure. In our case a real 283-character cache path also hung, while the synthetic 282-character path above fails cleanly.\n\n### What is the expected behavior? Why is that the expected behavior?\n\n`enableCompileCache()` should return. It should either enable the cache or report failure, as it does for every other length:\n\n```\n200 chars: 1\n220 chars: 1\n230 chars: 0 Cannot create cache directory: no such file or directory\n234 chars: 0 Cannot create cache directory: no such file or directory\n240 chars: HANG\n245 chars: HANG\n250 chars: 0 Cannot create cache directory: no such file or directory\n260 chars: 0 Cannot create cache directory: no such file or directory\n300 chars: 0 Cannot create cache directory: no such file or directory\n```\n\n### What do you see instead?\n\nThe call never returns. The main thread spins inside native code:\n- One core runs at 100%.\n- Process I/O counters show about 150,000 file-system metadata operations a second (`OtherOperationCount`), with no writes.\n- Timers never fire, and the inspector cannot pause the thread, so neither `--cpu-prof` nor `Debugger.pause` produces a stack.\n- A `--prof` tick profile attributes about 99% of ticks to `ntdll.dll` under the calling script.\n\nThe same hang occurs when the cache is enabled through the `NODE_COMPILE_CACHE` environment variable. In a worker thread, that variable also freezes a main thread that is waiting on the worker.\n\n### Additional information\n\nWe hit this in production: an application enabled the compile cache in its launcher, its entry module and its worker threads, using a cache path built from a long build ID. A maintenance command then spun for 25 minutes before it was killed.\n\nWorkaround: `NODE_DISABLE_COMPILE_CACHE=1`.\n\n`fs.mkdirSync(path, { recursive: true })` succeeds for all of these lengths on the same machine, so the problem appears specific to the compile-cache directory creation path. It may be an `MKDirp` retry loop on ENOENT for paths near `MAX_PATH` without the `\\\\?\\` prefix.\n","author":{"url":"https://github.com/NickM83","@type":"Person","name":"NickM83"},"datePublished":"2026-10-01T15:40:22Z","url":"https://github.com/nodejs/node/issues/66438"}

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react-reconciler,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@d5750093facf
route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:72e2a4ca-a4a3-4eb3-469e-74e448c698bd
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id948C:1463F:675FE6:861F1A:6AED2DA5
html-safe-noncea84937afd5dcc3eba5e60aa28ba040854f2f7a085ab78843031d85f9a2157235
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5NDhDOjE0NjNGOjY3NUZFNjo4NjFGMUE6NkFFRDJEQTUiLCJ2aXNpdG9yX2lkIjoiNjcwMzU0NTUwMzgyMTE0NzU1NyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac5c473f5f13dd2aee39c47c8fa096c24da51268ef28057fc6838ee1b1798e8798
hovercard-subject-tagissue:5664894515
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/66438/issue_layout
twitter:imagehttps://opengraph.githubassets.com/ff86023e39d5c3c2a414c0db7d4147a1d502d47aa4f442731880ab1c2ea386c7/nodejs/node/issues/66438
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/ff86023e39d5c3c2a414c0db7d4147a1d502d47aa4f442731880ab1c2ea386c7/nodejs/node/issues/66438
og:image:altVersion v24.18.0 Platform Microsoft Windows 11 Pro 10.0.26200, x64. LongPathsEnabled = 1. Subsystem module (compile cache) What steps will reproduce the bug? Run this PowerShell script. It calls mo...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameNickM83
hostnamegithub.com
expected-hostnamegithub.com
Nonee51d0b7b5ab34b1688c05b54c3ed17b8658b2fa9bca973a9c740683ccb12cf4a
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
release59ebb7b901cc154ecc179a44f266fcf69f343b30
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/nodejs/node/issues/66438#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fnodejs%2Fnode%2Fissues%2F66438
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%2F66438
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/66438
Reloadhttps://github.com/nodejs/node/issues/66438
Reloadhttps://github.com/nodejs/node/issues/66438
nodejshttps://github.com/nodejs
nodehttps://github.com/nodejs/node
Codehttps://github.com/nodejs/node
Issues656 (656)https://github.com/nodejs/node/issues
Pull requests666 (666)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/66438
New issuehttps://github.com/login?return_to=https://github.com/nodejs/node/issues/66438
module.enableCompileCache() never returns on Windows for some cache-directory lengths (spins at 100% CPU)https://github.com/nodejs/node/issues/66438#top
https://github.com/NickM83
NickM83https://github.com/NickM83
on Oct 1, 2026https://github.com/nodejs/node/issues/66438#issue-5664894515
steipetehttps://github.com/steipete
on Oct 1, 2026https://github.com/nodejs/node/issues/66438#event-32278092161
fix(launcher): keep the Node compile-cache path short on Windows (#16…https://github.com/openclaw/openclaw/commit/6e987af9bc9b446f3ef6f03049a611be1a005aec
#16…https://github.com/openclaw/openclaw/pull/162841
6e987afhttps://github.com/openclaw/openclaw/commit/6e987af9bc9b446f3ef6f03049a611be1a005aec
RomneyDahttps://github.com/RomneyDa
on Oct 1, 2026https://github.com/nodejs/node/issues/66438#event-32286590627
fix(launcher): keep the Node compile-cache path short on Windows (#16…https://github.com/openclaw/openclaw/commit/7cf74cd3d91b35c9950b8a7897147ac1d0828a22
#16…https://github.com/openclaw/openclaw/pull/162841
7cf74cdhttps://github.com/openclaw/openclaw/commit/7cf74cd3d91b35c9950b8a7897147ac1d0828a22
fix(release): backport P0/P1 reliability fixes for 2026.9.8 (#162959)https://github.com/openclaw/openclaw/commit/b199277dc413c0992e34886f95fe4f9a7f5d59e9
#162959https://github.com/openclaw/openclaw/pull/162959
b199277https://github.com/openclaw/openclaw/commit/b199277dc413c0992e34886f95fe4f9a7f5d59e9
fix(release): recognize reviewed 2026.9.8 CI exceptions (#162981)https://github.com/openclaw/openclaw/commit/45369e8428643a9c00e4e30c32afb9238a016935
#162981https://github.com/openclaw/openclaw/pull/162981
45369e8https://github.com/openclaw/openclaw/commit/45369e8428643a9c00e4e30c32afb9238a016935
github-actionshttps://github.com/apps/github-actions
on Oct 2, 2026https://github.com/nodejs/node/issues/66438#event-32308776973
fix(launcher): keep the Node compile-cache path short on Windows (ope…https://github.com/Desicool/openclaw/commit/bb32d4dc0f38e0dc4766afb23baa755fe757f29e
ope…https://github.com/openclaw/openclaw/pull/162841
bb32d4dhttps://github.com/Desicool/openclaw/commit/bb32d4dc0f38e0dc4766afb23baa755fe757f29e
https://github.com/inoway46
inoway46https://github.com/inoway46
on Oct 3, 2026https://github.com/nodejs/node/issues/66438#issuecomment-5972016407
#66340https://github.com/nodejs/node/pull/66340
#66268https://github.com/nodejs/node/issues/66268
https://github.com/inoway46
inoway46https://github.com/inoway46
on Oct 4, 2026https://github.com/nodejs/node/issues/66438#issuecomment-5977212990
#66340https://github.com/nodejs/node/pull/66340
Resultshttps://github.com/inoway46/node/actions/runs/37181794881
inoway46https://github.com/inoway46
completedhttps://github.com/nodejs/node/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
on Oct 4, 2026https://github.com/nodejs/node/issues/66438#event-32430824711
funnysubaruhttps://github.com/funnysubaru
on Oct 10, 2026https://github.com/nodejs/node/issues/66438#event-32940050039
perf(launcher): backport bounded/reused Node compile cache (#137)https://github.com/funnysubaru/openclaw-vendor/commit/305d611eb751839c05d1b03eb7ffb77cc46e8336
#137https://github.com/funnysubaru/openclaw-vendor/pull/137
305d611https://github.com/funnysubaru/openclaw-vendor/commit/305d611eb751839c05d1b03eb7ffb77cc46e8336
Sign up for freehttps://github.com/signup?return_to=https://github.com/nodejs/node/issues/66438
Sign in to commenthttps://github.com/login?return_to=https://github.com/nodejs/node/issues/66438
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.