-
Notifications
You must be signed in to change notification settings - Fork 279
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
Debugging "restarts: 1/1" on windows/amd64 #328
Comments
Thanks for taking the time to file an issue. Unfortunately, go-fuzz is pretty much unmaintained at this point; the expectation is the fuzzing in the standard library will replace go-fuzz. |
Ah right, I see, thanks |
During Go 1.17 development, fd inheritance on Windows was changed in: CL 288297 - "syscall: restrict inherited handles on Windows" https://golang.org/cl/288297 Running go-fuzz with Go 1.17 on at least some Windows versions caused errors like: "write to testee failed: write |1: The pipe is being closed" The fix is to properly set SysProcAttr.AdditionalInheritedHandles, which is modeled after the suggestion from Jason Donenfeld in CL 320050: https://go-review.googlesource.com/c/go/+/320050/-1..3#message-ed1be75fda3d32c5ff2bd037b951a875cb07c3db Fixes dvyukov#328
Hi @nanokatze, I hopefully have a fix for this in PR #330, and it does indeed seem to be a failure due to a change in Go 1.17. One thing I'm mildly curious about is I could not reproduce the issue you reported if I used |
Hi @thepudds, thanks for PR, I'll check out if it fixes the issue in some time. I'm not fully sure but I'm fairly certain the issue occurred with Windows 10 20H2 (About reports OS build value of 19042.1348, whatever that means). |
Hi @thepudds, sorry for delay. Your MR indeed fixes the issue, thank you! |
During Go 1.17 development, fd inheritance on Windows was changed in: CL 288297 - "syscall: restrict inherited handles on Windows" https://golang.org/cl/288297 Running go-fuzz with Go 1.17 on at least some Windows versions caused errors like: "write to testee failed: write |1: The pipe is being closed" The fix is to properly set SysProcAttr.AdditionalInheritedHandles, which is modeled after the suggestion from Jason Donenfeld in CL 320050: https://go-review.googlesource.com/c/go/+/320050/-1..3#message-ed1be75fda3d32c5ff2bd037b951a875cb07c3db Fixes dvyukov#328
During Go 1.17 development, fd inheritance on Windows was changed in: CL 288297 - "syscall: restrict inherited handles on Windows" https://golang.org/cl/288297 Running go-fuzz with Go 1.17 on at least some Windows versions caused errors like: "write to testee failed: write |1: The pipe is being closed" The fix is to properly set SysProcAttr.AdditionalInheritedHandles, which is modeled after the suggestion from Jason Donenfeld in CL 320050: https://go-review.googlesource.com/c/go/+/320050/-1..3#message-ed1be75fda3d32c5ff2bd037b951a875cb07c3db Fixes dvyukov#328
Hi,
it appears latest go-fuzz has an issue on go 1.17.3 windows/amd64. A simple
test, when run, yields the following output
With verbosity level of 999, a lot of odd "write to testee failed: write |1: The pipe is being closed." can be seen.
Just to note, go-fuzz appears to work fine on go 1.16.8 linux/amd64 (Fedora 34) on same machine.
I've ensured latest go-fuzz is installed by running
In case of windows, I have tried running go-fuzz-build and go-fuzz commands with CGO_ENABLED=0, but the output was exactly the same.
How would debugging this issue be approached?
The text was updated successfully, but these errors were encountered: