Git Product home page Git Product logo

rust-minidump's Introduction

Rust CI crates.io

Overview

This Rust crate implements a parser for the minidump file format.

It's fairly heavily modeled after the Google Breakpad library, and much of it was written as a means to learn Rust, so there are some rough edges, but it implements most of the functionality necessary to work with minidumps.

Examples

Print the raw details of the exception stream from a minidump:

use minidump::{Error, Minidump, MinidumpException, MinidumpStream};
use std::io::{self, Write};

fn work() -> Result<(), Error> {
  let mut dump = minidump::Minidump::read_path("../testdata/test.dmp")?;
  let exception: MinidumpException = dump.get_stream()?;
  drop(exception.print(&mut io::stdout()));
  Ok(())
}

fn main() {
    work().unwrap();
}

If you want to extract stack traces you should use minidump-processor.

If you just want to inspect a minidump, use minidump-stackwalk:

> cargo install minidump-stackwalk
> minidump-stackwalk --human path/to/minidump.dmp

Sub-crates

The functionality here has been broken out into several sub-crates:

  • minidump-common crates.io contains the definitions of basic minidump structs, and traits that are shared among several crates.
  • breakpad-symbols crates.io contains a parser for Breakpad's text format .sym files and interfaces for resolving functions and source line info by address from symbol files.
  • minidump-processor crates.io contains the pieces necessary to generate symbolicated stack traces from a minidump.
  • minidump-stackwalk crates.io ) is a binary providing a CLI frontend for minidump-processor.

License

This software is provided under the MIT license. See LICENSE.

rust-minidump's People

Contributors

luser avatar gankra avatar jan-auer avatar froydnj avatar flub avatar dependabot-support avatar dependabot-preview[bot] avatar nornagon avatar frewsxcv avatar gabrielesvelto avatar dependabot[bot] avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.