-
Notifications
You must be signed in to change notification settings - Fork 18.5k
Open
Labels
BugReportIssues describing a possible bug in the Go implementation.Issues describing a possible bug in the Go implementation.NeedsInvestigationSomeone must examine and confirm this is a valid issue and not a duplicate of an existing one.Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.ToolsThis label describes issues relating to any tools in the x/tools repository.This label describes issues relating to any tools in the x/tools repository.goplsIssues related to the Go language server, gopls.Issues related to the Go language server, gopls.gopls/memory-corruption"can't happen" gopls crashes (races, unsafe, miscompile, runtime bugs, faulty HW)"can't happen" gopls crashes (races, unsafe, miscompile, runtime bugs, faulty HW)gopls/telemetry-wins
Milestone
Description
#!stacks
"goPanicIndex" && "scanner.(*Scanner).next:+7"
Issue created by stacks.
Yet more blatant memory corruption:
func (s *Scanner) next() {
if s.rdOffset < len(s.src) {
s.offset = s.rdOffset
...
r, w := rune(s.src[s.rdOffset]), 1 // <--- SEGVWeirdly though, we got two almost identical reports of this in the same day's batch.
This stack 8RmGzg was reported by telemetry:
crash/crashruntime.gopanic:+69,+0x167go/parser.ParseFile.func1:+5,+0x3d7runtime.gopanic:+50,+0x131runtime.goPanicIndex:+2,+0x73go/scanner.(*Scanner).next:+7,+0x196go/scanner.(*Scanner).Scan:+35,+0xd6go/parser.(*parser).next0:+18,+0x184go/parser.(*parser).next:+4,+0x64go/parser.(*parser).parseOperand:+12,+0x17ago/parser.(*parser).parsePrimaryExpr:+6,+0x132go/parser.(*parser).parseUnaryExpr:+68,+0x39dgo/parser.(*parser).parseBinaryExpr:+6,+0x149go/parser.(*parser).parseExpr:+5,+0xd4go/parser.(*parser).parseRhs:=1892,+0x1d8go/parser.(*parser).parseCallOrConversion:+10,+0x175go/parser.(*parser).parsePrimaryExpr:+40,+0x33ago/parser.(*parser).parseUnaryExpr:+68,+0x39d
golang.org/x/tools/gopls@v0.20.0 go1.24.6 windows/amd64 vscode (1)
Dups: xc6nww
Metadata
Metadata
Assignees
Labels
BugReportIssues describing a possible bug in the Go implementation.Issues describing a possible bug in the Go implementation.NeedsInvestigationSomeone must examine and confirm this is a valid issue and not a duplicate of an existing one.Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.ToolsThis label describes issues relating to any tools in the x/tools repository.This label describes issues relating to any tools in the x/tools repository.goplsIssues related to the Go language server, gopls.Issues related to the Go language server, gopls.gopls/memory-corruption"can't happen" gopls crashes (races, unsafe, miscompile, runtime bugs, faulty HW)"can't happen" gopls crashes (races, unsafe, miscompile, runtime bugs, faulty HW)gopls/telemetry-wins