Skip to content

MacOS Intel Arch can't work #74

@Jiyvn

Description

@Jiyvn

Tried both

bash -c "$(curl -fsSL https://raw.githubusercontent.com/Karmenzind/kd/master/scripts/install.sh)"
sudo sh -c 'curl --create-dirs -L -o /usr/local/bin/kd https://github.com/Karmenzind/kd/releases/latest/download/kd_macos_amd64 && chmod +x /usr/local/bin/kd'

error reported with /Users/runner/hostedtoolcache/go/1.23.11/arm64

 ✘  ~  kd annotation
SIGSEGV: segmentation violation
PC=0x10580b9a0 m=0 sigcode=1 addr=0x0
signal arrived during cgo execution

goroutine 1 gp=0xc0000061c0 m=0 mp=0x10636eb80 [syscall, locked to thread]:
runtime.cgocall(0x105c11e20, 0xc0001aa000)
	/Users/runner/hostedtoolcache/go/1.23.11/arm64/src/runtime/cgocall.go:167 +0x4b fp=0xc0000d13e0 sp=0xc0000d13a8 pc=0x10587368b
github.com/ebitengine/purego.RegisterFunc.func4({0xc0000baa50?, 0x2?, 0x2?})
	/Users/runner/go/pkg/mod/github.com/ebitengine/purego@v0.8.1/func.go:320 +0xc65 fp=0xc0000d1860 sp=0xc0000d13e0 pc=0x105c0f085
reflect.callReflect(0xc0000ba300, 0xc0000d1d20, 0xc0000d1bf8, 0xc0000d1c00)
	/Users/runner/hostedtoolcache/go/1.23.11/arm64/src/reflect/value.go:770 +0x53d fp=0xc0000d1ba8 sp=0xc0000d1860 pc=0x1058b3cbd
reflect.callReflect(0xc0000ba300, 0xc0000d1d20, 0xc0000d1bf8, 0xc0000d1c00)
	<autogenerated>:1 +0x45 fp=0xc0000d1bd8 sp=0xc0000d1ba8 pc=0x1058c6d65
reflect.makeFuncStub()
	/Users/runner/hostedtoolcache/go/1.23.11/arm64/src/reflect/asm_amd64.s:47 +0x6e fp=0xc0000d1d20 sp=0xc0000d1bd8 pc=0x1058c302e
github.com/ebitengine/purego.Dlopen({0x105dc107d?, 0x105f13700?}, 0xc0000ac2a0?)
	/Users/runner/go/pkg/mod/github.com/ebitengine/purego@v0.8.1/dlfcn.go:41 +0x1f fp=0xc0000d1d58 sp=0xc0000d1d20 pc=0x105c0dabf
github.com/shirou/gopsutil/v4/internal/common.NewLibrary({0x105dc107d, 0x1a})
	/Users/runner/go/pkg/mod/github.com/shirou/gopsutil/v4@v4.24.12/internal/common/common_darwin.go:85 +0x26 fp=0xc0000d1d90 sp=0xc0000d1d58 pc=0x105c150c6
github.com/shirou/gopsutil/v4/cpu.TimesWithContext({0x105e79288?, 0x105ef51a0?}, 0x0)
	/Users/runner/go/pkg/mod/github.com/shirou/gopsutil/v4@v4.24.12/cpu/cpu_darwin.go:63 +0x48 fp=0xc0000d1df8 sp=0xc0000d1d90 pc=0x105c16f48
github.com/shirou/gopsutil/v4/cpu.Times(...)
	/Users/runner/go/pkg/mod/github.com/shirou/gopsutil/v4@v4.24.12/cpu/cpu_darwin.go:59
github.com/shirou/gopsutil/v4/cpu.init.0()
	/Users/runner/go/pkg/mod/github.com/shirou/gopsutil/v4@v4.24.12/cpu/cpu.go:64 +0x4f fp=0xc0000d1e20 sp=0xc0000d1df8 pc=0x105c1650f
runtime.doInit1(0x1062b0e90)
	/Users/runner/hostedtoolcache/go/1.23.11/arm64/src/runtime/proc.go:7309 +0xe8 fp=0xc0000d1f50 sp=0xc0000d1e20 pc=0x105853c68
runtime.doInit(...)
	/Users/runner/hostedtoolcache/go/1.23.11/arm64/src/runtime/proc.go:7276
runtime.main()
	/Users/runner/hostedtoolcache/go/1.23.11/arm64/src/runtime/proc.go:254 +0x345 fp=0xc0000d1fe0 sp=0xc0000d1f50 pc=0x105845745
runtime.goexit({})
	/Users/runner/hostedtoolcache/go/1.23.11/arm64/src/runtime/asm_amd64.s:1700 +0x1 fp=0xc0000d1fe8 sp=0xc0000d1fe0 pc=0x105881e21

goroutine 2 gp=0xc000006c40 m=nil [force gc (idle)]:
runtime.gopark(0x0?, 0x0?, 0x0?, 0x0?, 0x0?)
	/Users/runner/hostedtoolcache/go/1.23.11/arm64/src/runtime/proc.go:424 +0xce fp=0xc000062fa8 sp=0xc000062f88 pc=0x10587998e
runtime.goparkunlock(...)
	/Users/runner/hostedtoolcache/go/1.23.11/arm64/src/runtime/proc.go:430
