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

Issue 139723002: Update base/tools_sanity_unittest.cc to cover MSan. (Closed)

Created:
6 years, 11 months ago by earthdok
Modified:
6 years, 11 months ago
Reviewers:
Nico
CC:
chromium-reviews, erikwright+watch_chromium.org
Visibility:
Public.

Description

Update base/tools_sanity_unittest.cc to cover MSan. BUG=178409 R=thakis@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=245142

Patch Set 1 #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+12 lines, -3 lines) Patch
M base/tools_sanity_unittest.cc View 1 chunk +12 lines, -3 lines 1 comment Download

Messages

Total messages: 17 (0 generated)
earthdok
ptal
6 years, 11 months ago (2014-01-15 17:35:27 UTC) #1
Nico
Does it make sense to run these tests under msan at all? https://codereview.chromium.org/139723002/diff/1/base/tools_sanity_unittest.cc File base/tools_sanity_unittest.cc ...
6 years, 11 months ago (2014-01-15 17:46:17 UTC) #2
eugenis
On Jan 15, 2014 9:46 PM, <thakis@chromium.org> wrote: > > Does it make sense to ...
6 years, 11 months ago (2014-01-15 17:49:52 UTC) #3
earthdok
On 2014/01/15 17:46:17, Nico wrote: > Does it make sense to run these tests under ...
6 years, 11 months ago (2014-01-15 18:04:07 UTC) #4
Nico
lgtm On 2014/01/15 18:04:07, earthdok wrote: > On 2014/01/15 17:46:17, Nico wrote: > > Does ...
6 years, 11 months ago (2014-01-15 18:05:55 UTC) #5
eugenis
I think *ptr++ is here to stop clang from optimizing the branch away. MSan is ...
6 years, 11 months ago (2014-01-15 18:09:22 UTC) #6
eugenis
This needs a closer look, but I see an obvious way of flattening this code ...
6 years, 11 months ago (2014-01-15 18:11:47 UTC) #7
earthdok
Yeah, I spoke too soon. The branch most likely gets optimized away. I'll look into ...
6 years, 11 months ago (2014-01-15 18:24:27 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/earthdok@chromium.org/139723002/1
6 years, 11 months ago (2014-01-15 18:51:04 UTC) #9
Nico
On 2014/01/15 18:51:04, I haz the power (commit-bot) wrote: > CQ is trying da patch. ...
6 years, 11 months ago (2014-01-15 19:03:05 UTC) #10
earthdok
On 2014/01/15 19:03:05, Nico wrote: > On 2014/01/15 18:51:04, I haz the power (commit-bot) wrote: ...
6 years, 11 months ago (2014-01-15 19:27:49 UTC) #11
Nico
On Wed, Jan 15, 2014 at 11:27 AM, <earthdok@chromium.org> wrote: > On 2014/01/15 19:03:05, Nico ...
6 years, 11 months ago (2014-01-15 19:30:46 UTC) #12
earthdok
On 2014/01/15 19:30:46, Nico wrote: > On Wed, Jan 15, 2014 at 11:27 AM, <mailto:earthdok@chromium.org> ...
6 years, 11 months ago (2014-01-15 22:19:04 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/earthdok@chromium.org/139723002/1
6 years, 11 months ago (2014-01-15 22:26:06 UTC) #14
commit-bot: I haz the power
Change committed as 245142
6 years, 11 months ago (2014-01-16 05:31:45 UTC) #15
eugenis
LLVM IR for this function uses "select %cmp, 1, -1" and then adds this value ...
6 years, 11 months ago (2014-01-16 13:11:33 UTC) #16
Nico
6 years, 11 months ago (2014-01-16 19:38:01 UTC) #17
On Thu, Jan 16, 2014 at 5:11 AM, <eugenis@chromium.org> wrote:

> LLVM IR for this function uses "select %cmp, 1, -1" and then adds this
> value to
> (*ptr). MSan propagates shadow for "select" instruction, keeping (*ptr)
> uninitialized but not printing any report just yet.
> X86 assembly for this function contains a branch, so Valgrind is unable to
> propagate and has to report an error.
>

I think valgrind maybe also doesn't report unitialized values in the flag
register / cmov – at least I think I saw that once or twice (?)


>
>
> https://codereview.chromium.org/139723002/
>

To unsubscribe from this group and stop receiving emails from it, send an email
to chromium-reviews+unsubscribe@chromium.org.

Powered by Google App Engine
This is Rietveld 408576698