-
Notifications
You must be signed in to change notification settings - Fork 18k
syscall: ntdll.dll errors in rtlGetNtVersionNumbers via os.StartProcess [1.17 backport] #49868
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
Comments
Hey @zx2c4 I'm considering cutting the minor release tomorrow. Will you have time to get the cherry-pick reviewed and landed? |
There are a lot of conflicts, I think because of the calling convention changes. I'll give it a pass now and see how simple they are to resolve. |
Wasn't so bad. Done with 1.17. Will do 1.16 now. |
Change https://golang.org/cl/368355 mentions this issue: |
Closed by merging f0ee7c6 to release-branch.go1.17. |
…alive to prevent GC When syscall's DLL.FindProc calls into syscall_getprocaddress with a byte slice pointer, we need to keep those bytes alive. Otherwise the GC will collect the allocation, and we wind up calling `GetProcAddress` on garbage, which showed up as various flakes in the builders. It turns out that this problem extends to many uses of //go:cgo_unsafe_args throughout, on all platforms. So this patch fixes the issue by keeping non-integer pointer arguments alive through their invocation in //go:cgo_unsafe_args functions. Fixes #49868. Updates #49731. Change-Id: I93e4fbc2e8e210cb3fc53149708758bb33f2f9c7 Reviewed-on: https://go-review.googlesource.com/c/go/+/368355 Trust: Jason A. Donenfeld <[email protected]> Run-TryBot: Jason A. Donenfeld <[email protected]> TryBot-Result: Go Bot <[email protected]> Reviewed-by: Michael Knyszek <[email protected]>
@zx2c4 requested issue #49731 to be considered for backport to the next 1.17 minor release.
The text was updated successfully, but these errors were encountered: