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

Issue 2377963002: restore LOG_FATAL crash key on windows

Created:
4 years, 2 months ago by rkuksin
Modified:
4 years, 1 month ago
CC:
chromium-reviews, anandc+watch-blimp_chromium.org, maniscalco+watch-blimp_chromium.org, sriramsr+watch-blimp_chromium.org, bgoldman+watch-blimp_chromium.org, jam, steimel+watch-blimp_chromium.org, gcasto+watch-blimp_chromium.org, sadrul, shaktisahu+watch-blimp_chromium.org, nyquist+watch-blimp_chromium.org, perumaal+watch-blimp_chromium.org, marcinjb+watch-blimp_chromium.org, jessicag+watch-blimp_chromium.org, kmarshall+watch-blimp_chromium.org, lethalantidote+watch-blimp_chromium.org, kalyank, darin-cc_chromium.org, dtrainor+watch-blimp_chromium.org, scf+watch-blimp_chromium.org, khushalsagar+watch-blimp_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

restore LOG_FATAL crash key on windows The method logging::SetLogMessageHandler saves callback in global variable. It doesn't work since crashpad initialization moved to chrome_elf.dll. That's why crash reports lost LOG_FATAL crash key. DCHECK(false) << "This string won't be attached to crash reports on windows."; R=rsesek@chromium.org,ananta@chromium.org,dcheng@chromium.org

Patch Set 1 #

Total comments: 8

Patch Set 2 : review issues #

Total comments: 2

Patch Set 3 : remove include auto_reset.h #

Patch Set 4 : return protection against reentrancy #

Total comments: 2

Patch Set 5 : move LOG_FATAL key setting to base::debug::crash_logging #

Patch Set 6 : move CrashMessageHandler out of base #

