Skip to content

x/tools/gopls: SEGV while clearing memory in newobject #71561

@adonovan

Description

@adonovan
#!stacks
"runtime.sigpanic:+3" && "runtime.memclrNoHeapPointers:+172" && "runtime.mallocgc" && "runtime.newobject:+1"

Issue created by stacks.

Possibly another manifestation of #71425?
Telemetry blames the RET instruction. Can it be? That's a read from the stack, but there's no way a rogue write to memory could clobber this thread's SP register.

This stack FpcsIw was reported by telemetry:

golang.org/x/tools/[email protected] go1.23.4 darwin/amd64 vscode (1)

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugReportIssues 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.ToolsThis label describes issues relating to any tools in the x/tools repository.goplsIssues related to the Go language server, gopls.gopls/memory-corruption"can't happen" gopls crashes (races, unsafe, miscompile, runtime bugs, faulty HW)gopls/telemetry-wins

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions