Repository navigation
fs.mkdir with recursive option and invalid name hangs the program #36490
Copy link
Copy link
Closed
Labels
confirmed-bugIssues and PRs for confirmed bugs.Issues and PRs for confirmed bugs.fsIssues and PRs related to file-system APIs and the fs module.Issues and PRs related to file-system APIs and the fs module.libuvIssues and PRs related to the libuv dependency or the uv binding.Issues and PRs related to the libuv dependency or the uv binding.windowsIssues and PRs related to the Windows platform.Issues and PRs related to the Windows platform.
Description
Activity
is this only happened in windows enviroment ?
i tsted in linux,it works
Welcome to Node.js v12.18.2. Type ".help" for more information. > const fs = require("fs"); undefined > const path = "./to-delete/s:d"; undefined > fs.mkdir(path, { recursive: true }, (err) => { ... if (err) { ..... console.log(err); ..... return; ..... } ... console.log("success"); ... }); undefined > success > > >I'm not able to test it on linux. I've only tested it in Windows 10
Can you test with the latest 12.x version? I remember this issue and I think it was fixed recently .
- addedfsIssues and PRs related to file-system APIs and the fs module.Issues and PRs related to file-system APIs and the fs module.windowsIssues and PRs related to the Windows platform.Issues and PRs related to the Windows platform.
on Dec 12, 2020 I tested against Node v14.15.1. Same problem
I can confirm it happens on v12.20.0 and v14.15.1.
- addedconfirmed-bugIssues and PRs for confirmed bugs.Issues and PRs for confirmed bugs.
on Dec 12, 2020 It seems to be the same issue as #31177.
libuv/libuv#2601 is supposed to fix it.The fix landed yesterday in libuv: libuv/libuv@dd8662b
- addedlibuvIssues and PRs related to the libuv dependency or the uv binding.Issues and PRs related to the libuv dependency or the uv binding.
on Dec 30, 2020 Thank you. In what version is the fix available?
Can confirm that the issue has been fixed in the 15.x line at least. Not sure about 14.x or 12.x.
Can confirm it still happens on v12.22.1 and v14.16.1
This should be fixed in all active releases as the fix was released in libuv
1.41.0.
Metadata
Metadata
Assignees
Labels
confirmed-bugIssues and PRs for confirmed bugs.Issues and PRs for confirmed bugs.fsIssues and PRs related to file-system APIs and the fs module.Issues and PRs related to file-system APIs and the fs module.libuvIssues and PRs related to the libuv dependency or the uv binding.Issues and PRs related to the libuv dependency or the uv binding.windowsIssues and PRs related to the Windows platform.Issues and PRs related to the Windows platform.

What steps will reproduce the bug?
How often does it reproduce? Is there a required condition?
Using : (double dots) character in folder name after the first prefix will make the program freeze
What is the expected behavior?
Throw an error
What do you see instead?
The program hangs
Additional information
--