Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(197)

Issue 982613002: handler: Add report upload (Closed)

Created:
5 years, 9 months ago by Mark Mentovai
Modified:
5 years, 9 months ago
Reviewers:
Robert Sesek
CC:
crashpad-dev_chromium.org
Base URL:
https://chromium.googlesource.com/crashpad/crashpad@master
Target Ref:
refs/heads/master
Project:
crashpad
Visibility:
Public.

Description

handler: Add report upload. The handler is now capable of uploading crash reports from the database. At present, only one upload attempt is made, and the report will be moved to “completed” in the database after the attempt, regardless of whether it succeeded or failed. The handler also has support to push annotations from its command line into the process annotations map of each crash report it writes. This is intended to set basic information about each crash report, such as the product ID and version. Each potentially crashy process can’t be relied on to maintain this information on their own. With this change, Crashpad is now 100% capable of running a handler that maintains a database and uploads crash reports to a Breakpad-type server such that Breakpad properly interprets the reports. This is all possible from the command line. TEST=run_with_crashpad --handler crashpad_handler \ -a --database=/tmp/crashpad_db \ -a --url=https://clients2.google.com/cr/staging_report \ -a --annotation=prod=crashpad \ -a --annotation=ver=0.6.0 \ crashy_program R=rsesek@chromium.org Committed: https://chromium.googlesource.com/crashpad/crashpad/+/ae1ccf621b00a2d753e5a0e5341e2c63b9248b49

Patch Set 1 #

Total comments: 7

Patch Set 2 : Add a MINIDUMP_EXCEPTION_STREAM to all minidumps #

Patch Set 3 : Address review feedback #

Unified diffs Side-by-side diffs Delta from patch set Stats (+348 lines, -33 lines) Patch
M handler/mac/crash_report_exception_handler.h View 1 2 3 chunks +18 lines, -2 lines 0 comments Download
M handler/mac/crash_report_exception_handler.cc View 1 2 2 chunks +16 lines, -2 lines 0 comments Download
M handler/mac/crash_report_upload_thread.h View 1 2 5 chunks +52 lines, -8 lines 0 comments Download
M handler/mac/crash_report_upload_thread.cc View 1 2 2 chunks +200 lines, -4 lines 0 comments Download
M handler/mac/main.cc View 1 2 7 chunks +60 lines, -11 lines 0 comments Download
M util/file/file_reader.h View 1 chunk +1 line, -3 lines 0 comments Download
M util/file/file_reader.cc View 1 chunk +1 line, -3 lines 0 comments Download

Messages

Total messages: 7 (1 generated)
Mark Mentovai
Here are some test crashes that I generated: go/crash/1d2c98446ec51edb: This is a client of the ...
5 years, 9 months ago (2015-03-04 22:10:36 UTC) #2
Mark Mentovai
Crash stacks weren’t showing up because I wasn’t adding a MINIDUMP_EXCEPTION_STREAM to the minidumps. I’ve ...
5 years, 9 months ago (2015-03-04 22:43:48 UTC) #3
Robert Sesek
Very exciting! FYI there's also a staging crash server that's probably a better choice to ...
5 years, 9 months ago (2015-03-05 00:14:42 UTC) #4
Mark Mentovai
Feedback addressed. Thanks for the review! I’m in the (admittedly bad) habit of not using ...
5 years, 9 months ago (2015-03-05 19:41:31 UTC) #5
Robert Sesek
LGTM
5 years, 9 months ago (2015-03-05 20:36:15 UTC) #6
Mark Mentovai
5 years, 9 months ago (2015-03-05 20:40:48 UTC) #7
Message was sent while issue was closed.
Committed patchset #3 (id:40001) manually as
ae1ccf621b00a2d753e5a0e5341e2c63b9248b49 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698