-
Notifications
You must be signed in to change notification settings - Fork 18.5k
Open
Labels
BugReportIssues describing a possible bug in the Go implementation.Issues 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.Someone 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.This label describes issues relating to any tools in the x/tools repository.goplsIssues related to the Go language server, gopls.Issues related to the Go language server, gopls.gopls/memory-corruption"can't happen" gopls crashes (races, unsafe, miscompile, runtime bugs, faulty HW)"can't happen" gopls crashes (races, unsafe, miscompile, runtime bugs, faulty HW)gopls/telemetry-wins
Milestone
Description
#!stacks
"sigpanic" && "memequal" && "getWithoutKeySmallFastStr"
Issue created by stacks.
The memequal(a, b) call panics reading from b. More memory corruption.
This stack fJSOUQ was reported by telemetry:
crash/crashruntime.throw:+9,+0x33runtime.sigpanic:+33,+0x213runtime.memequal:+65,+0xd8internal/runtime/maps.(*Map).getWithoutKeySmallFastStr:+48,+0xdfruntime.mapaccess1_faststr:+17,+0xbbencoding/json.(*decodeState).object:+95,+0x6c3encoding/json.(*decodeState).value:+17,+0x3fencoding/json.(*decodeState).unmarshal:+10,+0xffencoding/json.Unmarshal:+11,+0xdbgolang.org/x/tools/internal/jsonrpc2.DecodeMessage:+2,+0x4fgolang.org/x/tools/internal/jsonrpc2.(*headerStream).Read:+44,+0x2f7golang.org/x/tools/internal/jsonrpc2.(*conn).run:+4,+0x73golang.org/x/tools/internal/jsonrpc2.(*conn).Go.gowrap1:+0,+0x2bruntime.goexit:+0,+0x3
golang.org/x/tools/gopls@v0.20.0 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/gopls@v0.20.0 && find $HOME/go/bin -type f)
To disassemble: go tool objdump exe | less
Metadata
Metadata
Assignees
Labels
BugReportIssues describing a possible bug in the Go implementation.Issues 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.Someone 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.This label describes issues relating to any tools in the x/tools repository.goplsIssues related to the Go language server, gopls.Issues related to the Go language server, gopls.gopls/memory-corruption"can't happen" gopls crashes (races, unsafe, miscompile, runtime bugs, faulty HW)"can't happen" gopls crashes (races, unsafe, miscompile, runtime bugs, faulty HW)gopls/telemetry-wins