runtime.forcegchelper()
	/Users/runner/hostedtoolcache/go/1.23.11/arm64/src/runtime/proc.go:337 +0xb3 fp=0xc000062fe0 sp=0xc000062fa8 pc=0x1058459d3
runtime.goexit({})
	/Users/runner/hostedtoolcache/go/1.23.11/arm64/src/runtime/asm_amd64.s:1700 +0x1 fp=0xc000062fe8 sp=0xc000062fe0 pc=0x105881e21
created by runtime.init.7 in goroutine 1
	/Users/runner/hostedtoolcache/go/1.23.11/arm64/src/runtime/proc.go:325 +0x1a

goroutine 3 gp=0xc000007180 m=nil [GC sweep wait]:
runtime.gopark(0x0?, 0x0?, 0x0?, 0x0?, 0x0?)
	/Users/runner/hostedtoolcache/go/1.23.11/arm64/src/runtime/proc.go:424 +0xce fp=0xc000063780 sp=0xc000063760 pc=0x10587998e
runtime.goparkunlock(...)
	/Users/runner/hostedtoolcache/go/1.23.11/arm64/src/runtime/proc.go:430
runtime.bgsweep(0xc00007c000)
	/Users/runner/hostedtoolcache/go/1.23.11/arm64/src/runtime/mgcsweep.go:277 +0x94 fp=0xc0000637c8 sp=0xc000063780 pc=0x105830a34
runtime.gcenable.gowrap1()
	/Users/runner/hostedtoolcache/go/1.23.11/arm64/src/runtime/mgc.go:204 +0x25 fp=0xc0000637e0 sp=0xc0000637c8 pc=0x105825125
runtime.goexit({})
	/Users/runner/hostedtoolcache/go/1.23.11/arm64/src/runtime/asm_amd64.s:1700 +0x1 fp=0xc0000637e8 sp=0xc0000637e0 pc=0x105881e21
created by runtime.gcenable in goroutine 1
	/Users/runner/hostedtoolcache/go/1.23.11/arm64/src/runtime/mgc.go:204 +0x66

goroutine 4 gp=0xc000007340 m=nil [GC scavenge wait]:
runtime.gopark(0xc00007c000?, 0x105e79060?, 0x1?, 0x0?, 0xc000007340?)
	/Users/runner/hostedtoolcache/go/1.23.11/arm64/src/runtime/proc.go:424 +0xce fp=0xc000063f78 sp=0xc000063f58 pc=0x10587998e
runtime.goparkunlock(...)
	/Users/runner/hostedtoolcache/go/1.23.11/arm64/src/runtime/proc.go:430
runtime.(*scavengerState).park(0x10636d960)
	/Users/runner/hostedtoolcache/go/1.23.11/arm64/src/runtime/mgcscavenge.go:425 +0x49 fp=0xc000063fa8 sp=0xc000063f78 pc=0x10582e449
runtime.bgscavenge(0xc00007c000)
	/Users/runner/hostedtoolcache/go/1.23.11/arm64/src/runtime/mgcscavenge.go:653 +0x3c fp=0xc000063fc8 sp=0xc000063fa8 pc=0x10582e9bc
runtime.gcenable.gowrap2()
	/Users/runner/hostedtoolcache/go/1.23.11/arm64/src/runtime/mgc.go:205 +0x25 fp=0xc000063fe0 sp=0xc000063fc8 pc=0x1058250c5
runtime.goexit({})
	/Users/runner/hostedtoolcache/go/1.23.11/arm64/src/runtime/asm_amd64.s:1700 +0x1 fp=0xc000063fe8 sp=0xc000063fe0 pc=0x105881e21
created by runtime.gcenable in goroutine 1
	/Users/runner/hostedtoolcache/go/1.23.11/arm64/src/runtime/mgc.go:205 +0xa5

goroutine 18 gp=0xc000092700 m=nil [finalizer wait]:
runtime.gopark(0xc000062648?, 0x10581bac5?, 0xb0?, 0x1?, 0xc0000061c0?)
	/Users/runner/hostedtoolcache/go/1.23.11/arm64/src/runtime/proc.go:424 +0xce fp=0xc000062620 sp=0xc000062600 pc=0x10587998e
runtime.runfinq()
	/Users/runner/hostedtoolcache/go/1.23.11/arm64/src/runtime/mfinal.go:193 +0x107 fp=0xc0000627e0 sp=0xc000062620 pc=0x1058241a7
runtime.goexit({})
	/Users/runner/hostedtoolcache/go/1.23.11/arm64/src/runtime/asm_amd64.s:1700 +0x1 fp=0xc0000627e8 sp=0xc0000627e0 pc=0x105881e21
created by runtime.createfing in goroutine 1
	/Users/runner/hostedtoolcache/go/1.23.11/arm64/src/runtime/mfinal.go:163 +0x3d

rax    0x0
rbx    0xc0001aa000
rcx    0x0
rdx    0x0
rdi    0xc0000e8060
rsi    0x9
rbp    0x7ff7ba6f4b20
rsp    0x7ff7ba6f4ac8
r8     0x0
r9     0x0
r10    0x105c147a0
r11    0xc0001aa000
r12    0x0
r13    0x1
r14    0xc0000061c0
r15    0xc0000aa248
rip    0x10580b9a0
rflags 0x10246
cs     0x2b
fs     0x0
gs     0x0
 ✘  ~  go version
go version go1.26.1 darwin/amd64
 ~

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions