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

Open
opened 2026-08-05 07:07:29 -04:00 by saavagebueno · 0 comments
Owner

Original Pull Request: https://github.com/netbirdio/netbird/pull/5702

State: closed
Merged: No


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.
**Original Pull Request:** https://github.com/netbirdio/netbird/pull/5702 **State:** closed **Merged:** No --- ## 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 -->
saavagebueno added the pull-request label 2026-08-05 07:07:29 -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#26553