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

Issue 1844423002: Fixing a Dr. memory failure in the remoting unit tests. (Closed)

Created:
4 years, 8 months ago by joedow
Modified:
4 years, 8 months ago
Reviewers:
Sergey Ulanov
CC:
chromium-reviews, chromoting-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fixing a Dr. memory failure in the remoting unit tests. The test I checked in yesterday had a race condition in it which was detected by the Dr. Memory bot (they run more slowly than the normal bots). On a normal bot, my runloop quits when the first (of ~11) message is written but the other messages are processed and added to the vector by the time it is checked. On the Dr. Memory bot, this condition was exposed and the size check failed. The fix is to ensure that we are processing each message as it is written/received and validating the size afterwards. BUG=599494 Committed: https://crrev.com/d0c1837abcd55db74ad07220bcc13e4c7dfb7e82 Cr-Commit-Position: refs/heads/master@{#384354}

Patch Set 1 #

Patch Set 2 : Fixing some formatting. #

Patch Set 3 : Fixing a unit test that broke on non-windows platforms. #

Patch Set 4 : Fixing a TSAN error #

Patch Set 5 : Merging in the file changes to the reader tests. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+43 lines, -32 lines) Patch
M remoting/host/security_key/remote_security_key_message_reader_impl.cc View 1 2 3 4 1 chunk +2 lines, -3 lines 0 comments Download
M remoting/host/security_key/remote_security_key_message_reader_impl_unittest.cc View 1 2 3 4 8 chunks +41 lines, -29 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 10 (3 generated)
joedow
This CL fixes a race condition in one of the unit tests I checked in ...
4 years, 8 months ago (2016-03-31 16:08:58 UTC) #2
joedow
Made a fix for a non-windows test failure.
4 years, 8 months ago (2016-03-31 17:00:37 UTC) #3
Sergey Ulanov
lgtm
4 years, 8 months ago (2016-03-31 18:42:33 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1844423002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1844423002/40001
4 years, 8 months ago (2016-03-31 19:00:16 UTC) #6
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 8 months ago (2016-03-31 19:10:03 UTC) #7
commit-bot: I haz the power
Patchset 3 (id:??) landed as https://crrev.com/d0c1837abcd55db74ad07220bcc13e4c7dfb7e82 Cr-Commit-Position: refs/heads/master@{#384354}
4 years, 8 months ago (2016-03-31 19:12:21 UTC) #9
benwells
4 years, 8 months ago (2016-04-01 04:50:44 UTC) #10
Message was sent while issue was closed.
A revert of this CL (patchset #3 id:40001) has been created in
https://codereview.chromium.org/1849023004/ by benwells@chromium.org.

The reason for reverting is: However, this was the data posted to the server:

revert_reason: This change has caused failures on TSAN, and also caused the
DrMemory bot to timeout.

See
https://build.chromium.org/p/chromium.memory.fyi/builders/Linux%20TSan%20Test...

and 

https://build.chromium.org/p/chromium.memory.fyi/builders/Windows%20Unit%20%2...
revert_cq: 1
revert_reason_textarea: This change has caused failures on TSAN, and also caused
the DrMemory bot to timeout.

See
https://build.chromium.org/p/chromium.memory.fyi/builders/Linux%20TSan%20Test...

and 

https://build.chromium.org/p/chromium.memory.fyi/builders/Windows%20Unit%20%2...
xsrf_token: 3f3abe97db5300c6623390914f94b515
.

Powered by Google App Engine
This is Rietveld 408576698