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

Issue 1814423002: Patch to try dump-on-DCHECK. (Closed)

Created:
4 years, 9 months ago by Wez
Modified:
4 years, 8 months ago
Reviewers:
danakj, hans, Nico, scottmg
CC:
chromium-reviews, laforge, Primiano Tucci (use gerrit), dcheng, scottmg, gab
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Patch to try dump-on-DCHECK. This patch does two things: 1. Adds a flag to switch DCHECK from logging, dumping, and then crashing the process, to only uploading a crash dump, and only on the first failed DCHECK in each process. 2. Forces that flag, and DCHECK_ALWAYS_ON, on in Windows official builds. All non-debug e.g. CHECK behaviours remain unchanged; the intended effect is for DCHECKs to switch from no-ops to uploading dumps without crashing, in Windows official builds. Note that this CL is intended to be landed, a branch cut to release from, and then immediately reverted; it is not intended to be landed in Chromium for any longer period. BUG=596231 Committed: https://crrev.com/6436ac7ddec4b2b3aba4ee38aabe7dffe238a077 Cr-Commit-Position: refs/heads/master@{#383894} Committed: https://crrev.com/bac26c8a840909a679a5a74557fa6f4f60ae9e07 Cr-Commit-Position: refs/heads/master@{#384011} Committed: https://crrev.com/16502cb143f737bafad5d035b8ed6d76aabce288 Cr-Commit-Position: refs/heads/master@{#384675} Committed: https://crrev.com/b80aa8f5c269c9ee4f3a00b03840ea3df68f77d1 Cr-Commit-Position: refs/heads/master@{#385413}

Patch Set 1 #

Patch Set 2 : Implement DCHECK_OP & use a build macro to configure #

Patch Set 3 : Enable only for official builds #

Patch Set 4 : Fix conditional for DCheckDumpWithoutCrashing #

Total comments: 12

Patch Set 5 : Clean up formatting & improve comments #

Patch Set 6 : Update GYP files to build dump-without-crash under Windows #

Patch Set 7 : Limit to Windows official builds #

Patch Set 8 : Fix define #

Patch Set 9 : Fix LoggingTest.Dcheck #

Patch Set 10 : Only build for Win official #

Total comments: 13

Patch Set 11 : Address comments #

Patch Set 12 : Disable Blink ASSERT in dump-without-DCHECK builds #

Total comments: 1

Patch Set 13 : Tweak comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+95 lines, -12 lines) Patch
M base/debug/dump_without_crashing.h View 1 chunk +2 lines, -1 line 0 comments Download
M base/debug/dump_without_crashing.cc View 1 chunk +5 lines, -2 lines 0 comments Download
M base/logging.h View 1 2 3 4 5 6 7 8 9 10 5 chunks +38 lines, -2 lines 0 comments Download
M base/logging.cc View 1 2 3 4 5 2 chunks +14 lines, -0 lines 0 comments Download
M base/logging_unittest.cc View 1 2 3 4 5 6 7 8 1 chunk +9 lines, -3 lines 0 comments Download
M build/common.gypi View 1 2 3 4 5 6 7 8 9 10 11 3 chunks +13 lines, -0 lines 0 comments Download
M build/config/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +8 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/wtf/Assertions.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +6 lines, -4 lines 0 comments Download

Messages

