Skip to content

#15035: Guard crash handler against re-entry and use _Exit - #15042

Merged
magnesj merged 1 commit into
devfrom
15035-crash-handler-reentry
Oct 26, 2026
Merged

magnesj merged 1 commit into
devfrom
15035-crash-handler-reentry

Conversation

@magnesj

@magnesj magnesj commented Oct 26, 2026 •

Copy link
Copy Markdown
Member

Related to #15035

  • Re-entry guard in performCrashLogging: a second crash during crash handling calls std::_Exit(1) immediately.
  • Use std::_Exit(1) instead of exit(1) in manageSegFailure/manageSegFailureSA.

Not included: avoiding paint/update event dispatch while waiting for the telemetry reply.

@magnesj magnesj self-assigned this Oct 26, 2026
@magnesj magnesj added the System Refactoring or build/test system issues. Code improvments not directly affecting the user. label Oct 26, 2026
@magnesj
magnesj requested a review from kriben October 26, 2026 10:09
@magnesj
magnesj force-pushed the 15035-crash-handler-reentry branch from fe8a6e0 to 740c329 Compare October 26, 2026 12:47

@kriben kriben left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Crash-handler review finding

Comment thread ApplicationExeCode/RiaMainTools.cpp Resolved

@kriben kriben left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Automated review (OCR delegation mode). Coverage: 3/3 files reviewed.

The approach looks good overall. Two medium issues can cause the crash report this PR wants to keep to be lost: the cross-thread re-entry _Exit and the 15 s watchdog vs. the telemetry flush timeout. See the inline comments.

Comment thread ApplicationExeCode/RiaMainTools.cpp Resolved
Comment thread ApplicationExeCode/RiaMainTools.cpp Resolved
Comment thread ApplicationExeCode/RiaMainTools.cpp Resolved
Comment thread ApplicationExeCode/RiaMainTools.cpp Resolved
@magnesj
magnesj force-pushed the 15035-crash-handler-reentry branch from 740c329 to db6657c Compare October 26, 2026 13:08
@magnesj
magnesj merged commit 4d5e6e0 into dev Oct 26, 2026
18 of 19 checks passed
@magnesj
magnesj deleted the 15035-crash-handler-reentry branch October 26, 2026 13:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

System Refactoring or build/test system issues. Code improvments not directly affecting the user.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants