Skip to content

fix(linux): fix use-after-move with an external crash reporter - #179

Merged
jpnurmi merged 1 commit into
getsentryfrom
jpnurmi/fix/crashpad-external-reporter
Nov 9, 2026
Merged

jpnurmi merged 1 commit into
getsentryfrom
jpnurmi/fix/crashpad-external-reporter

Conversation

@jpnurmi

@jpnurmi jpnurmi commented Nov 6, 2026 •

Copy link
Copy Markdown
Collaborator

new_report is moved into FinishedWritingCrashReport, but is then embarrassingly enough later dereferenced for the DeleteReport call. The handler segfaults after launching the external crash reporter, leaving the report in pending/. Use the uuid out-parameter, as on macOS and Windows.

See also:

`new_report` is moved into `FinishedWritingCrashReport`, but is then
dereferenced for the `DeleteReport` call. The handler segfaults after
launching the external crash reporter, leaving the report in `pending/`.

Use the `uuid` out-parameter, as on macOS and Windows.
Comment on lines 324 to 326
UUID uuid;
database_status =
database_->FinishedWritingCrashReport(std::move(new_report), &uuid);

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

the move is here 💀

@jpnurmi
jpnurmi merged commit 702c3d5 into getsentry Nov 9, 2026
26 checks passed
@jpnurmi
jpnurmi deleted the jpnurmi/fix/crashpad-external-reporter branch November 9, 2026 18:21
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