Skip to content

Use breakpad for crash reporting - #124

Merged
zcbenz merged 56 commits into
masterfrom
breakpad
Nov 27, 2013
Merged

zcbenz merged 56 commits into
masterfrom
breakpad

Conversation

@zcbenz

@zcbenz zcbenz commented Nov 12, 2013

Copy link
Copy Markdown
Contributor

Mac:

  • Minidumps would be uploaded on crash.
  • Breakpad symbols are dumped.
  • Users can still get the plain text crash report.
  • Generate stack trace with full debugging information.

Windows:

  • Produce minidump files on crash.
  • Start a crash service to provide support for out-of-process crash handler.
  • Upload minidump files in crash service.
  • Generate breakpad symbols.

TODO

  • Upload application information (application name, version, company, etc).
  • Generate libchromiumcontent symbols.
  • Fix mangled function names in stack traces on Mac.

Comment thread .gitmodules

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Is it not sufficient to start building breakpad as part of libchromiumcontent?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Atom-shell is still using the libchromiumcontent of Chrome28, so it would be cumbersome to have changes in libchromiumcontent and then sync commits between master and atom branch. I would like to use breakpad directly for now, and build it as part of libchromiumcontent after node v0.12 is out and move atom-shell to Chrome30.

@zcbenz

zcbenz commented Nov 25, 2013

Copy link
Copy Markdown
Contributor Author

Currently Mac's breakpad symbols were dumped from the binaries directly, so we could only get stack traces with mangled (or no) function names, just like the plain text ones we got before. I tried to dump symbols from the .dSYM files, but the stack traces were strangely truncated, then I found https://code.google.com/p/chromium/issues/detail?id=304846, according to which it was related to the clang version used for compiling atom-shell and libchromiumcontent. :(

@aroben

aroben commented Nov 25, 2013

Copy link
Copy Markdown
Contributor

It seems like that Chromium bug also says that the newest version of Breakpad works with the newer Clang.

@zcbenz

zcbenz commented Nov 25, 2013

Copy link
Copy Markdown
Contributor Author

So I debugged into dump_syms and found that when using the symbols dumped from .dSYMs, the stack frame's EIP would be pointed to wrong addresses, which made minidump_stackwalk thought it was an wrong stack trace and truncated it. After deeper digging I found that this only happens when CFI is used, which led me to this bug: https://code.google.com/p/google-breakpad/issues/detail?id=443&can=1&q=cfi. Finally I passed -c (Do not generate CFI section) to dump_syms and the stack trace truncation was gone.

zcbenz added a commit that referenced this pull request Nov 27, 2013
Use breakpad for crash reporting
@zcbenz
zcbenz merged commit bf77fcc into master Nov 27, 2013
@zcbenz
zcbenz deleted the breakpad branch November 27, 2013 07:33
@zcbenz zcbenz mentioned this pull request Nov 29, 2013
kevinsawicki pushed a commit that referenced this pull request May 9, 2017
create netlog instance for devtoolsnetlogobserver
kevinsawicki pushed a commit that referenced this pull request May 9, 2017
create netlog instance for devtoolsnetlogobserver
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.

3 participants