GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - rodlie/breakdown: A library (and tools) for parsing crash dumps

BranchesTags
Open more actions menu

Latest commit

 

History

29 Commits
29 Commits

Folders and files

NameName
Last commit message
Last commit date
.github/workflows
.github/workflows
 
 
breakpad @ 1a92fe4
breakpad @ 1a92fe4
 
 
src
src
 
 
tests
tests
 
 
.breakpad.sh
.breakpad.sh
 
 
.gitignore
.gitignore
 
 
.gitmodules
.gitmodules
 
 
CMakeLists.txt
CMakeLists.txt
 
 
LICENSE
LICENSE
 
 
LICENSE.breakpad
LICENSE.breakpad
 
 
README.md
README.md
 
 

Repository files navigation

Breakdown

Various applications and libraries for dumping symbols from binaries files and parsing crash dumps on Windows (MinGW-only), macOS (untested) and Linux.

Breakdown uses a fork of Google Breakpad.

Build and install

Requires pkg-config, CMake (3.0+), a c++11 compatible compiler (only GCC tested) and libzip.

git clone https://github.com/rodlie/breakdown
cd breakdown
git submodule update -i --recursive
mkdir build && cd build
cmake -DCMAKE_INSTALL_PREFIX=/usr .. && make
make DESTDIR=<PACKAGE_LOCATION> install
<PACKAGE_LOCATION>
└── usr
    ├── bin
    │   ├── breakdown-dumper
    │   └── breakdown-parser
    ├── include
    │   └── Breakdown
    │       └── breakdown.h
    ├── lib64
    │   ├── libBreakdown.so -> libBreakdown.so.2
    │   ├── libBreakdown.so.2 -> libBreakdown.so.2.0.0
    │   ├── libBreakdown.so.2.0.0
    │   └── pkgconfig
    │       └── breakdown.pc
    └── share
        └── doc
            └── Breakdown-2.0.0
                ├── LICENSE
                ├── LICENSE.breakpad
                └── README.md

Symbols Storage

Symbols are stored using the following directory structure:

  • <SYMBOLS_FOLDER>
    • <FILENAME_FOLDER> (example: Natron-bin)
      • <SYMBOL_ID_FOLDER> (example: 69CDA01A0F236F7C71CD19E5A20A21AC0)
        • <ZIP_FILE> (example: Natron-bin.sym.zip)

<FILENAME_FOLDER> and <SYMBOL_ID_FOLDER> must match line 1 in the symbol file.

Example : MODULE Linux x86_64 69CDA01A0F236F7C71CD19E5A20A21AC0 Natron-bin

Note that Breakdown only supports zipped symbols (filename.sym.zip)

Creating Symbols

Example:


breakdown-dumper Natron-bin > Natron-bin.sym
export SYMBOL_BIN=`head -1 Natron-bin.sym | awk '{print $5}'`
export SYMBOL_ID=`head -1 Natron-bin.sym | awk '{print $4}'`
mkdir -p symbols/$SYMBOL_BIN/$SYMBOL_ID
zip -9 Natron-bin.sym.zip Natron-bin.sym
mv Natron-bin.sym.zip symbols/$SYMBOL_BIN/$SYMBOL_ID/
symbols
└── Natron-bin
    └── 69CDA01A0F236F7C71CD19E5A20A21AC0
        └── Natron-bin.sym.zip

2 directories, 1 file

Usage Example (library)

#include <breakdown.h>

std::string filename = "crash.dmp";
std::vector<std::string> storage;
storage.push_back("symbols");
std::string result = Breakdown::generateCrashResultPlainText(filename, storage);

Usage Example (application)

breakdown-parser symbols crash.dmp > result.txt
OS       : Linux (0.0.0 Linux 4.4.172 #2 SMP Wed Jan 30 17:11:07 CST 2019 x86_64)
TYPE     : SIGSEGV /0x00000000

MODULE   : Natron-bin
FUNCTION : Natron::crash_application()
SOURCE   : Settings.cpp:2228

...

About

A library (and tools) for parsing crash dumps

Topics

crash-detailscrash-dumpcrash-reportinggoogle-breakpadlinuxmacosmingwnatronparsing-crash-dumpswindows

Resources

Readme
Activity

Stars

4 stars

Watchers

1 watching

Forks

0 forks
Report repository

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.