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

Issue 2240233002: Print additional message for RELEASE_ASSERT in builds used for fuzzing. (Closed)

Created:
4 years, 4 months ago by mmoroz
Modified:
4 years, 3 months ago
CC:
blink-reviews, blink-reviews-wtf_chromium.org, chromium-reviews, Mikhail
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Make SECURITY_CHECK and SECURITY_DCHECK to print different messages. RELEASE_ASSERT prints the same message as SECURITY_CHECK, because RELEASE_ASSERT is deprecated and being actively replaced by SECURITY_CHECK. BUG=620960 Committed: https://crrev.com/e2fd3f4dfb0e57e7086ca680bfe73c7cf290496d Cr-Commit-Position: refs/heads/master@{#414684}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Move to #elif block (avoid changing debug builds) and use LOG_IF() instead of WTFLogAlways(). #

Total comments: 5

Patch Set 3 : Make SECURITY_CHECK and SECURITY_DCHECK different, use SECURITY_CHECK message in RELEASE_ASSERT. #

Total comments: 3

Patch Set 4 : #define RELEASE_ASSERT(condition) SECURITY_CHECK(condition) for our case. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+5 lines, -4 lines) Patch
M third_party/WebKit/Source/wtf/Assertions.h View 1 2 3 2 chunks +4 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/wtf/text/StringConcatenate.h View 1 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 20 (6 generated)
inferno
https://codereview.chromium.org/2240233002/diff/1/third_party/WebKit/Source/wtf/Assertions.h File third_party/WebKit/Source/wtf/Assertions.h (right): https://codereview.chromium.org/2240233002/diff/1/third_party/WebKit/Source/wtf/Assertions.h#newcode292 third_party/WebKit/Source/wtf/Assertions.h:292: #if defined(ADDRESS_SANITIZER) This should come after #if ENABLE(ASSERT) block ...
4 years, 4 months ago (2016-08-12 17:43:56 UTC) #2
mmoroz
Thanks for comments Abhishek, your suggestion works. It gives the message + condition + stacktrace. ...
4 years, 3 months ago (2016-08-25 10:45:53 UTC) #3
mmoroz
An example of how a crash looks is available in ClusterFuzz CL: https://chromereviews.googleplex.com/496797013
4 years, 3 months ago (2016-08-25 12:40:31 UTC) #4
tkent
https://codereview.chromium.org/2240233002/diff/20001/third_party/WebKit/Source/wtf/Assertions.h File third_party/WebKit/Source/wtf/Assertions.h (right): https://codereview.chromium.org/2240233002/diff/20001/third_party/WebKit/Source/wtf/Assertions.h#newcode267 third_party/WebKit/Source/wtf/Assertions.h:267: #define RELEASE_ASSERT(condition) LOG_IF(FATAL, !(condition)) << "Release assert failed: " ...
4 years, 3 months ago (2016-08-25 12:54:06 UTC) #5
mmoroz
https://codereview.chromium.org/2240233002/diff/20001/third_party/WebKit/Source/wtf/Assertions.h File third_party/WebKit/Source/wtf/Assertions.h (right): https://codereview.chromium.org/2240233002/diff/20001/third_party/WebKit/Source/wtf/Assertions.h#newcode267 third_party/WebKit/Source/wtf/Assertions.h:267: #define RELEASE_ASSERT(condition) LOG_IF(FATAL, !(condition)) << "Release assert failed: " ...
4 years, 3 months ago (2016-08-25 13:13:46 UTC) #6
mmoroz
https://codereview.chromium.org/2240233002/diff/20001/third_party/WebKit/Source/wtf/Assertions.h File third_party/WebKit/Source/wtf/Assertions.h (right): https://codereview.chromium.org/2240233002/diff/20001/third_party/WebKit/Source/wtf/Assertions.h#newcode267 third_party/WebKit/Source/wtf/Assertions.h:267: #define RELEASE_ASSERT(condition) LOG_IF(FATAL, !(condition)) << "Release assert failed: " ...
4 years, 3 months ago (2016-08-25 13:39:51 UTC) #7
mmoroz
https://codereview.chromium.org/2240233002/diff/40001/third_party/WebKit/Source/wtf/Assertions.h File third_party/WebKit/Source/wtf/Assertions.h (right): https://codereview.chromium.org/2240233002/diff/40001/third_party/WebKit/Source/wtf/Assertions.h#newcode249 third_party/WebKit/Source/wtf/Assertions.h:249: #define SECURITY_DCHECK(condition) LOG_IF(FATAL, !(condition)) << "Security DCHECK failed: " ...
4 years, 3 months ago (2016-08-25 13:44:04 UTC) #8
mmoroz
4 years, 3 months ago (2016-08-25 13:44:05 UTC) #9
tkent
lgtm
4 years, 3 months ago (2016-08-25 13:47:11 UTC) #10
inferno
lgtm with nits. https://codereview.chromium.org/2240233002/diff/40001/third_party/WebKit/Source/wtf/Assertions.h File third_party/WebKit/Source/wtf/Assertions.h (right): https://codereview.chromium.org/2240233002/diff/40001/third_party/WebKit/Source/wtf/Assertions.h#newcode266 third_party/WebKit/Source/wtf/Assertions.h:266: #define RELEASE_ASSERT(condition) LOG_IF(FATAL, !(condition)) << "Security ...
4 years, 3 months ago (2016-08-25 15:03:06 UTC) #11
mmoroz
https://codereview.chromium.org/2240233002/diff/40001/third_party/WebKit/Source/wtf/Assertions.h File third_party/WebKit/Source/wtf/Assertions.h (right): https://codereview.chromium.org/2240233002/diff/40001/third_party/WebKit/Source/wtf/Assertions.h#newcode266 third_party/WebKit/Source/wtf/Assertions.h:266: #define RELEASE_ASSERT(condition) LOG_IF(FATAL, !(condition)) << "Security CHECK failed: " ...
4 years, 3 months ago (2016-08-26 08:10:00 UTC) #12
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/2240233002/60001
4 years, 3 months ago (2016-08-26 08:59:43 UTC) #16
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 3 months ago (2016-08-26 11:09:26 UTC) #18
commit-bot: I haz the power
4 years, 3 months ago (2016-08-26 11:12:50 UTC) #20
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/e2fd3f4dfb0e57e7086ca680bfe73c7cf290496d
Cr-Commit-Position: refs/heads/master@{#414684}

Powered by Google App Engine
This is Rietveld 408576698