-
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.compiler/runtimeIssues related to the Go compiler and/or runtime.Issues related to the Go compiler and/or runtime.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" && "gcimporter.(*iexporter).pushDecl:+0"
Issue created by stacks.
for _, pkg := range pkgs {
scope := pkg.Scope()
for _, name := range scope.Names() {
if token.IsExported(name) {
p.pushDecl(scope.Lookup(name)) <---- in this callfunc (p *iexporter) pushDecl(obj types.Object) { <---- SEGV
// Package unsafe is known to the compiler and predeclared.
// Caller should not ask us to do export it.
if obj.Pkg() == types.Unsafe {All memory-operand instructions on that source line are indicated by the comments below. None can fail unless the SP register or g (R14) is bad.
TEXT golang.org/x/tools/internal/gcimporter.(*iexporter).pushDecl(SB) /Users/adonovan/w/xtools/internal/gcimporter
/iexport.go
iexport.go:654 0x16cd9c0 493b6610 CMPQ SP, 0x10(R14) // load g.stackguard_00
iexport.go:654 0x16cd9c4 0f86d4000000 JBE 0x16cda9e
iexport.go:654 0x16cd9ca 55 PUSHQ BP // save FP
iexport.go:654 0x16cd9cb 4889e5 MOVQ SP, BP
iexport.go:654 0x16cd9ce 4883ec18 SUBQ $0x18, SP
...
iexport.go:654 0x16cd9d7 48895c2430 MOVQ BX, 0x30(SP) // spill obj.t
iexport.go:654 0x16cd9dc 48894c2438 MOVQ CX, 0x38(SP) // spill obj.v
This stack R1nKxA was reported by telemetry:
crash/crashruntime.gopanic:+69golang.org/x/tools/internal/gcimporter.iexportCommon.func1:+7runtime.gopanic:+50runtime.panicmem:=262runtime.sigpanic:+19golang.org/x/tools/internal/gcimporter.(*iexporter).pushDecl:+0golang.org/x/tools/internal/gcimporter.iexportCommon:+40golang.org/x/tools/internal/gcimporter.IExportShallow:+8golang.org/x/tools/gopls/internal/cache.storePackageResults:+9golang.org/x/tools/gopls/internal/cache.(*typeCheckBatch).getPackage.func1.gowrap1:+0runtime.goexit:+0
golang.org/x/tools/gopls@v0.17.1 go1.23.4 darwin/amd64 neovim,vscode (1)
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.compiler/runtimeIssues related to the Go compiler and/or runtime.Issues related to the Go compiler and/or runtime.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
Type
Projects
Status
Todo