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 — fs.mkdir(path, { recursive: true }) never returns when an intermediate mkdir fails with ENOENT although its parent exists (e.g. under /proc) · Issue #66890 · nodejs/node Open DescriptionVersionv24.18.0 and v22.22.2 (both reproduce) PlatformLinux 7.0.0-38-generic x86_64, Ubuntu 26.04.1 LTS; libuv 1.52.1 Subsystemfs What steps will reproduce the bug?# sync: never returns, main thread at 100 % CPU node -e "require('fs').mkdirSync('/proc/nope/deeper', { recursive: true })" # async: the promise never settles, process never exits, CPU busy node -e "require('fs/promises').mkdir('/proc/nope/deeper', { recursive: true }).then(() => console.log('ok'), (e) => console.log('err', e.code))" Both hang until killed ( The precondition is a filesystem where sysfs answers How often does it reproduce? Is there a required condition?Always, on any path whose intermediate component cannot be created and whose filesystem reports What is the expected behavior? Why is that the expected behavior?Reject / throw with the What do you see instead?The call never completes. Sync: the main thread spins. Async: the request bounces between the event loop and the libuv threadpool forever — on a hung process we measured ~24.5 M voluntary context switches in 18 minutes (~22 k/s), RSS flat at ~40 MB, Additional informationLooking at
A possible fix: when How we hit it: a test used ActivityMetadataMetadataAssigneesLabelsNo 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. |