-
Notifications
You must be signed in to change notification settings - Fork 29.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Recursive fs.watch crashes on Linux when deleting files #52018
Comments
I've been getting this same error when watching a /parent directory and deleting a subdirectory that contains files. |
I believe #51406 introduced this behavior, the FSWatch emit callback try to acquire the stat of the deleted file node/lib/internal/fs/recursive_watch.js Line 160 in 1264414
can you take a look? @mcollina |
Signed-off-by: Matteo Collina <hello@matteocollina.com> Fixes: nodejs#52018
Here is the fix #52349 |
I have just being hit with this bug as well for node 20. Was the fix merged? And if not, what version will this fix be included? |
@mcollina this is also a bug in v20.12, will this be backported to that or just for v22+? |
it should be backported |
Version
v21.7.0
Platform
Linux ARCH-FS 6.7.8-arch1-1 #1 SMP PREEMPT_DYNAMIC Sun, 03 Mar 2024 00:30:36 +0000 x86_64 GNU/Linux
Subsystem
fs
What steps will reproduce the bug?
Run the following code on Linux:
How often does it reproduce? Is there a required condition?
No response
What is the expected behavior? Why is that the expected behavior?
Emit a watcher event
What do you see instead?
Additional information
No response
The text was updated successfully, but these errors were encountered: