Skip to content

[Part 0/6] fix(logging): stop os_log crashing on more than five arguments - #8

Open
ETolboom wants to merge 1 commit into
trioneer-dev:mainfrom
ETolboom:fix/oslog-vararg-crash
Open

ETolboom wants to merge 1 commit into
trioneer-dev:mainfrom
ETolboom:fix/oslog-vararg-crash

Conversation

@ETolboom

Copy link
Copy Markdown

OSLog.log passed the [CVarArg] array to os_log for 6+ arguments, which segfaults. The 7-argument "Backfill acknowledged" log hit this on every backfill, crash-looping the app.

  • Fallback now asserts in debug and logs the pre-rendered line in release
  • Backfill ack log collapsed to a single argument

OSLog.log handed the [CVarArg] array to os_log for 6+ arguments, which
reads garbage pointers for each %@ and segfaults in
_os_log_fmt_flatten_object_impl. The seven-argument "Backfill
acknowledged" line hit this on every backfill, crash-looping the app.

The fallback now asserts in debug and logs the pre-rendered line as a
single argument in release. The backfill ack line is collapsed to one
argument.
Copilot AI balanced review requested due to automatic review settings September 29, 2026 10:49

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@ETolboom ETolboom changed the title fix(logging): stop os_log crashing on more than five arguments [Part 0/6] fix(logging): stop os_log crashing on more than five arguments Sep 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants