You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm still trying to gather more data about the when, why and how.
Could be a bug in ncdu that I've overlooked, but the strace suggests correct use (EDIT: indeed, I see find reports the same error).
Could be a bug in the Linux kernel, but if it is, it'll be around in the wild for a bit longer, so is probably worth handling in the standard library anyway.
Expected Behavior
fs.Dir.Iterator should probably return an UnexpectedError; or at least something that can be handled application-side.
Activity
17dec commentedon Mar 16, 2022
Found a way to reproduce it. This seems to happen for zombie processes:
std.fs: Handle EINVAL from linux.getdents64
std.fs: Handle EINVAL from linux.getdents64