Total messages: 119 (49 generated)
Wez
tl;dr: We'd like to land this for a single Canary branch sometime this week, then ...
4 years, 9 months ago (2016-03-20 22:13:50 UTC) #2
Nico
mention the "land and revert soon after" bit in the cl description please https://codereview.chromium.org/1814423002/diff/60001/base/logging.cc File ...
4 years, 9 months ago (2016-03-20 23:10:40 UTC) #3
scottmg
https://codereview.chromium.org/1814423002/diff/60001/base/logging.cc File base/logging.cc (right): https://codereview.chromium.org/1814423002/diff/60001/base/logging.cc#newcode64 base/logging.cc:64: #if defined(OFFICIAL_BUILD) Remove the #if here. https://codereview.chromium.org/1814423002/diff/60001/base/logging.h File base/logging.h ...
4 years, 9 months ago (2016-03-21 17:28:12 UTC) #5
jam
On 2016/03/20 22:13:50, Wez wrote: > tl;dr: We'd like to land this for a single ...
4 years, 9 months ago (2016-03-21 17:40:03 UTC) #6
jam
On 2016/03/21 17:40:03, jam wrote: > On 2016/03/20 22:13:50, Wez wrote: > > tl;dr: We'd ...
4 years, 9 months ago (2016-03-21 19:47:13 UTC) #7
Wez
PTAL https://codereview.chromium.org/1814423002/diff/60001/base/logging.cc File base/logging.cc (right): https://codereview.chromium.org/1814423002/diff/60001/base/logging.cc#newcode64 base/logging.cc:64: #if defined(OFFICIAL_BUILD) On 2016/03/21 17:28:12, scottmg wrote: > ...
4 years, 9 months ago (2016-03-23 04:18:13 UTC) #8
Wez
John, could you review, since Nico is OOO?
4 years, 9 months ago (2016-03-23 17:18:53 UTC) #10
jam
On 2016/03/23 17:18:53, Wez wrote: > John, could you review, since Nico is OOO? this ...
4 years, 9 months ago (2016-03-23 20:02:08 UTC) #11
Wez
Good point! Dana, can you do the honours?
4 years, 9 months ago (2016-03-23 20:40:54 UTC) #13
Wez
danakj: Please review base/ scottmg: Please review build/ Thanks!
4 years, 9 months ago (2016-03-23 22:52:16 UTC) #16
scottmg
build/ lgtm
4 years, 9 months ago (2016-03-23 23:20:41 UTC) #17
danakj
Why aren't you just changing here: https://code.google.com/p/chromium/codesearch#chromium/src/base/logging.cc&l=735 ? https://codereview.chromium.org/1814423002/diff/180001/base/logging.h File base/logging.h (right): https://codereview.chromium.org/1814423002/diff/180001/base/logging.h#newcode669 base/logging.h:669: #define ...
4 years, 9 months ago (2016-03-24 00:10:34 UTC) #18
Wez
On 2016/03/24 00:10:34, danakj wrote: > Why aren't you just changing here: > https://code.google.com/p/chromium/codesearch#chromium/src/base/logging.cc&l=735 > ...
4 years, 9 months ago (2016-03-24 00:33:57 UTC) #19
Wez
Balh; looks like there are a variety of death-tests that rely on DCHECK & pals ...
4 years, 9 months ago (2016-03-24 00:53:49 UTC) #21
danakj
I don't like tying this flag to DCHECK_ALWAYS_ON, I would make it a separate GN ...
4 years, 9 months ago (2016-03-24 21:29:41 UTC) #22
Wez
On 2016/03/24 21:29:41, danakj wrote: > I don't like tying this flag to DCHECK_ALWAYS_ON, I ...
4 years, 9 months ago (2016-03-25 00:10:26 UTC) #23
Wez
Meaning that, with those patches in place, this one can set DCHECK_IS_CHECK()=false, DCHECK_IS_ON()=true and thereby ...
4 years, 9 months ago (2016-03-25 00:11:36 UTC) #24
danakj
On Thu, Mar 24, 2016 at 5:10 PM, <wez@chromium.org> wrote: > On 2016/03/24 21:29:41, danakj ...
4 years, 9 months ago (2016-03-25 00:20:11 UTC) #25
Wez
As discussed off-line (sorry, only just saw this response): There are a number of code ...
4 years, 9 months ago (2016-03-25 01:03:49 UTC) #26
danakj
https://codereview.chromium.org/1814423002/diff/180001/base/logging.h File base/logging.h (right): https://codereview.chromium.org/1814423002/diff/180001/base/logging.h#newcode666 base/logging.h:666: #if defined(_PREFAST_) && defined(OS_WIN) Seems like dumping should win ...
4 years, 9 months ago (2016-03-25 23:21:33 UTC) #27
Wez
https://codereview.chromium.org/1814423002/diff/180001/base/logging.h File base/logging.h (right): https://codereview.chromium.org/1814423002/diff/180001/base/logging.h#newcode666 base/logging.h:666: #if defined(_PREFAST_) && defined(OS_WIN) On 2016/03/25 23:21:32, danakj wrote: ...
4 years, 9 months ago (2016-03-25 23:57:30 UTC) #28
danakj
OK LGTM let's see what data we can collect.
4 years, 9 months ago (2016-03-26 00:28:01 UTC) #29
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1814423002/200001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1814423002/200001
4 years, 8 months ago (2016-03-29 20:23:11 UTC) #32
commit-bot: I haz the power
Try jobs failed on following builders: linux_android_rel_ng on tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/linux_android_rel_ng/builds/44782)
4 years, 8 months ago (2016-03-29 23:59:26 UTC) #34
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1814423002/200001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1814423002/200001
4 years, 8 months ago (2016-03-30 00:00:04 UTC) #36
commit-bot: I haz the power
Committed patchset #11 (id:200001)
4 years, 8 months ago (2016-03-30 01:26:08 UTC) #38
commit-bot: I haz the power
Patchset 11 (id:??) landed as https://crrev.com/6436ac7ddec4b2b3aba4ee38aabe7dffe238a077 Cr-Commit-Position: refs/heads/master@{#383894}
4 years, 8 months ago (2016-03-30 01:28:32 UTC) #40
shinyak
A revert of this CL (patchset #11 id:200001) has been created in https://codereview.chromium.org/1842563008/ by shinyak@chromium.org. ...
4 years, 8 months ago (2016-03-30 04:15:40 UTC) #41
Wez
"This might be breaking official build" is not a sufficient rationale for revert - please ...
4 years, 8 months ago (2016-03-30 04:38:14 UTC) #42
shinyak
Sorry that insufficient information. Tracking bug is here https://bugs.chromium.org/p/chromium/issues/detail?id=598955 https://build.chromium.org/p/chromium.perf/builders/Win%20Builder/ https://build.chromium.org/p/chromium.perf/builders/Win%20x64%20Builder/ https://build.chromium.org/p/chromium.chrome/builders/Google%20Chrome%20Win
4 years, 8 months ago (2016-03-30 05:05:04 UTC) #44
Wez
Thanks! On 29 March 2016 at 22:05, shinyak@chromium.org via codereview.chromium.org <reply@chromiumcodereview-hr.appspotmail.com> wrote: > Sorry that ...
4 years, 8 months ago (2016-03-30 05:16:23 UTC) #45
Wez
brucedawson@ believes the failure was a toolchain flake, and I cannot repro issue locally, so ...
4 years, 8 months ago (2016-03-30 17:00:00 UTC) #46
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1814423002/200001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1814423002/200001
4 years, 8 months ago (2016-03-30 17:00:30 UTC) #48
commit-bot: I haz the power
Committed patchset #11 (id:200001)
4 years, 8 months ago (2016-03-30 17:06:03 UTC) #50
commit-bot: I haz the power
Patchset 11 (id:??) landed as https://crrev.com/bac26c8a840909a679a5a74557fa6f4f60ae9e07 Cr-Commit-Position: refs/heads/master@{#384011}
4 years, 8 months ago (2016-03-30 17:07:36 UTC) #52
Nico
A revert of this CL (patchset #11 id:200001) has been created in https://codereview.chromium.org/1850473002/ by thakis@chromium.org. ...
4 years, 8 months ago (2016-03-30 19:34:21 UTC) #53
Wez
Please clobber rather than reverting - brucedawson@ believes that this is a toolchain flake. On ...
4 years, 8 months ago (2016-03-30 19:55:48 UTC) #54
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1814423002/200001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1814423002/200001
4 years, 8 months ago (2016-03-31 01:11:39 UTC) #57
Wez
Bruce has landed https://codereview.chromium.org/1842203003/ to shard webcore_dom.lib, which was close to 2GB in size before ...
4 years, 8 months ago (2016-03-31 01:12:12 UTC) #58
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_ozone_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_ozone_rel_ng/builds/146871)
4 years, 8 months ago (2016-03-31 01:33:24 UTC) #60
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1814423002/200001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1814423002/200001
4 years, 8 months ago (2016-03-31 01:40:56 UTC) #62
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_rel_ng/builds/188631)
4 years, 8 months ago (2016-03-31 02:50:20 UTC) #64
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1814423002/200001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1814423002/200001
4 years, 8 months ago (2016-03-31 06:18:42 UTC) #66
commit-bot: I haz the power
Try jobs failed on following builders: android_arm64_dbg_recipe on tryserver.chromium.android (JOB_TIMED_OUT, https://build.chromium.org/p/tryserver.chromium.android/builders/android_arm64_dbg_recipe/builds/42769) android_chromium_gn_compile_dbg on tryserver.chromium.android (JOB_TIMED_OUT, ...
4 years, 8 months ago (2016-03-31 07:13:22 UTC) #68
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1814423002/200001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1814423002/200001
4 years, 8 months ago (2016-03-31 16:15:05 UTC) #70
Wez
+thakis for third_party/WebKit/Source/wtf/OWNERS
4 years, 8 months ago (2016-03-31 17:19:10 UTC) #73
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1814423002/220001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1814423002/220001
4 years, 8 months ago (2016-03-31 17:19:53 UTC) #75
hans
Have you looked at the impact this will have on binary size? I almost fell ...
4 years, 8 months ago (2016-03-31 17:35:40 UTC) #77
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: linux_chromium_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_rel_ng/builds/204853)
4 years, 8 months ago (2016-03-31 21:13:11 UTC) #79
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1814423002/220001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1814423002/220001
4 years, 8 months ago (2016-03-31 21:24:16 UTC) #84
Nico
lgtm https://codereview.chromium.org/1814423002/diff/220001/third_party/WebKit/Source/wtf/Assertions.h File third_party/WebKit/Source/wtf/Assertions.h (right): https://codereview.chromium.org/1814423002/diff/220001/third_party/WebKit/Source/wtf/Assertions.h#newcode55 third_party/WebKit/Source/wtf/Assertions.h:55: /* Enable ASSERT* macros if DCHECK is on, ...
4 years, 8 months ago (2016-03-31 22:11:18 UTC) #85
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1814423002/240001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1814423002/240001
4 years, 8 months ago (2016-03-31 23:14:15 UTC) #88
Wez
On 2016/03/31 22:11:18, Nico wrote: > lgtm > > https://codereview.chromium.org/1814423002/diff/220001/third_party/WebKit/Source/wtf/Assertions.h > File third_party/WebKit/Source/wtf/Assertions.h (right): > ...
4 years, 8 months ago (2016-03-31 23:14:52 UTC) #89
commit-bot: I haz the power
Try jobs failed on following builders: linux_android_rel_ng on tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/linux_android_rel_ng/builds/46439)
4 years, 8 months ago (2016-04-01 01:10:59 UTC) #91
Nico
On Thu, Mar 31, 2016 at 7:14 PM, <wez@chromium.org> wrote: > On 2016/03/31 22:11:18, Nico ...
4 years, 8 months ago (2016-04-01 01:15:51 UTC) #92
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1814423002/240001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1814423002/240001
4 years, 8 months ago (2016-04-01 16:54:42 UTC) #94
commit-bot: I haz the power
Committed patchset #13 (id:240001)
4 years, 8 months ago (2016-04-01 20:18:32 UTC) #96
commit-bot: I haz the power
Patchset 13 (id:??) landed as https://crrev.com/16502cb143f737bafad5d035b8ed6d76aabce288 Cr-Commit-Position: refs/heads/master@{#384675}
4 years, 8 months ago (2016-04-01 20:20:15 UTC) #98
Wez
A revert of this CL (patchset #13 id:240001) has been created in https://codereview.chromium.org/1846373002/ by wez@chromium.org. ...
4 years, 8 months ago (2016-04-01 22:33:21 UTC) #99
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1814423002/240001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1814423002/240001
4 years, 8 months ago (2016-04-04 17:18:45 UTC) #102
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 8 months ago (2016-04-04 21:05:56 UTC) #104
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1814423002/240001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1814423002/240001
4 years, 8 months ago (2016-04-06 00:29:16 UTC) #106
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_asan_rel_ng on tryserver.chromium.linux (JOB_TIMED_OUT, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_asan_rel_ng/builds/141224) linux_chromium_chromeos_ozone_rel_ng on tryserver.chromium.linux (JOB_TIMED_OUT, ...
4 years, 8 months ago (2016-04-06 06:30:52 UTC) #108
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1814423002/240001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1814423002/240001
4 years, 8 months ago (2016-04-06 07:36:02 UTC) #110
commit-bot: I haz the power
Committed patchset #13 (id:240001)
4 years, 8 months ago (2016-04-06 09:12:24 UTC) #112
commit-bot: I haz the power
Patchset 13 (id:??) landed as https://crrev.com/b80aa8f5c269c9ee4f3a00b03840ea3df68f77d1 Cr-Commit-Position: refs/heads/master@{#385413}
4 years, 8 months ago (2016-04-06 09:15:07 UTC) #114
gab
Wasn't this supposed to be reverted right after the Canary cut? Surprised that it's been ...
4 years, 8 months ago (2016-04-07 14:42:19 UTC) #115
laforge
It's only been live (on Canary) for about 6 hours, but we should revert it ...
4 years, 8 months ago (2016-04-07 14:52:56 UTC) #117
Wez
A revert of this CL (patchset #13 id:240001) has been created in https://codereview.chromium.org/1870633003/ by wez@chromium.org. ...
4 years, 8 months ago (2016-04-07 15:10:51 UTC) #118
Wez
4 years, 8 months ago (2016-04-14 01:14:48 UTC) #119
Uploaded a tweaked patch to crrev.com/1884023002, rather than keep re-using this
one. :)

Powered by Google App Engine
This is Rietveld 408576698