-
Notifications
You must be signed in to change notification settings - Fork 18.5k
Open
Labels
AutomationIssues created by gopherbot or watchflakes automation.Issues created by gopherbot or watchflakes automation.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" && "strings.HasPrefix"
Issue created by stacks.
More memory corruption.
This stack 4017FQ was reported by telemetry:
crash/crashruntime.throw:+9,+0x33runtime.sigpanic:+16,+0x163internal/stringslite.HasPrefix:=17,+0x28strings.HasPrefix:=521,+0x48golang.org/x/tools/gopls/internal/protocol.filename:+8,+0x4cgolang.org/x/tools/gopls/internal/protocol.DocumentURI.Path:+1,+0x1fgolang.org/x/tools/gopls/internal/protocol.DocumentURI.DirPath:+1,+0x1fgolang.org/x/tools/gopls/internal/cache.invalidatedPackageIDs:+39,+0x24fgolang.org/x/tools/gopls/internal/cache.(*Snapshot).clone:+195,+0xfbfgolang.org/x/tools/gopls/internal/cache.(*Session).invalidateViewLocked:+25,+0x19bgolang.org/x/tools/gopls/internal/cache.(*Session).DidModifyFiles:+158,+0xdc3golang.org/x/tools/gopls/internal/server.(*server).didModifyFiles:+36,+0x2efgolang.org/x/tools/gopls/internal/server.(*server).DidClose:+4,+0x147golang.org/x/tools/gopls/internal/protocol.serverDispatch:+245,+0x1537golang.org/x/tools/gopls/internal/lsprpc.(*StreamServer).ServeStream.ServerHandler.func4:+5,+0x6fgolang.org/x/tools/gopls/internal/lsprpc.(*StreamServer).ServeStream.handshaker.func5:+52,+0x637golang.org/x/tools/gopls/internal/protocol.Handlers.MustReplyHandler.func1:+2,+0xb3golang.org/x/tools/gopls/internal/protocol.Handlers.AsyncHandler.func2.2:+3,+0x7f
golang.org/x/tools/gopls@v0.20.0 go1.25.4 darwin/arm64 gopls.client=vscode (1)
Use this command to reproduce the executable:
(HOME=$(mktemp -d); GOOS=darwin GOARCH=arm64 GOTOOLCHAIN=go1.25.4 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
AutomationIssues created by gopherbot or watchflakes automation.Issues created by gopherbot or watchflakes automation.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