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

Issue 1277513003: Recognize crashreporter_annotations_t version 5 found on OS X 10.11 (Closed)

Created:
5 years, 4 months ago by Mark Mentovai
Modified:
5 years, 4 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

Recognize crashreporter_annotations_t version 5 found on OS X 10.11. The system’s crashreporter_annotations_t structure was always present as version 4 since Mac OS X 10.7. In OS X 10.11, it is now present as version 5. It has also grown from 56 to 64 bytes per otool examination of CoreFoundation’s __DATA,__crash_info section. The extra 8 bytes are presumed to be a new field at the end of the structure, although this is not confirmed. The existing MachOImageAnnotationsReader.CrashAbort test only validated that the “message” field in crashreporter_annotations_t was recovered correctly, but MachOImageAnnotationsReader::ReadCrashReporterClientAnnotations() also recovers the “message2” field. A new test, MachOImageAnnotationsReader.CrashModuleInitialization, is added to ensure that the “messgae2” field can be recovered properly. This change will resolve warnings such as: [pid:tid:yyyymmdd,hhmmss.uuuuuu:WARNING mach_o_image_annotations_reader.cc:82] unexpected crash info version 5 in /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation BUG=crashpad:40 TEST=crashpad_snapshot_test MachOImageAnnotationsReader.CrashAbort, MachOImageAnnotationsReader.CrashModuleInitialization R=rsesek@chromium.org Committed: https://chromium.googlesource.com/crashpad/crashpad/+/6083a2706d55f34a598c26a0c019a72ad1c147fb

Patch Set 1 #

Total comments: 2

Patch Set 2 : Implement review suggestion #

Patch Set 3 : Rebase #

Patch Set 4 : Update #

Patch Set 5 : ExpectedSizeForVersion(), ReadIntoVersioned() #

Unified diffs Side-by-side diffs Delta from patch set Stats (+316 lines, -113 lines) Patch
M snapshot/mac/mach_o_image_annotations_reader.cc View 1 2 3 4 4 chunks +21 lines, -19 lines 0 comments Download
M snapshot/mac/mach_o_image_annotations_reader_test.cc View 1 2 9 chunks +60 lines, -7 lines 0 comments Download
A snapshot/mac/mach_o_image_annotations_reader_test_module_crashy_initializer.cc View 1 chunk +31 lines, -0 lines 0 comments Download
M snapshot/mac/process_types.h View 1 2 3 4 3 chunks +11 lines, -3 lines 0 comments Download
M snapshot/mac/process_types.cc View 1 2 3 4 5 chunks +70 lines, -43 lines 0 comments Download
M snapshot/mac/process_types/crashreporterclient.proctype View 1 1 chunk +19 lines, -1 line 0 comments Download
M snapshot/mac/process_types/custom.cc View 1 2 3 4 3 chunks +96 lines, -40 lines 0 comments Download
M snapshot/snapshot_test.gyp View 1 2 2 chunks +8 lines, -0 lines 0 comments Download

Messages

Total messages: 6 (1 generated)
Mark Mentovai
5 years, 4 months ago (2015-08-05 19:31:51 UTC) #2
Robert Sesek
LGTM https://codereview.chromium.org/1277513003/diff/1/snapshot/mac/process_types/crashreporterclient.proctype File snapshot/mac/process_types/crashreporterclient.proctype (right): https://codereview.chromium.org/1277513003/diff/1/snapshot/mac/process_types/crashreporterclient.proctype#newcode33 snapshot/mac/process_types/crashreporterclient.proctype:33: // although it is 8 bytes larger than ...
5 years, 4 months ago (2015-08-05 20:41:11 UTC) #3
Mark Mentovai
Updated. https://codereview.chromium.org/1277513003/diff/1/snapshot/mac/process_types/crashreporterclient.proctype File snapshot/mac/process_types/crashreporterclient.proctype (right): https://codereview.chromium.org/1277513003/diff/1/snapshot/mac/process_types/crashreporterclient.proctype#newcode33 snapshot/mac/process_types/crashreporterclient.proctype:33: // although it is 8 bytes larger than ...
5 years, 4 months ago (2015-08-05 22:21:53 UTC) #4
Robert Sesek
LGTM. I like the effect that had on the dyld proctypes.
5 years, 4 months ago (2015-08-07 17:22:41 UTC) #5
Mark Mentovai
5 years, 4 months ago (2015-08-07 17:59:50 UTC) #6
Message was sent while issue was closed.
Committed patchset #5 (id:80001) manually as
6083a2706d55f34a598c26a0c019a72ad1c147fb (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698