-
Notifications
You must be signed in to change notification settings - Fork 18.4k
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" && "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
crash/crash
runtime.throw:+9,+0x37
runtime.sigpanic:+33,+0x223
slices.pdqsortCmpFunc[...]:+0,+0x0
slices.SortFunc[...]:=32,+0x243
golang.org/x/tools/gopls/internal/golang.FoldingRange:+104,+0x20c
golang.org/x/tools/gopls/internal/server.(*server).FoldingRange:+12,+0x1eb
golang.org/x/tools/gopls/internal/protocol.serverDispatch:+313,+0x3407
golang.org/x/tools/gopls/internal/lsprpc.(*streamServer).ServeStream.ServerHandler.func4:+5,+0x73
golang.org/x/tools/gopls/internal/lsprpc.(*streamServer).ServeStream.handshaker.func5:+52,+0x68f
golang.org/x/tools/gopls/internal/protocol.Handlers.MustReplyHandler.func1:+2,+0xbf
golang.org/x/tools/gopls/internal/protocol.Handlers.AsyncHandler.func2.2:+3,+0x8f
runtime.goexit:+0,+0x3
golang.org/x/tools/[email protected] go1.24.4 darwin/arm64 other,vscode (1)
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