Skip to content

x/tools/gopls: Completion: SEGV in deepSearch (cand slice has invalid data pointer) #73263

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

Open
adonovan opened this issue Apr 8, 2025 · 0 comments
Labels
gopls/memory-corruption "can't happen" gopls crashes (races, unsafe, miscompile, runtime bugs, faulty HW) gopls/telemetry-wins gopls Issues related to the Go language server, gopls. NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one. Tools This label describes issues relating to any tools in the x/tools repository.
Milestone

Comments

@adonovan
Copy link
Member

adonovan commented Apr 8, 2025

#!stacks
"sigpanic" && "completion.(*completer).deepSearch:+65"

Issue created by stacks.

This stack korW0A was reported by telemetry:

			// When searching deep, make sure we don't have a cycle in our chain.
			// We don't dedupe by object because we want to allow both "foo.Baz"
			// and "bar.Baz" even though "Baz" is represented the same types.Object
			// in both.
			for _, seenObj := range cand.path { <--- SEGV
				if seenObj == obj {
					continue outer
				}
			}
golang.org/x/tools/gopls@v0.18.1 go1.23.6 linux/amd64 vscode (1)

Related:

@adonovan adonovan added gopls Issues related to the Go language server, gopls. gopls/telemetry-wins NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one. Tools This label describes issues relating to any tools in the x/tools repository. labels Apr 8, 2025
@gopherbot gopherbot added this to the Unreleased milestone Apr 8, 2025
@adonovan adonovan changed the title x/tools/gopls: bug in Completion x/tools/gopls: Completion: SEGV in deepSearch (cand slice has invalid data pointer) Apr 8, 2025
@adonovan adonovan added the gopls/memory-corruption "can't happen" gopls crashes (races, unsafe, miscompile, runtime bugs, faulty HW) label Apr 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
gopls/memory-corruption "can't happen" gopls crashes (races, unsafe, miscompile, runtime bugs, faulty HW) gopls/telemetry-wins gopls Issues related to the Go language server, gopls. NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one. Tools This label describes issues relating to any tools in the x/tools repository.
Projects
None yet
Development

No branches or pull requests

2 participants