macOS 27: startup SIGSEGV when IORegisterForSystemPower fails
Preflight Checklist
- I have read the Contributing Guidelines for this project.
- I agree to follow the Code of Conduct that this project adheres to.
- I have searched the issue tracker for a bug report that matches the one I want to file, without success.
Electron Version
44.4.3 / 45.0.0-alpha.12 / 46.0.0-nightly.20260925
What operating system(s) are you using?
macOS
Operating System Version
MacOS 27 (latest)
What arch are you using?
arm64 (including Apple Silicon)
Last Known Working Electron version
N/A
Does the issue also appear in Chromium / Google Chrome?
Yes
Expected Behavior
Electron starts successfully even if registration for system sleep/wake notifications fails. That failure should degrade the unavailable notification functionality, not terminate the application or prevent independent battery and thermal monitors from initializing.
Actual Behavior
Electron exits with a native SIGSEGV during startup, before application JavaScript runs. Application-level error handlers and logging therefore cannot capture the failure.
The crash is in IOKit!IONotificationPortGetRunLoopSource, with EXC_BAD_ACCESS at address 0x10 on the main thread. It also occurs when launching fresh alpha/nightly Electron binaries with an isolated user-data directory and only --version, without loading the application's JavaScript.
Testcase Gist URL
https://gist.github.com/mbianchidev/1fba9b144ba1c6bbb1393a2b1554dfd7
Additional Information
Chromium landed the fix on 2026-09-17:
Chromium issue: https://issues.chromium.org/issues/562777834 Review: https://chromium-review.googlesource.com/c/chromium/src/+/8424840 Commit: https://chromium.googlesource.com/chromium/src/+/69403d85b78bef2370cc9f8206dce84c5ff63ea4
I found a terrible workaround for two different projects but it's really AI slop so I would not submit it as a proper fix.
Source: electron/electron