Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add on demand minidump #28

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

vthib
Copy link
Contributor

@vthib vthib commented Dec 9, 2024

Checklist

  • I have read the Contributor Guide
  • I have read and agree to the Code of Conduct
  • I have added a description of my changes and why I'd like them included in the section below

It can be useful to generate a minidump of a program not only on crashes, but also on demand, when we can detect an invalid situation and want to generate a dump to be able to investigate it in details. Breakpad has this ability, so this MR simply exposes this through the Rust API.

Description of Changes

A new BreakpadHandler::generate_minidump helper is added to generate a minidump on demand. The code is reworked and reworded to function with non fatal dumps.

vthib added 3 commits December 9, 2024 11:14
Breakpad has the ability to generate a dump on demand, not just on a
crash. This is exposed through a new `write_minidump` method added
to the `BreakpadHandler` object.

This requires adding an assembly file to the compilation for the
linux targets.
All the "crash" terminology is confusing now that dumps can be generated
on demand, so rename those to "dump".
Since a dump can now be generated outside of fatal crashes, we want the
sentry client to keep running.
@vthib vthib requested a review from Jake-Shadle as a code owner December 9, 2024 10:20
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.

1 participant