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

Issue 1517503004: win: Fix not setting crash keys in non-component build (Closed)

Created:
5 years ago by scottmg
Modified:
5 years ago
CC:
chromium-reviews, darin-cc_chromium.org, jam, sadrul, kalyank
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

win: Fix not setting crash keys in non-component build This was broken at https://codereview.chromium.org/1481703002/ in static_library builds. base/debug/crash_logging.cc silently ignores key setting if there's not a key setting function set to it. When crashpad moved to the exe, everything sort of seemed OK (and a few keys got set because they're set in crashpad.cc in the exe). But any set from the dlls went into their copy of base/debug/crash_logging.cc which didn't have logging set up in crashpad.cc because it only initialized the globals in the exe. The fix (resurrected from code removed in https://codereview.chromium.org/1479283002/) is to have the DLLs set their own function to call back into the exe. This doesn't occur in shared_library builds because there's only one 'base'. Example static_library: crash/7e66260061a696bb (noting that Fields include switches, extensions, etc.) Example shared_library: crash/708ab5c5f980e0df R=mark@chromium.org TBR=cpu@chromium.org BUG=568189, 546288 Committed: https://crrev.com/f2f2fec741ee1eb7979eab24c5558d6f5efeb020 Cr-Commit-Position: refs/heads/master@{#364501}

Patch Set 1 #

Patch Set 2 : . #

Patch Set 3 : . #

Total comments: 1

Patch Set 4 : remove unnecessary include #

Patch Set 5 : don't initialize in tests #

Unified diffs Side-by-side diffs Delta from patch set Stats (+71 lines, -8 lines) Patch
M chrome/common/child_process_logging_win.cc View 1 chunk +41 lines, -0 lines 0 comments Download
M chrome/test/base/chrome_test_launcher.cc View 1 2 3 4 1 chunk +0 lines, -8 lines 0 comments Download
M components/crash/content/app/crashpad.cc View 1 2 3 chunks +30 lines, -0 lines 0 comments Download

Messages

Total messages: 28 (18 generated)
scottmg
I was totally wrong in https://codereview.chromium.org/1481703002/#msg20. :( It does indeed go through there, but only ...
5 years ago (2015-12-10 00:51:40 UTC) #11
scottmg
https://codereview.chromium.org/1517503004/diff/40001/components/crash/content/app/crashpad.cc File components/crash/content/app/crashpad.cc (right): https://codereview.chromium.org/1517503004/diff/40001/components/crash/content/app/crashpad.cc#newcode255 components/crash/content/app/crashpad.cc:255: const wchar_t* value) { These also happen to be ...
5 years ago (2015-12-10 01:11:29 UTC) #12
Mark Mentovai
LGTM Freakin’ component=shared_library build strikes again!
5 years ago (2015-12-10 02:19:57 UTC) #13
scottmg
The test initialization of crash keys is a mess. I filed https://code.google.com/p/chromium/issues/detail?id=568664, and removed InitializeCrashpad() ...
5 years ago (2015-12-10 19:08:31 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1517503004/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1517503004/80001
5 years ago (2015-12-10 20:04:52 UTC) #17
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/127727)
5 years ago (2015-12-10 20:23:39 UTC) #19
scottmg
+cpu for owners
5 years ago (2015-12-10 20:32:04 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1517503004/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1517503004/80001
5 years ago (2015-12-10 20:35:22 UTC) #24
commit-bot: I haz the power
Committed patchset #5 (id:80001)
5 years ago (2015-12-10 22:18:45 UTC) #26
commit-bot: I haz the power
5 years ago (2015-12-10 22:19:28 UTC) #28
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/f2f2fec741ee1eb7979eab24c5558d6f5efeb020
Cr-Commit-Position: refs/heads/master@{#364501}

Powered by Google App Engine
This is Rietveld 408576698