Skip to content

x/tools/gopls: FoldingRange: corrupt g in slices.SortFunc #75237

@adonovan

Description

@adonovan
#!stacks
"sigpanic" && "pdqsortCmpFunc" && "golang.FoldingRange"

Issue created by stacks.

This stack g1XUGA was reported by telemetry:

This is a corrupt g at the start of the call to pdqsortCmpFunc:

TEXT slices.pdqsortCmpFunc[...](SB) slices/zsortanyfunc.go
  zsortanyfunc.go:61    0x100987150             f9400b90                MOVD 16(R28), R16   <--- SEGV
golang.org/x/tools/[email protected] go1.24.4 darwin/arm64 other,vscode (1)

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/memory-corruption"can't happen" gopls crashes (races, unsafe, miscompile, runtime bugs, faulty HW)gopls/telemetry-wins

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions