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

Issue 2694083004: Fix minidump-generation for debug builds. (Closed)

Created:
3 years, 10 months ago by gsennton
Modified:
3 years, 10 months ago
CC:
chromium-reviews, darin-cc_chromium.org, android-webview-reviews_chromium.org, sadrul, kalyank
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

(almost) Fix minidump-generation for debug builds. Some refactoring performed in https://codereview.chromium.org/2652133004 caused some extra microdump-info to be added to minidumps. Remove this extra info since we hit an assert because of it (in debug builds), and since the extra info isn't used in the minidumps anyway. WebView also hits a DCHECK when trying to add unregistered crash keys, this will be fixed in a follow-up. BUG=691560 Review-Url: https://codereview.chromium.org/2694083004 Cr-Commit-Position: refs/heads/master@{#452820} Committed: https://chromium.googlesource.com/chromium/src/+/8167aa05471108079a7f8aefae5135b037c92f45

Patch Set 1 #

Patch Set 2 : Remove some old setters. #

Total comments: 9

Patch Set 3 : Only declare + use SanitizationInfo on Android. #

Total comments: 4

Patch Set 4 : Add OWNERS file for Robert to change crash keys. Also C++ variable naming. #

Patch Set 5 : Add comment about adding new crash_keys to android_webview/ as well. Also C++ variable naming again… #

Patch Set 6 : Remove unused fields from MinidumpInfo. #

Total comments: 8

Patch Set 7 : Fix Primiano's comments (some inline comments + #if-block refactoring). #

Total comments: 15

Patch Set 8 : Remove extra crash keys - this will be fixed in a follow-up. Fix Toby's comments. #

Patch Set 9 : Fill in Microdump GPU info correctly if SetGpuFingerprint called before Initialize. #

Patch Set 10 : Remove globals only used at init. Remove UpdateMicrodump[ExceptionHandler|Descriptor] methods. #

Total comments: 2

Patch Set 11 : Add back leak-annotations. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+108 lines, -117 lines) Patch
A android_webview/common/crash_reporter/OWNERS View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M android_webview/common/crash_reporter/aw_microdump_crash_reporter.cc View 1 2 3 4 5 6 7 1 chunk +9 lines, -6 lines 0 comments Download
M chrome/common/crash_keys.cc View 1 2 3 4 5 6 7 1 chunk +4 lines, -1 line 0 comments Download
M components/crash/content/app/breakpad_linux.h View 1 2 3 4 5 6 3 chunks +16 lines, -18 lines 0 comments Download
M components/crash/content/app/breakpad_linux.cc View 1 2 3 4 5 6 7 8 9 10 15 chunks +78 lines, -92 lines 0 comments Download

Messages

