os: small-count Readdirnames followed by seek-to-zero can lead to duplicate names #37161
What version of Go are you using (
The text was updated successfully, but these errors were encountered:
Thank you for reporting this issue @chris3torek and welcome to the Go project!
So this looks quite similar to bug #35767 that involved cached results on Darwin and that @randall77 fixed with CL https://go-review.googlesource.com/c/go/+/209961 for Go1.14.
go get golang.org/dl/go1.14rc1 && go1.14rc1 run main.go
b) Kindly putting this on @randall77's radar as perhaps we might need to implement the previous polyfill for
func (f *File) seekInvalidate()
on non-GOOS=darwin and non-GOOS=js systems.