Unified diffs Side-by-side diffs Delta from patch set Stats (+48 lines, -35 lines) Patch
M base/debug/crash_logging.cc View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M base/logging.h View 1 2 3 4 1 chunk +5 lines, -0 lines 0 comments Download
M base/logging.cc View 1 2 3 4 3 chunks +9 lines, -0 lines 0 comments Download
M blimp/engine/app/blimp_engine_crash_keys.cc View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M chrome/app/chrome_crash_reporter_client_win.cc View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/child_process_logging_win.cc View 1 2 3 4 5 2 chunks +15 lines, -0 lines 0 comments Download
M chrome/common/crash_keys.cc View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M components/crash/content/app/crashpad.cc View 1 2 3 4 5 3 chunks +10 lines, -35 lines 0 comments Download
M components/crash/core/common/crash_keys.h View 1 2 3 4 1 chunk +3 lines, -0 lines 0 comments Download
M components/crash/core/common/crash_keys.cc View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 34 (4 generated)
rkuksin
4 years, 2 months ago (2016-09-28 06:41:51 UTC) #1
rkuksin
4 years, 2 months ago (2016-09-28 06:45:49 UTC) #2
dcheng
Hmm, does it make sense for this initialization to be in //base? Why wouldn't it ...
4 years, 2 months ago (2016-09-28 20:20:16 UTC) #4
Robert Sesek
This doesn't seem like the right approach. At the bottom of crashpad.cc are the exports ...
4 years, 2 months ago (2016-09-28 22:04:08 UTC) #5
rkuksin
On 2016/09/28 22:04:08, Robert Sesek wrote: > This doesn't seem like the right approach. At ...
4 years, 2 months ago (2016-09-29 03:17:09 UTC) #6
rkuksin
On 2016/09/28 20:20:16, dcheng wrote: > Hmm, does it make sense for this initialization to ...
4 years, 2 months ago (2016-09-29 03:28:04 UTC) #7
Robert Sesek
On 2016/09/29 03:17:09, rkuksin wrote: > On 2016/09/28 22:04:08, Robert Sesek wrote: > > This ...
4 years, 2 months ago (2016-09-29 22:43:14 UTC) #8
rkuksin
On 2016/09/29 22:43:14, Robert Sesek wrote: > On 2016/09/29 03:17:09, rkuksin wrote: > > On ...
4 years, 2 months ago (2016-09-30 03:25:19 UTC) #9
rkuksin
There is another argument against using logging::SetLogMessageHandler. We cannot use it for crash keys setting ...
4 years, 2 months ago (2016-10-04 06:05:06 UTC) #10
scottmg
(drive-by by request) It doesn't seem too bad to me to have base/logging.h depend on ...
4 years, 2 months ago (2016-10-05 22:06:21 UTC) #12
rkuksin
On 2016/10/05 22:06:21, scottmg wrote: > I'm not familiar with the intricacies of base, is ...
4 years, 2 months ago (2016-10-06 05:53:14 UTC) #13
rkuksin
https://codereview.chromium.org/2377963002/diff/1/base/logging.cc File base/logging.cc (right): https://codereview.chromium.org/2377963002/diff/1/base/logging.cc#newcode133 base/logging.cc:133: // Nacl targets miss base/debug/crash_logging.cc. On 2016/10/05 22:06:21, scottmg ...
4 years, 2 months ago (2016-10-06 08:50:33 UTC) #14
dcheng
https://codereview.chromium.org/2377963002/diff/20001/base/logging.cc File base/logging.cc (right): https://codereview.chromium.org/2377963002/diff/20001/base/logging.cc#newcode544 base/logging.cc:544: if (severity_ == LOG_FATAL) { This still needs to ...
4 years, 2 months ago (2016-10-06 08:52:40 UTC) #15
rkuksin
https://codereview.chromium.org/2377963002/diff/20001/base/logging.cc File base/logging.cc (right): https://codereview.chromium.org/2377963002/diff/20001/base/logging.cc#newcode544 base/logging.cc:544: if (severity_ == LOG_FATAL) { On 2016/10/06 08:52:40, dcheng ...
4 years, 2 months ago (2016-10-07 07:44:12 UTC) #16
dcheng
//base LGTM
4 years, 2 months ago (2016-10-07 21:35:01 UTC) #17
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/2377963002/60001
4 years, 2 months ago (2016-10-08 13:02:41 UTC) #19
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/277162)
4 years, 2 months ago (2016-10-08 13:11:34 UTC) #21
rkuksin
Hi! I still need approvement for these files: blimp/engine/app/blimp_engine_crash_keys.cc chrome/app/chrome_crash_reporter_client_win.cc chrome/common/crash_keys.cc components/crash/content/app/crashpad.cc Is there anything ...
4 years, 2 months ago (2016-10-11 03:25:47 UTC) #22
rkuksin
Review please. Need lgtm.
4 years, 2 months ago (2016-10-17 02:40:51 UTC) #23
rkuksin
4 years, 2 months ago (2016-10-20 10:56:35 UTC) #24
rkuksin
On 2016/10/20 10:56:35, rkuksin wrote: PTAL
4 years, 2 months ago (2016-10-20 10:57:04 UTC) #25
scottmg
lgtm for crashpad.cc if Robert thinks it's OK too. rkuksin: in general, if you're looking ...
4 years, 2 months ago (2016-10-20 15:48:46 UTC) #26
Robert Sesek
I still don't agree that this should be in base, but dcheng is OWNER so ...
4 years, 2 months ago (2016-10-21 15:38:00 UTC) #27
dcheng
On 2016/10/21 15:38:00, Robert Sesek wrote: > I still don't agree that this should be ...
4 years, 2 months ago (2016-10-21 15:52:44 UTC) #28
rkuksin
dcheng, PTAL I added additional message handler to base::logging. Chrome sets it when registering crash ...
4 years, 1 month ago (2016-10-24 09:08:28 UTC) #29
dcheng
I think part of rsesek's feedback is that the crash key itself shouldn't be specified ...
4 years, 1 month ago (2016-10-27 21:52:09 UTC) #30
rkuksin
On 2016/10/27 21:52:09, dcheng wrote: > I think part of rsesek's feedback is that the ...
4 years, 1 month ago (2016-10-28 04:39:52 UTC) #31
dcheng
So I'm wondering if we should just natively support multiple logging handlers. It makes this ...
4 years, 1 month ago (2016-11-11 09:26:14 UTC) #32
rkuksin
OK
4 years, 1 month ago (2016-11-11 10:14:18 UTC) #33
Robert Sesek
4 years, 1 month ago (2016-11-14 16:13:44 UTC) #34
On 2016/11/11 09:26:14, dcheng wrote:
> So I'm wondering if we should just natively support multiple logging handlers.
> It makes this a bit more complex, but since it seems like it's really easy to
> make conflicting logging handlers, that seems like the better path forward.
> 
> Probably, we can do that in a separate patch, and then rebase this on top of
> that. WDYT?

Someone seems to be working on this already:
https://codereview.chromium.org/2034393004/

Powered by Google App Engine
This is Rietveld 408576698