Skip to content
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

x/tools/gopls: out-of-memory failure on Windows #71065

Open
adonovan opened this issue Dec 30, 2024 · 3 comments
Open

x/tools/gopls: out-of-memory failure on Windows #71065

adonovan opened this issue Dec 30, 2024 · 3 comments
Labels
gopls/telemetry-wins gopls Issues related to the Go language server, gopls. NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one. Tools This label describes issues relating to any tools in the x/tools repository.
Milestone

Comments

@adonovan
Copy link
Member

#!stacks
"runtime.bgsweep" && "runtime.newArenaMayUnlock:+6" && "runtime.throw"

Issue created by stacks.

I suspect this is another manifestation of #70445, but I thought I should report it since the call stack is completely different.

This stack F860lA was reported by telemetry:

golang.org/x/tools/gopls@v0.17.1 go1.23.4 windows/amd64 vscode (1)
@adonovan adonovan added NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one. gopls Issues related to the Go language server, gopls. Tools This label describes issues relating to any tools in the x/tools repository. gopls/telemetry-wins labels Dec 30, 2024
@gopherbot gopherbot added the compiler/runtime Issues related to the Go compiler and/or runtime. label Dec 30, 2024
@mknyszek
Copy link
Contributor

This just seems like a regular OOM. On Windows all system-allocated memory must be committed up-front, so syscalls actually start failing (unlike Linux, where page faults try to page in more physical memory and that's the signal). So, it's impossible to tell from this whether the OOM is due to the person running gopls just ate up their own memory with various apps or gopls was using too much memory, unfortunately. But we don't think this is a bug in the runtime.

@mknyszek mknyszek removed the compiler/runtime Issues related to the Go compiler and/or runtime. label Jan 15, 2025
@mknyszek mknyszek changed the title runtime: fatal "cannot allocate memory" throw in bgsweep goroutine (windows) gopls: out-of-memory failure on Windows Jan 15, 2025
@seankhliao seankhliao changed the title gopls: out-of-memory failure on Windows x/tools/gopls: out-of-memory failure on Windows Jan 15, 2025
@gopherbot gopherbot added this to the Unreleased milestone Jan 15, 2025
@findleyr
Copy link
Member

Keeping this open but moving to the backlog, since it is currently unactionable.
(I'd close it, but absent other mechanisms to track OOMs, let's keep recording stacks here)

@findleyr findleyr modified the milestones: Unreleased, gopls/backlog Jan 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
gopls/telemetry-wins gopls Issues related to the Go language server, gopls. NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one. Tools This label describes issues relating to any tools in the x/tools repository.
Projects
None yet
Development

No branches or pull requests

5 participants