[PR #5702] [CLOSED] [client] Bump go-m1cpu to v0.2.1 to fix null CFRelease crash on M4/M5 Macs #23688

Closed
opened 2026-08-05 06:07:43 -04:00 by saavagebueno · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/netbirdio/netbird/pull/5702
Author: @sbeaudry-qms
Created: 3/26/2026
Status: Closed

Base: mainHead: fix/go-m1cpu-null-crash-m5


📝 Commits (1)

  • 0c67866 fix: bump go-m1cpu to v0.2.1 to fix null CFRelease crash on M4/M5 Macs

📊 Changes

2 files changed (+3 additions, -3 deletions)

View changed files

📝 go.mod (+1 -1)
📝 go.sum (+2 -2)

📄 Description

Describe your changes

Bumps github.com/shoenig/go-m1cpu from v0.2.0 to v0.2.1 to fix a startup crash of netbird-ui on Apple M4/M5 hardware.

v0.2.0 crashes with SIGTRAP on M4/M5 Macs because IORegistryEntryCreateCFProperty returns NULL for voltage-states properties, and CFRelease(NULL) triggers a trap. v0.2.1 adds null checks before CFRelease, fixing the crash.

N/A

Stack

Checklist

  • Is it a bug fix
  • Is a typo/documentation fix
  • Is a feature enhancement
  • It is a refactor
  • Created tests that fail without the change (if possible)

Documentation

  • Documentation is not needed for this change (explain why)

Documentation is not needed - this is a dependency bump fixing a crash on Apple M5 hardware with no user-facing behavior changes.

Docs PR URL (required if "docs added" is checked)

N/A

Summary by CodeRabbit

  • Chores
    • Updated an indirect dependency to a newer patch version, improving build consistency and dependency management.

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/netbirdio/netbird/pull/5702 **Author:** [@sbeaudry-qms](https://github.com/sbeaudry-qms) **Created:** 3/26/2026 **Status:** ❌ Closed **Base:** `main` ← **Head:** `fix/go-m1cpu-null-crash-m5` --- ### 📝 Commits (1) - [`0c67866`](https://github.com/netbirdio/netbird/commit/0c67866c27474435be35412b24e86af6779f4be0) fix: bump go-m1cpu to v0.2.1 to fix null CFRelease crash on M4/M5 Macs ### 📊 Changes **2 files changed** (+3 additions, -3 deletions) <details> <summary>View changed files</summary> 📝 `go.mod` (+1 -1) 📝 `go.sum` (+2 -2) </details> ### 📄 Description ## Describe your changes Bumps github.com/shoenig/go-m1cpu from v0.2.0 to v0.2.1 to fix a startup crash of netbird-ui on Apple M4/M5 hardware. v0.2.0 crashes with SIGTRAP on M4/M5 Macs because IORegistryEntryCreateCFProperty returns NULL for voltage-states properties, and CFRelease(NULL) triggers a trap. v0.2.1 adds null checks before CFRelease, fixing the crash. ## Issue ticket number and link N/A ## Stack ### Checklist - [x] Is it a bug fix - [ ] Is a typo/documentation fix - [ ] Is a feature enhancement - [ ] It is a refactor - [ ] Created tests that fail without the change (if possible) ## Documentation - [ ] Documentation is not needed for this change (explain why) Documentation is not needed - this is a dependency bump fixing a crash on Apple M5 hardware with no user-facing behavior changes. ### Docs PR URL (required if "docs added" is checked) N/A <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Chores** * Updated an indirect dependency to a newer patch version, improving build consistency and dependency management. <!-- end of auto-generated comment: release notes by coderabbit.ai --> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
saavagebueno added the pull-request label 2026-08-05 06:07:43 -04:00
Sign in to join this conversation.
No Label pull-request
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: DYNR/netbird#23688