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

Issue 997713002: Allow exception forwarding to the system’s native crash reporter to be disabled (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

Allow exception forwarding to the system’s native crash reporter to be disabled. ClientInfo::set_system_crash_reporter_forwarding() can be used to disable forwarding. The first module that is found with a non-default value in this field will dictate whether forwarding is enabled or disabled. It is possible to enable or disable reporting with this call, as well as reset it to default, which will allow later modules a chance to influence the behavior. ClientInfo::set_crashpad_handler_behavior() is also provided, which can be used to disable Crashpad’s handling of the exception. Most users should not call this, but should use Settings::SetUploadsEnabled() instead. TEST=crashpad_snapshot_test \ CrashpadInfoClientOptions.*:MachOImageReader.Self_DyldImages; \ 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.7.0 \ crashy_program R=rsesek@chromium.org Committed: https://chromium.googlesource.com/crashpad/crashpad/+/9b7ff0ea5a329dbff41f2435f06f308fce3696f1

Patch Set 1 #

Total comments: 2

Patch Set 2 : Address review feedback #

Total comments: 4

Patch Set 3 : Address review feedback #

Total comments: 2

Patch Set 4 : Remove unused function declaration #

Unified diffs Side-by-side diffs Delta from patch set Stats (+632 lines, -61 lines) Patch
M client/crashpad_info.h View 1 2 3 chunks +41 lines, -1 line 0 comments Download
M client/crashpad_info.cc View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M handler/mac/crash_report_exception_handler.cc View 1 2 2 chunks +42 lines, -34 lines 0 comments Download
A snapshot/mac/crashpad_info_client_options.h View 1 2 1 chunk +64 lines, -0 lines 0 comments Download
A snapshot/mac/crashpad_info_client_options.cc View 1 2 1 chunk +44 lines, -0 lines 0 comments Download
A snapshot/mac/crashpad_info_client_options_test.cc View 1 2 1 chunk +205 lines, -0 lines 0 comments Download
A snapshot/mac/crashpad_info_client_options_test_module.cc View 1 1 chunk +35 lines, -0 lines 0 comments Download
M snapshot/mac/mach_o_image_annotations_reader.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M snapshot/mac/mach_o_image_annotations_reader.cc View 1 2 chunks +1 line, -25 lines 0 comments Download
M snapshot/mac/mach_o_image_reader.h View 1 1 chunk +7 lines, -0 lines 0 comments Download
M snapshot/mac/mach_o_image_reader.cc View 1 2 chunks +34 lines, -0 lines 0 comments Download
M snapshot/mac/mach_o_image_reader_test.cc View 1 3 chunks +10 lines, -0 lines 0 comments Download
M snapshot/mac/module_snapshot_mac.h View 1 2 chunks +7 lines, -0 lines 0 comments Download
M snapshot/mac/module_snapshot_mac.cc View 1 2 2 chunks +20 lines, -0 lines 0 comments Download
M snapshot/mac/process_snapshot_mac.h View 1 2 chunks +9 lines, -0 lines 0 comments Download
M snapshot/mac/process_snapshot_mac.cc View 1 2 2 chunks +32 lines, -0 lines 0 comments Download
M snapshot/mac/process_types/crashpad_info.proctype View 1 1 chunk +6 lines, -1 line 0 comments Download
M snapshot/snapshot.gyp View 1 3 chunks +30 lines, -0 lines 0 comments Download
A util/misc/tri_state.h View 1 2 3 1 chunk +41 lines, -0 lines 0 comments Download
M util/util.gyp View 1 2 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 13 (2 generated)
Mark Mentovai
5 years, 9 months ago (2015-03-10 22:42:12 UTC) #2
Robert Sesek
https://codereview.chromium.org/997713002/diff/1/client/crashpad_info.cc File client/crashpad_info.cc (right): https://codereview.chromium.org/997713002/diff/1/client/crashpad_info.cc#newcode95 client/crashpad_info.cc:95: options_ = (options_ & ~0x3) | state; This is ...
5 years, 9 months ago (2015-03-10 23:03:04 UTC) #3
Robert Sesek
Also, I think you should be able to test the process_snapshot search logic, since we ...
5 years, 9 months ago (2015-03-10 23:44:23 UTC) #4
Mark Mentovai
Updated. I addressed all feedback and added tests.
5 years, 9 months ago (2015-03-11 17:57:53 UTC) #5
Robert Sesek
https://codereview.chromium.org/997713002/diff/20001/snapshot/mac/crashpad_info_client_options.h File snapshot/mac/crashpad_info_client_options.h (right): https://codereview.chromium.org/997713002/diff/20001/snapshot/mac/crashpad_info_client_options.h#newcode48 snapshot/mac/crashpad_info_client_options.h:48: enum class TriState : uint8_t { This could be ...
5 years, 9 months ago (2015-03-11 19:25:30 UTC) #6
Mark Mentovai
https://codereview.chromium.org/997713002/diff/20001/snapshot/mac/crashpad_info_client_options.h File snapshot/mac/crashpad_info_client_options.h (right): https://codereview.chromium.org/997713002/diff/20001/snapshot/mac/crashpad_info_client_options.h#newcode48 snapshot/mac/crashpad_info_client_options.h:48: enum class TriState : uint8_t { Robert Sesek wrote: ...
5 years, 9 months ago (2015-03-11 19:45:53 UTC) #7
Mark Mentovai
As discussed, I moved TriState into util/misc where everyone can see and share it.
5 years, 9 months ago (2015-03-11 20:20:46 UTC) #8
Robert Sesek
https://codereview.chromium.org/997713002/diff/40001/util/misc/tri_state.h File util/misc/tri_state.h (right): https://codereview.chromium.org/997713002/diff/40001/util/misc/tri_state.h#newcode39 util/misc/tri_state.h:39: TriState ConvertToTriState(uint32_t value); Missing a file that implements this? ...
5 years, 9 months ago (2015-03-11 20:26:59 UTC) #9
Mark Mentovai
https://codereview.chromium.org/997713002/diff/40001/util/misc/tri_state.h File util/misc/tri_state.h (right): https://codereview.chromium.org/997713002/diff/40001/util/misc/tri_state.h#newcode39 util/misc/tri_state.h:39: TriState ConvertToTriState(uint32_t value); Robert Sesek wrote: > Missing a ...
5 years, 9 months ago (2015-03-11 21:02:26 UTC) #11
Robert Sesek
LGTM
5 years, 9 months ago (2015-03-11 21:03:20 UTC) #12
Mark Mentovai
5 years, 9 months ago (2015-03-11 21:07:15 UTC) #13
Message was sent while issue was closed.
Committed patchset #4 (id:80001) manually as
9b7ff0ea5a329dbff41f2435f06f308fce3696f1 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698