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

Issue 1132783005: Fix Valgrind issues in dispatch_source_mach_unittest.cc. (Closed)

Created:
5 years, 7 months ago by Robert Sesek
Modified:
5 years, 7 months ago
Reviewers:
Nico
CC:
chromium-reviews, erikwright+watch_chromium.org, benwells, oshima
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix Valgrind issues in dispatch_source_mach_unittest.cc. BUG=487674 R=thakis@chromium.org Committed: https://crrev.com/9fb48c09a87a6607c8a27b435d33a528d39bb526 Cr-Commit-Position: refs/heads/master@{#329790}

Patch Set 1 : #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+13 lines, -7 lines) Patch
M base/mac/dispatch_source_mach_unittest.cc View 6 chunks +13 lines, -7 lines 2 comments Download

Messages

Total messages: 12 (5 generated)
Robert Sesek
Issues: InvalidRead Invalid read of size 4 base::DispatchSourceMachTest::port() ___ZN4base54DispatchSourceMachTest_NoMessagesAfterDestruction_Test8TestBodyEv_block_invoke19 _dispatch_call_block_and_release _dispatch_queue_drain _dispatch_queue_invoke _dispatch_worker_thread2 _pthread_wqthread start_wqthread ...
5 years, 7 months ago (2015-05-13 23:09:39 UTC) #3
benwells
+cc myself (memory sheriff) and oshima (next memory sheriff).
5 years, 7 months ago (2015-05-14 01:05:10 UTC) #5
Nico
lgtm I guess the other test binary didn't run under valgrind? (And we don't have ...
5 years, 7 months ago (2015-05-14 02:49:25 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1132783005/40001
5 years, 7 months ago (2015-05-14 02:50:01 UTC) #9
commit-bot: I haz the power
Committed patchset #1 (id:40001)
5 years, 7 months ago (2015-05-14 03:09:59 UTC) #10
commit-bot: I haz the power
Patchset 1 (id:??) landed as https://crrev.com/9fb48c09a87a6607c8a27b435d33a528d39bb526 Cr-Commit-Position: refs/heads/master@{#329790}
5 years, 7 months ago (2015-05-14 03:10:52 UTC) #11
Robert Sesek
5 years, 7 months ago (2015-05-14 14:52:18 UTC) #12
Message was sent while issue was closed.
On 2015/05/14 02:49:25, Nico wrote:
> lgtm
> 
> I guess the other test binary didn't run under valgrind? (And we don't have
msan
> on mac)

I guess not. Maybe our infrastructure is too hard to configure correctly? And
yes, no msan on Mac.

https://codereview.chromium.org/1132783005/diff/40001/base/mac/dispatch_sourc...
File base/mac/dispatch_source_mach_unittest.cc (right):

https://codereview.chromium.org/1132783005/diff/40001/base/mac/dispatch_sourc...
base/mac/dispatch_source_mach_unittest.cc:45: mach_port_t port = GetPort();
On 2015/05/14 02:49:25, Nico wrote:
> this is a noop, right?

For this test, yes. The change is not implicitly capturing the |this| pointer in
the block. I wanted to be consistent in the two tests, though.

Powered by Google App Engine
This is Rietveld 408576698