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: SIGSEGV in cache.missingModuleError #42349

Closed
praveenys-juniper opened this issue Nov 2, 2020 · 1 comment
Closed

x/tools/gopls: SIGSEGV in cache.missingModuleError #42349

praveenys-juniper opened this issue Nov 2, 2020 · 1 comment
Assignees
Labels
Milestone

Comments

@praveenys-juniper
Copy link

@praveenys-juniper praveenys-juniper commented Nov 2, 2020

gopls version: v0.5.2
gopls flags:

ATTENTION: PLEASE PROVIDE THE DETAILS REQUESTED BELOW.

Describe what you observed.

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

goroutine 3069 [running]:
golang.org/x/tools/internal/lsp/cache.missingModuleError(0x1b14d40, 0xc0000fc480, 0xc000294600, 0xc002f16f00, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, ...)
	  mod_tidy.go:371  0x6a
golang.org/x/tools/internal/lsp/cache.modTidyErrors(0x1b03280, 0xc003095140, 0x1b14d40, 0xc0000fc480, 0xc000294600, 0xc005cee1e0, 0xc0016e6c00, 0x5, 0x8, 0x0, ...)
	  mod_tidy.go:228  0xb55
golang.org/x/tools/internal/lsp/cache.(*snapshot).ModTidy.func1(0x1b031c0, 0xc004d13640, 0x1aef480, 0xc0000fc480, 0x0, 0x0)
	  mod_tidy.go:144  0xb45
golang.org/x/tools/internal/memoize.(*Handle).run.func1(0xc00219b010, 0x1b031c0, 0xc004d13640, 0xc004d13600, 0x1aef480, 0xc0000fc480, 0xc00485af60)
	  memoize.go:310  0xa8
created by golang.org/x/tools/internal/memoize.(*Handle).run
	  memoize.go:303  0x185
[Error - 10:16:32 AM] 

OPTIONAL: If you would like to share more information, you can attach your complete gopls logs.

NOTE: THESE MAY CONTAIN SENSITIVE INFORMATION ABOUT YOUR CODEBASE.
DO NOT SHARE LOGS IF YOU ARE WORKING IN A PRIVATE REPOSITORY.

<OPTIONAL: ATTACH LOGS HERE>

@hyangah hyangah changed the title gopls: automated issue report (crash) x/tools/gopls: SIGSEGV in cache.missingModuleError Nov 2, 2020
@hyangah hyangah transferred this issue from golang/vscode-go Nov 2, 2020
@gopherbot gopherbot added this to the Unreleased milestone Nov 2, 2020
@stamblerre stamblerre modified the milestones: Unreleased, gopls/v0.5.3 Nov 2, 2020
@stamblerre stamblerre self-assigned this Nov 2, 2020
@gopherbot
Copy link

@gopherbot gopherbot commented Nov 2, 2020

Change https://golang.org/cl/267118 mentions this issue: internal/lsp/cache: handle nil pointer exception in missing module error

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
3 participants
You can’t perform that action at this time.