Skip to content

x/tools/gopls: EXCEPTION_ACCESS_VIOLATION panic in Signature.RecvTypeParams #81102

Open

Description

@adonovan
#!stacks
"sigpanic" && "(*Signature).RecvTypeParams" && "iexportCommon:+62" && "GOOS=windows"

Issue created by stacks.

Possible memory corruption? sig is either nil (impossible for a method) or invalid (due to hardware fault).

More concerning is the apparent off-by-one line numbering.

			sig, _ := m.Type().(*types.Signature)
			// Receiver type parameters are type arguments of the receiver type, so
			// their name must be qualified before exporting recv.
			if rparams := sig.RecvTypeParams(); rparams.Len() > 0 {

This stack -hIFIQ was reported by telemetry:

golang.org/x/tools/gopls@v0.21.1 go1.25.7 windows/amd64 gopls.client=vscode (1)

Use this command to reproduce the executable:
(HOME=$(mktemp -d); GOOS=windows GOARCH=amd64 GOTOOLCHAIN=go1.25.7 go install golang.org/x/tools/gopls@v0.21.1 && find $HOME/go/bin -type f)
To disassemble: go tool objdump exe | less
Dups: d9TIig

Activity

  1. added
    NeedsInvestigationSomeone must examine and confirm this is a valid issue and not a duplicate of an existing one.
    goplsIssues related to the Go language server, gopls.
    ToolsThis label describes issues relating to any tools in the x/tools repository.
    on Aug 25, 2026
  2. added this to the Unreleased milestone on Aug 25, 2026
  3. adonovan commented on Aug 25, 2026

    @adonovan
    MemberAuthor

    Found new stacks for predicate:

    #!stacks
    "sigpanic" && "(*Signature).RecvTypeParams" && "iexportCommon:+62" && "GOOS=windows"
    

    This stack d9TIig was reported by telemetry:

    golang.org/x/tools/gopls@v0.21.1 go1.25.7 windows/amd64 gopls.client=vscode (1)
    

    Use this command to reproduce the executable:
    (HOME=$(mktemp -d); GOOS=windows GOARCH=amd64 GOTOOLCHAIN=go1.25.7 go install golang.org/x/tools/gopls@v0.21.1 && find $HOME/go/bin -type f)
    To disassemble: go tool objdump exe | less

  4. gopherbot commented on Aug 25, 2026

    @gopherbot
    Contributor

    Change https://go.dev/cl/821200 mentions this issue: x/tools: assert that *types.Signature is non-nil

  5. self-assigned this
    on Aug 26, 2026
  6. removed
    NeedsInvestigationSomeone must examine and confirm this is a valid issue and not a duplicate of an existing one.
    on Sep 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

ToolsThis label describes issues relating to any tools in the x/tools repository.goplsIssues related to the Go language server, gopls.gopls/telemetry-wins

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions