What is the difference between Google's breakpad and crashpad libraries?

8k Views Asked by At

They both are crashing report libraries that generates minidump for developer analyzing, and both are developed by Google's Chromium project:

breakpad

crashpad

Any difference in their intended use cases?

2

There are 2 best solutions below

3
On BEST ANSWER
/ Breakpad Crashpad
OSX-10.10+/in-process
OSX-10.10+/out-process
/ Breakpad Crashpad
iOS-5.0+/in-process
tvOS/in-process
watchOS/in-process

Reply to @Lindeijer

See also the note in Breakpads documentation:

As opposed to Crashpad, Breakpad uses in-process crash reporting. This is less robust and has several disadvantages over out-of-process crash reporting. Unless you have integrated Breakpad already, we strongly recommend you to consider using Crashpad instead.

It is doc of Sentry, not doc of Breakpad

Actually Breakpad supports in-process and out-process on Windows/Linux/MacOSX(pre-10.10), according to https://chromium.googlesource.com/breakpad/breakpad/+/master/docs/exception_handling.md

0
On

See the Crashpad announcement for the reasons why it was developed.

The major difference with Breakpad appears to be that Crashpad enables out-of-process crash reporting also for Mac OS X 10.10 and newer, which Breakpads design could not support.

See also the note in Sentrys Breakpad documentation:

Breakpad uses in-process crash reporting, which is less robust and has several disadvantages over out-of-process crash reporting.

(which may be only really true for macOS 10.10+)