Total messages: 39 (8 generated)
gsennton
Hey y'all, does this look remotely OK? I tried running the minidump generation code on ...
3 years, 10 months ago (2017-02-14 18:31:40 UTC) #2
Torne
Generally seems reasonable, but some comments: https://codereview.chromium.org/2694083004/diff/20001/android_webview/common/crash_reporter/aw_microdump_crash_reporter.cc File android_webview/common/crash_reporter/aw_microdump_crash_reporter.cc (right): https://codereview.chromium.org/2694083004/diff/20001/android_webview/common/crash_reporter/aw_microdump_crash_reporter.cc#newcode161 android_webview/common/crash_reporter/aw_microdump_crash_reporter.cc:161: sanitizationInfo.skip_dump_if_principal_mapping_not_referenced = false; ...
3 years, 10 months ago (2017-02-15 11:45:13 UTC) #3
gsennton
Do we have any kinds of tests for breakpad_linux.*? https://codereview.chromium.org/2694083004/diff/20001/android_webview/common/crash_reporter/aw_microdump_crash_reporter.cc File android_webview/common/crash_reporter/aw_microdump_crash_reporter.cc (right): https://codereview.chromium.org/2694083004/diff/20001/android_webview/common/crash_reporter/aw_microdump_crash_reporter.cc#newcode161 android_webview/common/crash_reporter/aw_microdump_crash_reporter.cc:161: ...
3 years, 10 months ago (2017-02-15 17:26:42 UTC) #4
Torne
lgtm
3 years, 10 months ago (2017-02-15 17:27:44 UTC) #5
Robert Sesek
https://codereview.chromium.org/2694083004/diff/20001/android_webview/common/crash_reporter/crash_keys.cc File android_webview/common/crash_reporter/crash_keys.cc (right): https://codereview.chromium.org/2694083004/diff/20001/android_webview/common/crash_reporter/crash_keys.cc#newcode24 android_webview/common/crash_reporter/crash_keys.cc:24: base::debug::CrashKey fixed_keys[] = { Can you also update the ...
3 years, 10 months ago (2017-02-15 17:37:27 UTC) #6
Robert Sesek
https://codereview.chromium.org/2694083004/diff/40001/android_webview/common/crash_reporter/aw_microdump_crash_reporter.cc File android_webview/common/crash_reporter/aw_microdump_crash_reporter.cc (right): https://codereview.chromium.org/2694083004/diff/40001/android_webview/common/crash_reporter/aw_microdump_crash_reporter.cc#newcode159 android_webview/common/crash_reporter/aw_microdump_crash_reporter.cc:159: breakpad::SanitizationInfo sanitizationInfo; naming: sanitization_info https://codereview.chromium.org/2694083004/diff/40001/components/crash/content/app/breakpad_linux.h File components/crash/content/app/breakpad_linux.h (right): https://codereview.chromium.org/2694083004/diff/40001/components/crash/content/app/breakpad_linux.h#newcode31 ...
3 years, 10 months ago (2017-02-15 17:38:43 UTC) #7
gsennton
https://codereview.chromium.org/2694083004/diff/20001/android_webview/common/crash_reporter/crash_keys.cc File android_webview/common/crash_reporter/crash_keys.cc (right): https://codereview.chromium.org/2694083004/diff/20001/android_webview/common/crash_reporter/crash_keys.cc#newcode24 android_webview/common/crash_reporter/crash_keys.cc:24: base::debug::CrashKey fixed_keys[] = { On 2017/02/15 17:37:26, Robert Sesek ...
3 years, 10 months ago (2017-02-15 18:10:17 UTC) #8
gsennton
Ooops - PS5 didn't remove the fields that are no longer in use. PS6 should ...
3 years, 10 months ago (2017-02-15 18:25:12 UTC) #9
Primiano Tucci (use gerrit)
LGTM with minor comments. No idea about the crash keys part, but I see you ...
3 years, 10 months ago (2017-02-15 18:39:08 UTC) #10
gsennton
Thanks Primiano! https://codereview.chromium.org/2694083004/diff/100001/android_webview/common/crash_reporter/aw_microdump_crash_reporter.cc File android_webview/common/crash_reporter/aw_microdump_crash_reporter.cc (right): https://codereview.chromium.org/2694083004/diff/100001/android_webview/common/crash_reporter/aw_microdump_crash_reporter.cc#newcode162 android_webview/common/crash_reporter/aw_microdump_crash_reporter.cc:162: sanitization_info.skip_dump_if_principal_mapping_not_referenced = false; On 2017/02/15 18:39:07, Primiano ...
3 years, 10 months ago (2017-02-16 10:46:49 UTC) #11
Robert Sesek
LGTM
3 years, 10 months ago (2017-02-16 15:06:44 UTC) #13
gsennton
On 2017/02/16 15:06:44, Robert Sesek wrote: > LGTM not lgtm - I just realized that ...
3 years, 10 months ago (2017-02-16 15:35:35 UTC) #14
gsennton
On 2017/02/16 15:35:35, gsennton wrote: > On 2017/02/16 15:06:44, Robert Sesek wrote: > > LGTM ...
3 years, 10 months ago (2017-02-16 15:37:20 UTC) #15
gsennton
On 2017/02/16 15:37:20, gsennton wrote: > On 2017/02/16 15:35:35, gsennton wrote: > > On 2017/02/16 ...
3 years, 10 months ago (2017-02-17 11:13:39 UTC) #17
Tobias Sargeant
Thanks for addressing the DCHECK, and sorry I didn't pick it up. I don't think ...
3 years, 10 months ago (2017-02-20 11:47:18 UTC) #18
gsennton
Right, I agree that the crash keys seem unnecessary - the issue is that we ...
3 years, 10 months ago (2017-02-20 17:56:35 UTC) #19
Robert Sesek
If you're not interested in crash keys, you can not initialize the reporting functions, and ...
3 years, 10 months ago (2017-02-21 17:02:37 UTC) #20
Tobias Sargeant
On 2017/02/21 17:02:37, Robert Sesek wrote: > If you're not interested in crash keys, you ...
3 years, 10 months ago (2017-02-21 17:23:17 UTC) #21
gsennton
Given that the logic added to breakpad_linux.cc in this CL is non-trivial I'm splitting this ...
3 years, 10 months ago (2017-02-22 15:52:12 UTC) #22
Robert Sesek
I'm not convinced the "add a flag to base" is the right approach. For starters, ...
3 years, 10 months ago (2017-02-22 16:41:36 UTC) #24
Tobias Sargeant
On 2017/02/22 16:41:36, Robert Sesek wrote: > I'm not convinced the "add a flag to ...
3 years, 10 months ago (2017-02-22 16:48:59 UTC) #25
gsennton
Is the idea that any client (e.g. WebView/Clank) that doesn't want a specific key should ...
3 years, 10 months ago (2017-02-23 12:12:12 UTC) #26
Torne
Yeah, I think the basic problem is that WebView has different PII handling restrictions and ...
3 years, 10 months ago (2017-02-23 13:41:34 UTC) #27
Robert Sesek
On 2017/02/23 12:12:12, gsennton wrote: > Also, given that this CL is orthogonal to the ...
3 years, 10 months ago (2017-02-23 20:36:05 UTC) #28
gsennton
Ooopsie! I almost messed up the case where Initialize is called after SetGpuFingerprint. We sooo ...
3 years, 10 months ago (2017-02-24 09:27:18 UTC) #29
gsennton
Alright, some more cleaning, should be enough with another look through from Toby :)
3 years, 10 months ago (2017-02-24 11:16:35 UTC) #30
Tobias Sargeant
https://codereview.chromium.org/2694083004/diff/180001/components/crash/content/app/breakpad_linux.cc File components/crash/content/app/breakpad_linux.cc (right): https://codereview.chromium.org/2694083004/diff/180001/components/crash/content/app/breakpad_linux.cc#newcode957 components/crash/content/app/breakpad_linux.cc:957: microdump_extra_info->product_info = It looks like you would need ANNOTATE_LEAKING_OBJECT_PTR ...
3 years, 10 months ago (2017-02-24 11:36:24 UTC) #31
Tobias Sargeant
On 2017/02/24 11:36:24, Tobias Sargeant wrote: > https://codereview.chromium.org/2694083004/diff/180001/components/crash/content/app/breakpad_linux.cc > File components/crash/content/app/breakpad_linux.cc (right): > > https://codereview.chromium.org/2694083004/diff/180001/components/crash/content/app/breakpad_linux.cc#newcode957 ...
3 years, 10 months ago (2017-02-24 11:38:21 UTC) #32
gsennton
COMMITTING :D https://codereview.chromium.org/2694083004/diff/180001/components/crash/content/app/breakpad_linux.cc File components/crash/content/app/breakpad_linux.cc (right): https://codereview.chromium.org/2694083004/diff/180001/components/crash/content/app/breakpad_linux.cc#newcode957 components/crash/content/app/breakpad_linux.cc:957: microdump_extra_info->product_info = On 2017/02/24 11:36:24, Tobias Sargeant ...
3 years, 10 months ago (2017-02-24 13:44:27 UTC) #33
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2694083004/200001
3 years, 10 months ago (2017-02-24 13:44:46 UTC) #36
commit-bot: I haz the power
3 years, 10 months ago (2017-02-24 14:27:48 UTC) #39
Message was sent while issue was closed.
Committed patchset #11 (id:200001) as
https://chromium.googlesource.com/chromium/src/+/8167aa05471108079a7f8aefae51...

Powered by Google App Engine
This is Rietveld 408576698