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

Issue 2638433002: Integrate fallback crash handling in chrome (Closed)

Created:
3 years, 11 months ago by Sigurður Ásgeirsson
Modified:
3 years, 3 months ago
Reviewers:
brettw, grt, scottmg, brucedawson
CC:
chromium-reviews, jam, darin-cc_chromium.org, sadrul, kalyank
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Integrate fallback crash handling in chrome TBR=grt BUG=678959 Review-Url: https://codereview.chromium.org/2638433002 Cr-Commit-Position: refs/heads/master@{#443963} Committed: https://chromium.googlesource.com/chromium/src/+/62fd0c1ec30ee121aa0720d8d7d390cc7e9ba226

Patch Set 1 #

Patch Set 2 : Reorganize the fallback integration code into a pair of separate files. #

Total comments: 10

Patch Set 3 : Add testing for fallback crash handling integration. Also, make it pass the tests. #

Patch Set 4 : Address Scott's comments. #

Total comments: 4

Patch Set 5 : Address Scott's comment. #

Patch Set 6 : Workaround chrome_elf stubbing of SetUEF. #

Patch Set 7 : Misc fixes to allow the fallback handler to actually work. #

Patch Set 8 : Fix the thread_id recorded in the minidump. #

Patch Set 9 : Fix signedness comparison goof. #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+308 lines, -17 lines) Patch
M chrome/app/chrome_crash_reporter_client_win.cc View 1 2 3 4 5 6 1 chunk +4 lines, -1 line 0 comments Download
M chrome/app/chrome_exe_main_win.cc View 1 4 chunks +24 lines, -0 lines 0 comments Download
M chrome/install_static/install_util.h View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M chrome/install_static/install_util.cc View 1 2 3 4 5 6 1 chunk +2 lines, -0 lines 0 comments Download
M components/crash/content/app/BUILD.gn View 1 2 2 chunks +4 lines, -0 lines 2 comments Download
M components/crash/content/app/fallback_crash_handler_launcher_win.cc View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M components/crash/content/app/fallback_crash_handler_win.h View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M components/crash/content/app/fallback_crash_handler_win.cc View 1 2 3 4 5 6 7 2 chunks +22 lines, -14 lines 0 comments Download
A components/crash/content/app/fallback_crash_handling_win.h View 1 2 3 4 5 6 1 chunk +43 lines, -0 lines 0 comments Download
A components/crash/content/app/fallback_crash_handling_win.cc View 1 2 3 4 5 6 1 chunk +119 lines, -0 lines 2 comments Download
A components/crash/content/app/fallback_crash_handling_win_unittest.cc View 1 2 3 4 5 6 7 8 1 chunk +85 lines, -0 lines 0 comments Download

Messages

