Skip to content

x/tools/gopls: runtime abort in go statement #71814

@adonovan

Description

@adonovan

Activity

added
goplsIssues related to the Go language server, gopls.
NeedsInvestigationSomeone must examine and confirm this is a valid issue and not a duplicate of an existing one.
ToolsThis label describes issues relating to any tools in the x/tools repository.
on Feb 18, 2025
added this to the Unreleased milestone on Feb 18, 2025
prattmic

prattmic commented on Feb 18, 2025

@prattmic
Member

runtime.systemstack puts systemstack_switch+8 as the saved PC. That is probably in the middle of that CALL instruction. systemstack_switch shouldn't actually be getting called. I think there is just a throw while on the systemstack and we aren't collecting the systemstack frames (which would be a nice improvement)

added
BugReportIssues describing a possible bug in the Go implementation.
on Feb 18, 2025
findleyr

findleyr commented on Feb 18, 2025

@findleyr
Member

@prattmic sorry I didn't entirely follow that--are you saying that the crash was likely somewhere in this function of the runtime, or that it could be in gopls logic?

prattmic

prattmic commented on Feb 18, 2025

@prattmic
Member

Correct, somewhere transitively called from that closure you linked to. There is a trivially user-triggerable crash here if fn is nil in go fn(), though that doesn't look possible in this case.

The other cases seem to be either out of memory, or various internal runtime assertions.

findleyr

findleyr commented on Feb 18, 2025

@findleyr
Member

Thanks. An OOM is certainly plausible.

4 remaining items

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugReportIssues describing a possible bug in the Go implementation.NeedsInvestigationSomeone must examine and confirm this is a valid issue and not a duplicate of an existing one.ToolsThis label describes issues relating to any tools in the x/tools repository.goplsIssues related to the Go language server, gopls.gopls/telemetry-wins

    Type

    No type

    Projects

    No projects

    Development

    No branches or pull requests

      Participants

      @prattmic@adonovan@gopherbot@findleyr@gabyhelp

      Issue actions

        x/tools/gopls: runtime abort in go statement · Issue #71814 · golang/go