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
runtime/debug: WriteHeapDump does not write a heapdump for go1.3beta2 windows #8119
Labels
Milestone
Comments
Owner changed to @randall77. |
It looks like our windows write() implementation only handles stdout and stderr file descriptors. This is going to be nontrivial to fix. Any windows experts out there know how to write to a os.Create().Fd()? Is it even possible? os_windows.c: int32 runtime·write(int32 fd, void *buf, int32 n) { void *handle; uint32 written; written = 0; switch(fd) { case 1: handle = runtime·stdcall(runtime·GetStdHandle, 1, (uintptr)-11); break; case 2: handle = runtime·stdcall(runtime·GetStdHandle, 1, (uintptr)-12); break; default: return -1; } runtime·stdcall(runtime·WriteFile, 5, handle, buf, (uintptr)n, &written, (uintptr)0); return written; } |
CL https://golang.org/cl/93640044 mentions this issue. |
This issue was closed by revision a68b9be. Status changed to Fixed. |
wheatman
pushed a commit
to wheatman/go-akaros
that referenced
this issue
Jun 25, 2018
Fixes golang#8119. LGTM=khr, rsc R=alex.brainman, khr, bradfitz, rsc CC=golang-codereviews https://golang.org/cl/93640044
This issue was closed.
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
by marcel.lanz:
The text was updated successfully, but these errors were encountered: