Skip to content

x/tools/gopls: SEGV in mapassign #75673

@adonovan

Description

@adonovan
#!stacks
"sigpanic" && "runtime.mapassign:+63" && "debug.(*traces).ProcessEvent"

Issue created by stacks.

More memory corruption.

  group.go:325          0x410be2                4c8b5b50                MOVQ 0x50(BX), R11                                      
  group.go:325          0x410be6                4c0fafd8                IMULQ AX, R11                                           
  group.go:328          0x410bea                4c035e10                ADDQ 0x10(SI), R11                                      
  map.go:191            0x410bee                4d89c4                  MOVQ R8, R12                                            
  map.go:191            0x410bf1                4183e07f                ANDL $0x7f, R8                                          
  map.go:191            0x410bf5                4c89442420              MOVQ R8, 0x20(SP)                                       
  group.go:154          0x410bfa                66490f6ec0              MOVQ R8, X0                                             
  group.go:154          0x410bff                660f60c0                PUNPCKLBW X0, X0                                        
  group.go:154          0x410c03                f20f70c000              PSHUFLW $0x0, X0, X0                                    
  runtime_swiss.go:250  0x410c08                4c899c2490000000        MOVQ R11, 0x90(SP)                                      
  runtime_swiss.go:251  0x410c10                4d8b1b                  MOVQ 0(R11), R11        <--- SEGV       
  group.go:154          0x410c13                66490f6ecb              MOVQ R11, X1                                            
  group.go:154          0x410c18                660f74c1                PCMPEQB X1, X0                                          
  group.go:154          0x410c1c                66440fd7d8              PMOVMSKB X0, R11                                        
  group.go:154          0x410c21                450fb6db                MOVZX R11, R11                                          
  runtime_swiss.go:254  0x410c25                e9ab000000              JMP 0x410cd5                                     

This stack ieIdiQ was reported by telemetry:

golang.org/x/tools/gopls@v0.20.0 go1.25.0 linux/amd64 other (1)

Metadata

Metadata

Assignees

No one assigned

    Labels

    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