Skip to content

x/tools/gopls: sigpanic in methods of persistent.Map (corrupt g) #74870

@adonovan

Description

@adonovan
#!stacks
"sigpanic" &&
  ("persistent.union:+0,+0x0" ||/* union */
   "persistent.(*mapNode).forEach:+0,+0x0")  

Issue created by stacks.

TEXT golang.org/x/tools/gopls/internal/util/persistent.union(SB) /Users/adonovan/go/pkg/mod/golang.org/x/tools/[email protected]/internal/util/persistent/map.go
  map.go:222            0x100762760             f9400b90                MOVD 16(R28), R16                   <---- panic
  map.go:222            0x100762764             eb3063ff                CMP R16, RSP                                                                         
  map.go:222            0x100762768             540017e9                BLS 191(PC)                                                                          
  ...

TEXT golang.org/x/tools/gopls/internal/util/persistent.(*mapNode).forEach(SB) /Users/adonovan/go/pkg/
mod/golang.org/x/tools/[email protected]/internal/util/persistent/map.go
  map.go:171            0x1007626c0             f9400b90                MOVD 16(R28), R16        <--- panic
  map.go:171            0x1007626c4             eb3063ff                CMP R16, RSP            
  map.go:171            0x1007626c8             54000429                BLS 33(PC)              
  ...                                                        

This stack C2gvcQ was reported by telemetry:

golang.org/x/tools/[email protected] go1.24.4 darwin/arm64 other (1)

Dups: q291Zg

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