Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

x/tools/internal/lsp: nil pointer panic in GetActionGraph #31700

Closed
muirdm opened this issue Apr 26, 2019 · 1 comment
Closed

x/tools/internal/lsp: nil pointer panic in GetActionGraph #31700

muirdm opened this issue Apr 26, 2019 · 1 comment
Labels
FrozenDueToAge gopls Issues related to the Go language server, gopls.
Milestone

Comments

@muirdm
Copy link

muirdm commented Apr 26, 2019

Just saw this one, not sure what I was doing.

panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x1336037]

goroutine 24233 [running]:
golang.org/x/tools/internal/lsp/cache.(*Package).GetActionGraph(0x0, 0x14de860, 0xc016cf2100, 0x1788fc0, 0x0, 0x0, 0x0)
	/Users/muir/projects/tools/internal/lsp/cache/pkg.go:45 +0x77
golang.org/x/tools/internal/lsp/cache.(*Package).GetActionGraph(0xc012f15180, 0x14de860, 0xc016cf2100, 0x1788fc0, 0x0, 0x0, 0x0)
	/Users/muir/projects/tools/internal/lsp/cache/pkg.go:112 +0x62e
golang.org/x/tools/internal/lsp/cache.(*Package).GetActionGraph(0xc00545e460, 0x14de860, 0xc016cf2100, 0x1788fc0, 0x0, 0x0, 0x0)
	/Users/muir/projects/tools/internal/lsp/cache/pkg.go:112 +0x62e
golang.org/x/tools/internal/lsp/cache.(*Package).GetActionGraph(0xc00545e460, 0x14de860, 0xc016cf2100, 0x1789340, 0x0, 0x0, 0x0)
	/Users/muir/projects/tools/internal/lsp/cache/pkg.go:95 +0x2ad
golang.org/x/tools/internal/lsp/source.analyze(0x14de860, 0xc016cf2100, 0x14de9e0, 0xc0000fc400, 0xc018941900, 0x1, 0x1, 0xc018941960, 0x16, 0x16, ...)
	/Users/muir/projects/tools/internal/lsp/source/analysis.go:34 +0x111
golang.org/x/tools/internal/lsp/source.runAnalyses(0x14de860, 0xc016cf2100, 0x14de9e0, 0xc0000fc400, 0x14e2fc0, 0xc00545e460, 0xc018941bd8, 0x1, 0x1)
	/Users/muir/projects/tools/internal/lsp/source/diagnostics.go:206 +0x23c
golang.org/x/tools/internal/lsp/source.Diagnostics(0x14de860, 0xc016cf2100, 0x14de9e0, 0xc0000fc400, 0xc00ca40000, 0x3d, 0xc0052f5720, 0x1, 0x1)
	/Users/muir/projects/tools/internal/lsp/source/diagnostics.go:108 +0x7b3
golang.org/x/tools/internal/lsp.(*Server).cacheAndDiagnose.func1(0xc0000fc400, 0xc0000d47e0, 0xc00ca40000, 0x3d)
	/Users/muir/projects/tools/internal/lsp/diagnostics.go:35 +0x2a1
created by golang.org/x/tools/internal/lsp.(*Server).cacheAndDiagnose
	/Users/muir/projects/tools/internal/lsp/diagnostics.go:26 +0x2a7
@gopherbot gopherbot added this to the Unreleased milestone Apr 26, 2019
@gopherbot gopherbot added the gopls Issues related to the Go language server, gopls. label Apr 26, 2019
@gopherbot
Copy link

Change https://golang.org/cl/174019 mentions this issue: internal/lsp: handle nil pointer in (*Package).GetActionGraph

@golang golang locked and limited conversation to collaborators Apr 28, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
FrozenDueToAge gopls Issues related to the Go language server, gopls.
Projects
None yet
Development

No branches or pull requests

2 participants