[Bug]: Beszel agent 0.20.0 crashes on Apple Silicon M6 macOS in gopsutil cpu.getFrequency()
Author: visiniCreated Sep 25, 2026Updated Sep 26, 2026
Labelsbugwaiting on upstream
Welcome!
- I have read the Documentation
- I have checked the Common Issues Guide and my problem was not mentioned there.
- I have searched open and closed issues and my problem was not mentioned before.
- I have verified I am using the latest version available. You can check the latest release here.
Component
Agent
Problem Description
macOS / arm64 Apple M6 Beszel 0.20.0 Homebrew installation
I tried setting up Beszel on my Mac mini (M6).
I can't get the agent to start. I get SIGSEGV in: github.com/shirou/gopsutil/v4/cpu.getFrequency() github.com/shirou/gopsutil/v4/cpu/cpu_darwin_arm64.go CFDataGetLength(..., 0x0)
SENSORS="" does not prevent the crash.
Expected Behavior
Agent should start normally and not crash. See logs below.
Steps to Reproduce
- Fresh macOS installation on Mac mini M6
- Install homebrew
- Install beszel agent with copy-pasted installation command (Homebrew)
- Try to start beszel-agent homebrew service:
brew services start beszel-agent. Crashes.
OS / Architecture
macos/arm64 (agent)
Beszel version
0.20.0
Installation method
Other (please describe above)
Configuration
Hub Logs
Agent Logs
me@hostname ~ % sw_vers
ProductName: macOS
ProductVersion: 27.0
BuildVersion: 26A428
me@hostname ~ % uname -m
arm64
me@hostname ~ % brew info beszel-agent
==> henrygd/beszel/beszel-agent ✔: stable 0.20.0
Agent for Beszel, a lightweight server monitoring platform.
https://beszel.dev
Installed (on request)
From: https://github.com/henrygd/homebrew-beszel/blob/HEAD/beszel-agent.rb
Tap: henrygd/beszel
License: MIT
==> Installed Versions
henrygd/beszel/beszel-agent ✔ 0.20.0 (9 files, 9.7MB) [Linked]
==> Caveats
To restart henrygd/beszel/beszel-agent after an upgrade:
brew services restart henrygd/beszel/beszel-agent
Or, if you don't want/need a background service you can just run:
/opt/homebrew/opt/beszel-agent/bin/beszel-agent-launcher
me@hostname ~ %
2026/09/25 12:48:00 INFO Data directory path=/Users/admin/.config/beszel
SIGSEGV: segmentation violation
PC=0x19155ea94 m=0 sigcode=2 addr=0x0
signal arrived during cgo execution
goroutine 1 gp=0x11916eb301e0 m=0 mp=0x10319caa0 [syscall]:
runtime.cgocall(0x102babcc0, 0x11916ec22840)
/opt/hostedtoolcache/go/1.27.1/x64/src/runtime/cgocall.go:167 +0x44 fp=0x11916eddeb50 sp=0x11916eddeb10 pc=0x102923464
github.com/ebitengine/purego.syscall_SyscallN(0x1914232d0, {0x11916eddee50, 0x20, 0x0?}, {0x11916eddef80, 0x20, 0x11916eddf2b8?}, 0x0)
/home/runner/go/pkg/mod/github.com/ebitengine/[email protected]/syscall.go:46 +0x350 fp=0x11916eddecd0 sp=0x11916eddeb50 pc=0x102ba8fb0
github.com/ebitengine/purego.RegisterFunc.func4({0x11916ec4dda0, 0x1, 0x1})
/home/runner/go/pkg/mod/github.com/ebitengine/[email protected]/func.go:375 +0x414 fp=0x11916eddf360 sp=0x11916eddecd0 pc=0x102baa4d4
reflect.callReflect(0x11916ee1a9f0, 0x11916eddf898, 0x11916eddf6f8, 0x11916eddf700)
/opt/hostedtoolcache/go/1.27.1/x64/src/reflect/value.go:772 +0x3f8 fp=0x11916eddf6a0 sp=0x11916eddf360 pc=0x10294d0f8
reflect.callReflect(0x11916ee1a9f0, 0x11916eddf898, 0x11916eddf6f8, 0x11916eddf700)
<autogenerated>:1 +0x20 fp=0x11916eddf6d0 sp=0x11916eddf6a0 pc=0x102956be0
reflect.makeFuncStub()
/opt/hostedtoolcache/go/1.27.1/x64/src/reflect/asm_arm64.s:48 +0x50 fp=0x11916eddf890 sp=0x11916eddf6d0 pc=0x1029565a0
github.com/shirou/gopsutil/v4/internal/common.(*CoreFoundationLib).CFDataGetLength(0x11916ed56bc0?, 0x0)
/home/runner/go/pkg/mod/github.com/shirou/gopsutil/[email protected]/internal/common/common_darwin.go:187 +0x48 fp=0x11916eddf8c0 sp=0x11916eddf890 pc=0x102bb0a28
github.com/shirou/gopsutil/v4/cpu.getFrequency()
/home/runner/go/pkg/mod/github.com/shirou/gopsutil/[email protected]/cpu/cpu_darwin_arm64.go:65 +0x2ec fp=0x11916eddf9d0 sp=0x11916eddf8c0 pc=0x102bbaffc
github.com/shirou/gopsutil/v4/cpu.InfoWithContext({0x102c9776d?, 0x8?})
/home/runner/go/pkg/mod/github.com/shirou/gopsutil/[email protected]/cpu/cpu_darwin.go:117 +0x1e4 fp=0x11916eddfb00 sp=0x11916eddf9d0 pc=0x102bba1e4
github.com/shirou/gopsutil/v4/cpu.Info(...)
/home/runner/go/pkg/mod/github.com/shirou/gopsutil/[email protected]/cpu/cpu_darwin.go:79
github.com/henrygd/beszel/agent.(*Agent).refreshSystemDetails(0x11916ee0c008)
/home/runner/work/beszel/beszel/agent/system.go:84 +0x438 fp=0x11916eddfbe0 sp=0x11916eddfb00 pc=0x102c31e78
github.com/henrygd/beszel/agent.NewAgent({0x0, 0x0, 0x0})
/home/runner/work/beszel/beszel/agent/agent.go:108 +0x534 fp=0x11916eddfdb0 sp=0x11916eddfbe0 pc=0x102c08164
main.main()
/home/runner/work/beszel/beszel/internal/cmd/agent/agent.go:192 +0xc8 fp=0x11916eddfea0 sp=0x11916eddfdb0 pc=0x102c3ff58Source: henrygd/beszel