-
Notifications
You must be signed in to change notification settings - Fork 17.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
os: syscall.FindNextFile Crash Regression in Go 1.20 / Windows #59455
Comments
This is unfortunate. The problem is that you are passing the file handle -retrieved via os#File.Fd- to Assuming that Additionally, I don't see any other reasonable approach to fix #52747 nor #36019. Having said this, I would defer to @rsc and @rolandshoemaker the decision on what to do here. In case we decide that this should be reverted, then CL 452995 would have to be reverted to. |
@golang/windows |
We could definitely do this change, as it seems harmless. |
Agreed: if you want to use Mixing and matching |
Worked around the both regressions upstream. |
Given that we have only one report of a broken package so far and it was straightforward to fix, I think we should leave the |
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes.
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
go run main.go
on https://go.dev/play/p/YVSA2LyoxdqAbove is a simplified version of minio read dir code
The
f.Seek
behavior has also changed on directories, but I can live with that.What did you expect to see?
Output in Go 1.19.x
What did you see instead?
Go 1.20.3 output.
This seems to be caused by changes in
os
package and notsyscall
. Therefore the title.A guess be that this is caused by #52747
Edit: Verified this also reproduces in 1.20.3
The text was updated successfully, but these errors were encountered: