x/tools/gopls: SEGV accessing map[string]... #73387
Labels
BugReport
Issues describing a possible bug in the Go implementation.
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
Issue created by stacks.
imports.(*DirInfoCache).Load
:In mapaccess2_faststr below, it looks like one of k, key, or b is an invalid (nil or corrupt) pointer. We know that b and key are non-nil; and k is derived from b.keys(), which is an offset of b; so the only possibility is data corruption.
This stack
sAEkLA
was reported by telemetry:crash/crash
runtime.throw:+9
runtime.sigpanic:+33
runtime.mapaccess2_faststr:+84
golang.org/x/tools/internal/imports.(*DirInfoCache).Load:+3
golang.org/x/tools/internal/imports.ScanModuleCache.func3:+6
golang.org/x/tools/internal/gopathwalk.(*walker).shouldSkipDir:+8
golang.org/x/tools/internal/gopathwalk.(*walker).walk:+68
golang.org/x/tools/internal/gopathwalk.(*walker).walk:+121
golang.org/x/tools/internal/gopathwalk.(*walker).walk.func1:+5
runtime.goexit:+0
The text was updated successfully, but these errors were encountered: