GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — module.enableCompileCache() never returns on Windows for some cache-directory lengths (spins at 100% CPU) · Issue #66438 · nodejs/node Closed DescriptionVersionv24.18.0 PlatformMicrosoft Windows 11 Pro 10.0.26200, x64. Subsystemmodule (compile cache) What steps will reproduce the bug?Run this PowerShell script. It calls $base = Join-Path $env:TEMP 'cc-repro' New-Item -ItemType Directory -Force -Path $base | Out-Null foreach ($len in 200, 220, 230, 240, 245, 250, 260, 300) { $p = $base; $i = 0 while ($p.Length -lt $len) { $p = Join-Path $p ("d" + ($i++)) } $p = $p.Substring(0, $len).TrimEnd('\') $psi = [System.Diagnostics.ProcessStartInfo]::new('node.exe') $psi.Arguments = "-e `"const r=require('module').enableCompileCache(process.argv[1]);console.log(r.status+' '+(r.message||''))`" `"$p`"" $psi.UseShellExecute = $false; $psi.RedirectStandardOutput = $true $proc = [System.Diagnostics.Process]::Start($psi) if (-not $proc.WaitForExit(6000)) { $proc.Kill(); "{0} chars: HANG" -f $p.Length } else { "{0} chars: {1}" -f $p.Length, $proc.StandardOutput.ReadToEnd().Trim() } } How often does it reproduce? Is there a required condition?It happens every time for directory lengths 240 and 245, with What is the expected behavior? Why is that the expected behavior?
What do you see instead?The call never returns. The main thread spins inside native code:
The same hang occurs when the cache is enabled through the Additional informationWe 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. Workaround:
Activity
MetadataMetadataAssigneesLabelsNo labels TypeProjectsMilestoneRelationshipsDevelopmentIssue actions |
| You are visitor 01402775 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |