-
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
"sigpanic" && "aeshashbody" && "mapaccess2_faststr" && "gopls"
Issue created by stacks.
The source line aeshashbody:+233 is nominally 1468, but AESENC is infallible. Assuming there's an off-by-one error in computing the relative lines for assembly functions, it could conceivably be the following load instruction, which would mean that a Go string points to data that runs off the end of a memory mapping. I have no idea what is going on. @prattmic
[Update: a bad string was passed to a map. Perhaps produced by a data race?]
asm_amd64.s:1462 0x47a76c 660f38dcc9 AESENC X1, X1
asm_amd64.s:1463 0x47a771 660f38dcd2 AESENC X2, X2
asm_amd64.s:1464 0x47a776 660f38dcdb AESENC X3, X3
asm_amd64.s:1465 0x47a77b 660f38dce4 AESENC X4, X4
asm_amd64.s:1466 0x47a780 660f38dced AESENC X5, X5
asm_amd64.s:1467 0x47a785 660f38dcf6 AESENC X6, X6
asm_amd64.s:1468 0x47a78a 660f38dcff AESENC X7, X7
asm_amd64.s:1471 0x47a78f f3440f6f440880 MOVDQU -0x80(AX)(CX*1), X8
asm_amd64.s:1472 0x47a796 f3440f6f4c0890 MOVDQU -0x70(AX)(CX*1), X9
asm_amd64.s:1473 0x47a79d f3440f6f5408a0 MOVDQU -0x60(AX)(CX*1), X10
asm_amd64.s:1474 0x47a7a4 f3440f6f5c08b0 MOVDQU -0x50(AX)(CX*1), X11
asm_amd64.s:1475 0x47a7ab f3440f6f6408c0 MOVDQU -0x40(AX)(CX*1), X12
asm_amd64.s:1476 0x47a7b2 f3440f6f6c08d0 MOVDQU -0x30(AX)(CX*1), X13
asm_amd64.s:1477 0x47a7b9 f3440f6f7408e0 MOVDQU -0x20(AX)(CX*1), X14
asm_amd64.s:1478 0x47a7c0 f3440f6f7c08f0 MOVDQU -0x10(AX)(CX*1), X15
This stack 8jk_dA was reported by telemetry:
crash/crashruntime.throw:+9runtime.sigpanic:+33.aeshashbody:+233runtime.mapaccess2_faststr:+67golang.org/x/tools/internal/gcimporter.(*iimporter).doDecl:+14golang.org/x/tools/internal/gcimporter.iimportCommon:+179golang.org/x/tools/internal/gcimporter.IImportShallow:+3golang.org/x/tools/gopls/internal/cache.(*typeCheckBatch).importPackage:+63golang.org/x/tools/gopls/internal/cache.(*typeCheckBatch).getImportPackage.func1:+23golang.org/x/tools/gopls/internal/cache.(*futureCache[...]).get:+32golang.org/x/tools/gopls/internal/cache.(*typeCheckBatch).getImportPackage:+1golang.org/x/tools/gopls/internal/cache.(*typeCheckBatch).importPackage.func1:+26golang.org/x/tools/internal/gcimporter.iimportCommon:+124golang.org/x/tools/internal/gcimporter.IImportShallow:+3golang.org/x/tools/gopls/internal/cache.(*typeCheckBatch).importPackage:+63golang.org/x/tools/gopls/internal/cache.(*typeCheckBatch).getImportPackage.func1:+23
golang.org/x/tools/gopls@v0.17.1 go1.23.4 linux/amd64 vscode (1)
Dups: Sz7UxA TJTRGw
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