Total messages: 44 (23 generated)
Sigurður Ásgeirsson
Hey Scott, this is a lot^Wbit less ugly than my first attempt. I don't love ...
3 years, 11 months ago (2017-01-13 22:00:50 UTC) #3
Sigurður Ásgeirsson
Hey Greg, mind taking a look at my use of install_static here? Siggi
3 years, 11 months ago (2017-01-13 22:02:21 UTC) #5
scottmg
I think the name's fine. https://codereview.chromium.org/2638433002/diff/20001/components/crash/content/app/fallback_crash_handling_win.cc File components/crash/content/app/fallback_crash_handling_win.cc (right): https://codereview.chromium.org/2638433002/diff/20001/components/crash/content/app/fallback_crash_handling_win.cc#newcode8 components/crash/content/app/fallback_crash_handling_win.cc:8: #include <string> Can remove ...
3 years, 11 months ago (2017-01-13 22:20:00 UTC) #6
Sigurður Ásgeirsson
Thanks, glad you hate it less than my first cut. There's too much hate in ...
3 years, 11 months ago (2017-01-13 22:40:28 UTC) #7
Sigurður Ásgeirsson
Thanks - now with testing, and may actually work. https://codereview.chromium.org/2638433002/diff/20001/components/crash/content/app/fallback_crash_handling_win.cc File components/crash/content/app/fallback_crash_handling_win.cc (right): https://codereview.chromium.org/2638433002/diff/20001/components/crash/content/app/fallback_crash_handling_win.cc#newcode8 components/crash/content/app/fallback_crash_handling_win.cc:8: ...
3 years, 11 months ago (2017-01-16 18:23:24 UTC) #10
scottmg
https://codereview.chromium.org/2638433002/diff/60001/components/crash/content/app/fallback_crash_handling_win.cc File components/crash/content/app/fallback_crash_handling_win.cc (right): https://codereview.chromium.org/2638433002/diff/60001/components/crash/content/app/fallback_crash_handling_win.cc#newcode69 components/crash/content/app/fallback_crash_handling_win.cc:69: SetUnhandledExceptionFilter(&FallbackUnhandledExceptionFilter); I have the feeling this won't do anything, ...
3 years, 11 months ago (2017-01-16 18:32:57 UTC) #13
scottmg
Generally seems fine. I'm not sure what we should do about the disabled SetUEF though. ...
3 years, 11 months ago (2017-01-16 18:40:29 UTC) #14
Sigurður Ásgeirsson
Thanks - I'm going to try this on a full release build of Chrome, see ...
3 years, 11 months ago (2017-01-16 18:52:44 UTC) #15
Sigurður Ásgeirsson
Ok, I verified that as-was, this was hitting the stubbed-out SetUEF. Also verified that this ...
3 years, 11 months ago (2017-01-16 20:49:29 UTC) #18
scottmg
I think it's OK to just test the handler crash manually to satisfy yourself that ...
3 years, 11 months ago (2017-01-16 20:56:41 UTC) #19
Sigurður Ásgeirsson
Now actually works - I'd love to get this landed for tomorrow's Canary, so I've ...
3 years, 11 months ago (2017-01-16 21:47:00 UTC) #21
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/2638433002/120001
3 years, 11 months ago (2017-01-16 21:55:32 UTC) #26
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/2638433002/140001
3 years, 11 months ago (2017-01-16 22:05:23 UTC) #29
commit-bot: I haz the power
Try jobs failed on following builders: win_clang on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_clang/builds/152935)
3 years, 11 months ago (2017-01-16 23:16:53 UTC) #31
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/2638433002/160001
3 years, 11 months ago (2017-01-16 23:38:05 UTC) #34
commit-bot: I haz the power
Committed patchset #9 (id:160001) as https://chromium.googlesource.com/chromium/src/+/62fd0c1ec30ee121aa0720d8d7d390cc7e9ba226
3 years, 11 months ago (2017-01-17 00:35:02 UTC) #37
brucedawson
This seems wrong, and it also surprises me that this wasn't caught by the sizes ...
3 years, 11 months ago (2017-01-26 19:43:21 UTC) #39
scottmg
On 2017/01/26 19:43:21, brucedawson wrote: > This seems wrong, and it also surprises me that ...
3 years, 11 months ago (2017-01-26 20:34:28 UTC) #40
brucedawson
> Yeah, you're right, that ought to be a Lazy/Leaky/pointer, sorry. > > We've never ...
3 years, 10 months ago (2017-01-27 19:00:31 UTC) #41
brettw
https://codereview.chromium.org/2638433002/diff/160001/components/crash/content/app/BUILD.gn File components/crash/content/app/BUILD.gn (right): https://codereview.chromium.org/2638433002/diff/160001/components/crash/content/app/BUILD.gn#newcode81 components/crash/content/app/BUILD.gn:81: "//chrome/install_static:install_static_util", This is a layering violation. Can you please ...
3 years, 4 months ago (2017-08-24 23:35:46 UTC) #43
Sigurður Ásgeirsson
3 years, 3 months ago (2017-08-25 20:20:55 UTC) #44
Message was sent while issue was closed.
https://codereview.chromium.org/2638433002/diff/160001/components/crash/conte...
File components/crash/content/app/BUILD.gn (right):

https://codereview.chromium.org/2638433002/diff/160001/components/crash/conte...
components/crash/content/app/BUILD.gn:81:
"//chrome/install_static:install_static_util",
On 2017/08/24 23:35:46, brettw wrote:
> This is a layering violation. Can you please fix it? I filed
> https://bugs.chromium.org/p/chromium/issues/detail?id=758759 to track.
> 
> Thanks!

Done.

https://codereview.chromium.org/2638433002/diff/160001/components/crash/conte...
File components/crash/content/app/fallback_crash_handling_win.cc (right):

https://codereview.chromium.org/2638433002/diff/160001/components/crash/conte...
components/crash/content/app/fallback_crash_handling_win.cc:27:
std::unique_ptr<FallbackCrashHandlerLauncher> g_fallback_crash_handler_launcher;
On 2017/01/26 19:43:21, brucedawson wrote:
> Why are we using a global variable with a constructor and destructor here?
> Doesn't this violate the style guide?
> 
> I discovered this by stepping through all of the global initializers called by
> {,,chrome.exe}_initterm

Done.

Powered by Google App Engine
This is Rietveld 408576698