-
Notifications
You must be signed in to change notification settings - Fork 18.1k
runtime: failed to decommit pages on Windows #7143
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
Labels
Milestone
Comments
The crash report: fatal error: runtime: failed to decommit pages goroutine 1 [running]: runtime.throw(0x58cba0) C:/src/go/src/pkg/runtime/panic.c:462 +0x67 fp=0x2626d4 runtime.SysUnused(0x42960000, 0x2800000) C:/src/go/src/pkg/runtime/mem_windows.c:39 +0x62 fp=0x2626f0 scavengelist(0x59ffe4, 0xffffffff, 0x0, 0x0, 0x0) C:/src/go/src/pkg/runtime/mheap.c:405 +0xc2 fp=0x262708 scavenge(0xffffffff, 0xffffffff, 0x0, 0x0, 0x0) C:/src/go/src/pkg/runtime/mheap.c:422 +0xbd fp=0x262748 runtime/debug.freeOSMemory() C:/src/go/src/pkg/runtime/mheap.c:491 +0x62 fp=0x262760 runtime/debug.FreeOSMemory() C:/src/go/src/pkg/runtime/debug/garbage.go:102 +0x1d fp=0x262764 main.main() C:/src/tmp/mem.go:16 +0xe6 fp=0x262798 runtime.main() C:/src/go/src/pkg/runtime/proc.c:220 +0x10c fp=0x2627cc runtime.goexit() C:/src/go/src/pkg/runtime/proc.c:1394 fp=0x2627d0 exit status 2 |
If VirtualFree fails on the whole region, try a smaller region. byte *p; uintptr m; p = v; while(n > 0) { for(m = n; m >= 4096; m /= 2) { if(runtime·stdcall(runtime·VirtualFree, 3, v, n, (uintptr)MEM_DECOMMIT) != nil) break; } if(m < 4096) runtime·throw("runtime: failed to decommit pages"); p += m; n -= m; } |
CL https://golang.org/cl/96300046 mentions this issue. |
This issue was closed by revision 30b8af9. Status changed to Fixed. |
This issue was closed.
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
The text was updated successfully, but these errors were encountered: