Skip to content

fix(crashpad): release zlib state when an upload fails partway - #2326

Merged
jpnurmi merged 3 commits into
getsentry:masterfrom
bionicbeagle:fix/crashpad-gzip-early-destroy
Nov 20, 2026
Merged

jpnurmi merged 3 commits into
getsentry:masterfrom
bionicbeagle:fix/crashpad-gzip-early-destroy

Conversation

@bionicbeagle

Copy link
Copy Markdown
Contributor

Depends on: getsentry/crashpad#180

Bumps external/crashpad to the fix in getsentry/crashpad#180, so the handler releases its zlib state when an upload fails partway instead of DCHECKing (debug) or leaking it (release). Opened early, as suggested on #180, to run the change through sentry-native's test suite.

Fixes #2323

@jpnurmi

jpnurmi commented Nov 19, 2026

Copy link
Copy Markdown
Collaborator

Thanks a lot for tracking this down, fixing it in crashpad, and opening the bump PR here too! Sorry for sending you through the sentry-native <-> crashpad fork <-> upstream labyrinth. It's a lot of hoops for one small fix. 😅

@codecov

codecov Bot commented Nov 19, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 75.72%. Comparing base (cbc4604) to head (78547e7).

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #2326      +/-   ##
==========================================
- Coverage   75.74%   75.72%   -0.03%     
==========================================
  Files         104      104              
  Lines       28443    28443              
  Branches     5220     5220              
==========================================
- Hits        21545    21538       -7     
- Misses       5543     5562      +19     
+ Partials     1355     1343      -12     
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@jpnurmi
jpnurmi merged commit 1ead64d into getsentry:master Nov 20, 2026
62 checks passed
jpnurmi added a commit that referenced this pull request Nov 20, 2026
Credit @bionicbeagle for #2326 (`scripts/contrib.py`).

The Contrib workflow failed to generate the SDK Maintainer Bot app
token (`401 A JSON web token could not be decoded`):
https://github.com/getsentry/sentry-native/actions/runs/44728052823/job/136261951806

The workflow, action version, app client ID and secret are unchanged
since the last successful run on 2026-11-17, so the SDK maintainer
bot's private key was likely rotated or revoked on the app side.
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.

crashpad_handler DCHECKs (debug) and leaks zlib state (release) when a crash-report upload fails partway

2 participants