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/gopls: panic in GetActiveReverseDeps #34824

Closed
muirdm opened this issue Oct 10, 2019 · 2 comments
Closed

x/tools/gopls: panic in GetActiveReverseDeps #34824

muirdm opened this issue Oct 10, 2019 · 2 comments
Labels
Milestone

Comments

@muirdm
Copy link

@muirdm muirdm commented Oct 10, 2019

On master (6536af71d98a5bb8f2cbd2f5e62afc2f6cc93dbb) just got this panic:

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

goroutine 38327 [running]:
golang.org/x/tools/internal/lsp/cache.(*view).GetActiveReverseDeps(0xc000276900, 0x19813a0, 0xc03f1d1ce0, 0x2495068, 0xc0002c1c40, 0xc03e88b720, 0x0, 0xc03e850870)
	/Users/muir/projects/tools/internal/lsp/cache/gofile.go:114 +0x30c
golang.org/x/tools/internal/lsp/source.Diagnostics(0x19813a0, 0xc03f1d1ce0, 0x1991cc0, 0xc000276900, 0x2495068, 0xc0002c1c40, 0x0, 0x0, 0x0, 0x0, ...)
	/Users/muir/projects/tools/internal/lsp/source/diagnostics.go:87 +0x53a
golang.org/x/tools/internal/lsp.(*Server).diagnostics(0xc0002cc420, 0x1991cc0, 0xc000276900, 0xc04c768910, 0x46, 0x0, 0x0)
	/Users/muir/projects/tools/internal/lsp/diagnostics.go:30 +0x2d3
created by golang.org/x/tools/internal/lsp.(*Server).didChange
	/Users/muir/projects/tools/internal/lsp/text_synchronization.go:82 +0x366

I was in the middle of rebasing and resolving conflicts so a lot was in flux.

@gopherbot gopherbot added this to the Unreleased milestone Oct 10, 2019
@gopherbot

This comment has been minimized.

Copy link

@gopherbot gopherbot commented Oct 10, 2019

Thank you for filing a gopls issue! Please take a look at the Troubleshooting guide, and make sure that you have provided all of the relevant information here.

@gopherbot

This comment has been minimized.

Copy link

@gopherbot gopherbot commented Oct 10, 2019

Change https://golang.org/cl/200300 mentions this issue: internal/lsp: return an error from {Narrowest,Widest}CheckPackageHandle

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.