Skip to content

#4320 Bugsplat fails to catch thread crashes on Apple Silicon#5866

Draft
akleshchev wants to merge 1 commit into
developfrom
andreyk/viewer_4320_2
Draft

#4320 Bugsplat fails to catch thread crashes on Apple Silicon#5866
akleshchev wants to merge 1 commit into
developfrom
andreyk/viewer_4320_2

Conversation

@akleshchev
Copy link
Copy Markdown
Contributor

@akleshchev akleshchev commented May 22, 2026

Bugsplat fails to catch thread crashes on Apple Silicon, want to see if explicitly setting up signal handling helps.

Just throwing things at a wall to see what sticks.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR attempts to improve BugSplat crash capture on Apple Silicon by adjusting Unix signal configuration: resetting process-wide handlers to defaults when building with BugSplat, and unblocking key crash signals in newly started threads.

Changes:

  • For LL_BUGSPLAT non-Windows builds, call clear_signals() during LLApp::setupErrorHandling() to restore default signal handlers.
  • In LLThread::threadRun() (non-Windows), explicitly unblock several synchronous “crash” signals via pthread_sigmask().
  • Minor comment updates around signal handling.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 4 comments.

File Description
indra/llcommon/llthread.cpp Unblocks crash-related signals in newly started threads on non-Windows platforms.
indra/llcommon/llapp.cpp Changes non-Windows BugSplat builds to reset signal handlers to defaults during error-handling setup; updates related comments.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread indra/llcommon/llthread.cpp Outdated
Comment thread indra/llcommon/llthread.cpp Outdated
Comment thread indra/llcommon/llapp.cpp Outdated
Comment thread indra/llcommon/llapp.cpp Outdated
@akleshchev akleshchev force-pushed the andreyk/viewer_4320_2 branch from 1a01a3d to 23d92e6 Compare May 22, 2026 23:01
@akleshchev akleshchev force-pushed the andreyk/viewer_4320_2 branch from 23d92e6 to 5b8c497 Compare May 22, 2026 23:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants