Skip to content

fix(crashpad): time out attachment updates to a stalled handler - #2280

Merged
jpnurmi merged 8 commits into
getsentry:masterfrom
Aureliolo:fix/crashpad-stalled-handler
Nov 10, 2026
Merged

jpnurmi merged 8 commits into
getsentry:masterfrom
Aureliolo:fix/crashpad-stalled-handler

Conversation

@Aureliolo

Copy link
Copy Markdown
Contributor

Depends on: getsentry/crashpad#178

On Windows, a stalled handler blocks breadcrumbs, scope updates and crashes forever (#2182). The fix caps each wait at 5 s.

My tests for a suspended handler and a crash with both pipe instances held hang on master.

On Windows, a breadcrumb or scope update waited forever for a free pipe
instance of the crashpad handler and for its reply. A suspended or hung
handler froze the calling thread, and a crash with both pipe instances
held never finished.

Bump crashpad to the change that times out each wait after 5 seconds.
Add tests for both cases.

@cursor cursor Bot 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.

Stale Bugbot comment from a previous run.

Comment thread tests/test_integration_crashpad.py Resolved
The fixture sent its default scope and breadcrumb updates right after the
handler started, racing with the tests that stall it. With no-setup, the
only updates come after the fixture sleeps.
@codecov

codecov Bot commented Nov 5, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 75.74%. Comparing base (8b6137d) to head (c1c8244).

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #2280      +/-   ##
==========================================
+ Coverage   75.54%   75.74%   +0.20%     
==========================================
  Files         104      104              
  Lines       28439    28439              
  Branches     5220     5220              
==========================================
+ Hits        21485    21542      +57     
+ Misses       5616     5540      -76     
- Partials     1338     1357      +19     
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Comment thread tests/test_integration_crashpad.py Resolved
Aureliolo and others added 4 commits November 7, 2026 10:13
The log holds the working directory, which is not ASCII in the UTF-8
paths job, and Windows reads text as cp1252 by default.
sentry_init sends the scope to the handler after it logs that the
handler started. Waiting for the log line that follows that flush keeps
it out of the window in which the tests stall the handler.
A failure before the tests stall the handler left the app running. The
crashing one then uploaded its minidump to the shared HTTP server in the
middle of a later test.

@jpnurmi jpnurmi 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.

Thank you! 🙏

@cursor cursor Bot 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.

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Want reviews to match your repository better? Bugbot Learning can learn team-specific rules from PR activity. A team admin can enable Learning in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit c1c8244. Configure here.

Comment thread tests/test_integration_crashpad.py Resolved
@jpnurmi
jpnurmi merged commit 285c789 into getsentry:master Nov 10, 2026
114 of 115 checks passed
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