Skip to content

x/tools/gopls: SEGV accessing g in function prolog (R28 is nil or invalid) #76158

@adonovan

Description

@adonovan
#!stacks
"sigpanic" && "encoding/gob.(*Decoder).decodeValue:+0,+0x0"

Issue created by stacks.

This stack XnTGJw was reported by telemetry:

golang.org/x/tools/[email protected] go1.25.1 darwin/arm64 gopls.client=other,vscode (1)

Use this command to reproduce the executable:
(HOME=$(mktemp -d); GOOS=darwin GOARCH=arm64 GOTOOLCHAIN=go1.25.1 go install golang.org/x/tools/[email protected] && find $HOME/go/bin -type f)
To disassemble: go tool objdump exe | less

Metadata

Metadata

Assignees

No one assigned

    Labels

    AutomationIssues created by gopherbot or watchflakes automation.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

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions