golang/go

runtime: make Windows VirtualAlloc failure more informative

Open

#70,558 建立於 2024年11月25日

在 GitHub 查看
 (7 留言) (0 反應) (0 負責人)Go (133,883 star) (19,008 fork)batch import
NeedsInvestigationOS-Windowscompiler/runtimehelp wanted

描述

When a Windows build fails due to OOM, the error log looks like this: https://logs.chromium.org/logs/golang/buildbucket/cr-buildbucket/8730352753718672849/+/u/step/19/log/2 It contains a thread dump of the go test command at the moment after VirtualAlloc failed, but I suspect the real culprits here are the test child processes, among which is x/tools/go/ssa, which is known to have a big appetite for memory. Unfortunately that information is somewhat obscure in the log.

The task of this issue is to consider whether there are ways that the Windows OOM crash could be made more informative, for example by including the committed size of the current process. Alternatively, whether there are changes we could make to go test or the builders that would point the finger of blame more clearly.

@prattmic

貢獻者指南