-
Notifications
You must be signed in to change notification settings - Fork 29.8k
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 <[email protected]> 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? |
Signed-off-by: Matteo Collina <[email protected]> Fixes: #52018 PR-URL: #52349 Reviewed-By: Yagiz Nizipli <[email protected]> Reviewed-By: Moshe Atlow <[email protected]>
Signed-off-by: Matteo Collina <[email protected]> Fixes: #52018 PR-URL: #52349 Reviewed-By: Yagiz Nizipli <[email protected]> Reviewed-By: Moshe Atlow <[email protected]>
@mcollina this is also a bug in v20.12, will this be backported to that or just for v22+? |
it should be backported |
Signed-off-by: Matteo Collina <[email protected]> Fixes: #52018 PR-URL: #52349 Reviewed-By: Yagiz Nizipli <[email protected]> Reviewed-By: Moshe Atlow <[email protected]>
Signed-off-by: Matteo Collina <[email protected]> Fixes: #52018 PR-URL: #52349 Reviewed-By: Yagiz Nizipli <[email protected]> Reviewed-By: Moshe Atlow <[email protected]>
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: