Skip to content

Language server binary crashes on Mac M5 silicon #523

Description

@jlconnor

Here's the full error:

SIGSEGV: segmentation violation
PC=0x1905b978c m=0 sigcode=2 addr=0x0
signal arrived during cgo execution

goroutine 1 gp=0x140000021c0 m=0 mp=0x10b20f8c0 [syscall, locked to thread]:
runtime.cgocall(0x103e62b14, 0x14000139e08)
	GOROOT/src/runtime/cgocall.go:157 +0x44 fp=0x14000139dd0 sp=0x14000139d90 pc=0x10249cb84
github.com/shoenig/go-m1cpu._Cfunc_initialize()
	_cgo_gotypes.go:153 +0x30 fp=0x14000139e00 sp=0x14000139dd0 pc=0x102d09a10
github.com/shoenig/go-m1cpu.init.0()
	exafunction/external/com_github_shoenig_go_m1cpu/cpu.go:148 +0x1c fp=0x14000139e10 sp=0x14000139e00 pc=0x102d09a9c
runtime.doInit1(0x10a572ea0)
	GOROOT/src/runtime/proc.go:7176 +0xd4 fp=0x14000139f40 sp=0x14000139e10 pc=0x1024e57a4
runtime.doInit(...)
	GOROOT/src/runtime/proc.go:7143
runtime.main()
	GOROOT/src/runtime/proc.go:253 +0x344 fp=0x14000139fd0 sp=0x14000139f40 pc=0x1024d5a24
runtime.goexit({})
	src/runtime/asm_arm64.s:1222 +0x4 fp=0x14000139fd0 sp=0x14000139fd0 pc=0x10250fd74

goroutine 2 gp=0x14000002c40 m=nil [force gc (idle)]:
runtime.gopark(0x0?, 0x0?, 0x0?, 0x0?, 0x0?)
	GOROOT/src/runtime/proc.go:402 +0xc8 fp=0x14000098f90 sp=0x14000098f70 pc=0x1024d5dc8
runtime.goparkunlock(...)
	GOROOT/src/runtime/proc.go:408
runtime.forcegchelper()
	GOROOT/src/runtime/proc.go:326 +0xb8 fp=0x14000098fd0 sp=0x14000098f90 pc=0x1024d5c28
runtime.goexit({})
	src/runtime/asm_arm64.s:1222 +0x4 fp=0x14000098fd0 sp=0x14000098fd0 pc=0x10250fd74
created by runtime.init.6 in goroutine 1
	GOROOT/src/runtime/proc.go:314 +0x24

goroutine 3 gp=0x14000003180 m=nil [GC sweep wait]:
runtime.gopark(0x0?, 0x0?, 0x0?, 0x0?, 0x0?)
	GOROOT/src/runtime/proc.go:402 +0xc8 fp=0x14000099760 sp=0x14000099740 pc=0x1024d5dc8
runtime.goparkunlock(...)
	GOROOT/src/runtime/proc.go:408
runtime.bgsweep(0x1400005e0e0)
	GOROOT/src/runtime/mgcsweep.go:278 +0xa0 fp=0x140000997b0 sp=0x14000099760 pc=0x1024bfb30
runtime.gcenable.gowrap1()
	GOROOT/src/runtime/mgc.go:203 +0x28 fp=0x140000997d0 sp=0x140000997b0 pc=0x1024b3d28
runtime.goexit({})
	src/runtime/asm_arm64.s:1222 +0x4 fp=0x140000997d0 sp=0x140000997d0 pc=0x10250fd74
created by runtime.gcenable in goroutine 1
	GOROOT/src/runtime/mgc.go:203 +0x6c

goroutine 4 gp=0x14000003340 m=nil [GC scavenge wait]:
runtime.gopark(0x1400005e0e0?, 0x1053a7088?, 0x1?, 0x0?, 0x14000003340?)
	GOROOT/src/runtime/proc.go:402 +0xc8 fp=0x14000099f60 sp=0x14000099f40 pc=0x1024d5dc8
runtime.goparkunlock(...)
	GOROOT/src/runtime/proc.go:408
runtime.(*scavengerState).park(0x10b20ce40)
	GOROOT/src/runtime/mgcscavenge.go:425 +0x5c fp=0x14000099f90 sp=0x14000099f60 pc=0x1024bd50c
runtime.bgscavenge(0x1400005e0e0)
	GOROOT/src/runtime/mgcscavenge.go:653 +0x44 fp=0x14000099fb0 sp=0x14000099f90 pc=0x1024bda64
runtime.gcenable.gowrap2()
	GOROOT/src/runtime/mgc.go:204 +0x28 fp=0x14000099fd0 sp=0x14000099fb0 pc=0x1024b3cc8
runtime.goexit({})
	src/runtime/asm_arm64.s:1222 +0x4 fp=0x14000099fd0 sp=0x14000099fd0 pc=0x10250fd74
created by runtime.gcenable in goroutine 1
	GOROOT/src/runtime/mgc.go:204 +0xac

r0      0x14
r1      0x0
r2      0xfffffffffffffff0
r3      0x16d96a890
r4      0xffffffff9e223410
r5      0x10
r6      0x48
r7      0x0
r8      0xf9c7d4299f9900e7
r9      0xf9c7d4299f9900e7
r10     0x7ffffffffffff8
r11     0x0
r12     0x100000003
r13     0xdef
r14     0x6e
r15     0x1fc629ad8
r16     0x190483ef8
r17     0x1fdc6de20
r18     0x0
r19     0x0
r20     0x465000
r21     0x10bb8dc10
r22     0x10b28bde4
r23     0x1fc633660
r24     0x1
r25     0x16d96afc0
r26     0x10a572ea8
r27     0x828
r28     0x10b20d760
r29     0x16d96a8c0
lr      0x190483f1c
sp      0x16d96a8b0
pc      0x1905b978c
fault   0x0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions