#!stacks
"sigpanic" && "pdqsortCmpFunc" && "golang.FoldingRange"
TEXT slices.pdqsortCmpFunc[...](SB) slices/zsortanyfunc.go
zsortanyfunc.go:61 0x100987150 f9400b90 MOVD 16(R28), R16 <--- SEGV
golang.org/x/tools/gopls@v0.19.1 go1.24.4 darwin/arm64 other,vscode (1)
Issue created by stacks.
This stack
g1XUGAwas reported by telemetry:This is a corrupt g at the start of the call to pdqsortCmpFunc:
crash/crashruntime.throw:+9,+0x37runtime.sigpanic:+33,+0x223slices.pdqsortCmpFunc[...]:+0,+0x0slices.SortFunc[...]:=32,+0x243golang.org/x/tools/gopls/internal/golang.FoldingRange:+104,+0x20cgolang.org/x/tools/gopls/internal/server.(*server).FoldingRange:+12,+0x1ebgolang.org/x/tools/gopls/internal/protocol.serverDispatch:+313,+0x3407golang.org/x/tools/gopls/internal/lsprpc.(*streamServer).ServeStream.ServerHandler.func4:+5,+0x73golang.org/x/tools/gopls/internal/lsprpc.(*streamServer).ServeStream.handshaker.func5:+52,+0x68fgolang.org/x/tools/gopls/internal/protocol.Handlers.MustReplyHandler.func1:+2,+0xbfgolang.org/x/tools/gopls/internal/protocol.Handlers.AsyncHandler.func2.2:+3,+0x8fruntime.goexit:+0,+0x3