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

Issue 1846483002: Fix IsAllocatorInitialized() for memory tools on Linux. (Closed)

Created:
4 years, 8 months ago by Lei Zhang
Modified:
4 years, 8 months ago
CC:
chromium-reviews, wfh+watch_chromium.org, Dai Mikurube (NOT FULLTIME)
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix IsAllocatorInitialized() for memory tools on Linux. When MEMORY_TOOL_REPLACES_ALLOCATOR is defined, tcmalloc is not in use. BUG=481611 Committed: https://crrev.com/82c77818ce6beb4054c6cda916a4be7ffe8c279e Cr-Commit-Position: refs/heads/master@{#384084}

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+2 lines, -1 line) Patch
M base/allocator/allocator_check.cc View 1 chunk +2 lines, -1 line 0 comments Download

Messages

Total messages: 21 (7 generated)
Lei Zhang
4 years, 8 months ago (2016-03-30 00:58:16 UTC) #2
Will Harris
ah I was also midway through looking at that... I hadn't even got as far ...
4 years, 8 months ago (2016-03-30 01:19:19 UTC) #3
Will Harris
well I was finally able to repro, and patching your CL fixes it, so I'm ...
4 years, 8 months ago (2016-03-30 01:40:24 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1846483002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1846483002/1
4 years, 8 months ago (2016-03-30 01:40:49 UTC) #7
commit-bot: I haz the power
Try jobs failed on following builders: win8_chromium_ng on tryserver.chromium.win (JOB_TIMED_OUT, http://build.chromium.org/p/tryserver.chromium.win/builders/win8_chromium_ng/builds/124018)
4 years, 8 months ago (2016-03-30 07:48:30 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1846483002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1846483002/1
4 years, 8 months ago (2016-03-30 19:12:13 UTC) #11
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years, 8 months ago (2016-03-30 20:45:20 UTC) #13
commit-bot: I haz the power
Patchset 1 (id:??) landed as https://crrev.com/82c77818ce6beb4054c6cda916a4be7ffe8c279e Cr-Commit-Position: refs/heads/master@{#384084}
4 years, 8 months ago (2016-03-30 20:46:25 UTC) #15
Primiano Tucci (use gerrit)
I AM BACK! How can I reproduce this? GYP or GN? Which OS? Which flags? ...
4 years, 8 months ago (2016-03-31 11:32:47 UTC) #16
Lei Zhang
On 2016/03/31 11:32:47, Primiano Tucci wrote: > I AM BACK! Me too. Otherwise I wouldn't ...
4 years, 8 months ago (2016-03-31 17:45:13 UTC) #17
Will Harris
On 2016/03/31 17:45:13, Lei Zhang wrote: > On 2016/03/31 11:32:47, Primiano Tucci wrote: > > ...
4 years, 8 months ago (2016-04-03 01:30:12 UTC) #18
Primiano Tucci (use gerrit)
On 2016/04/03 01:30:12, Will Harris wrote: > On 2016/03/31 17:45:13, Lei Zhang wrote: > > ...
4 years, 8 months ago (2016-04-04 13:06:57 UTC) #19
Lei Zhang
On 2016/04/04 13:06:57, Primiano Tucci wrote: > I took a look to this, build_for_tool=memcheck does ...
4 years, 8 months ago (2016-04-04 22:47:44 UTC) #20
Primiano Tucci (use gerrit)
4 years, 8 months ago (2016-04-13 17:31:53 UTC) #21
Message was sent while issue was closed.
Closing the loop on this.

> You better file a bug then. :) As is, we have this build config with
> build_for_tool=memcheck.

Ok, as I was suspecting the problem here is that my speculation on how we use
valgrind was wrong and there is indeed one case in which we actually want to
have both tcmalloc and MEMORY_TOOL_REPLACES_ALLOCATOR at the same time. (which
is what you mentioned above)

I am still not convinced this is reasonable (the variable is saying clearly "the
memory tool replaces the allocator"), but this is undeniably the way valgrind
worked for years.
As a side note, we did shutdown the valgrind bot in chromium in
https://codereview.chromium.org/1727013002 explicitly declaring that it's too
painful to maintain, too slow. The new *san bot should give us that coverage in
a much faster way.

I think we should consistently shut down all the shadow instances, as this is
less maintained today. Also there is going to be no support for build_for_tool
in gn.
But, this is a separate discussion, beyond the scope of this CL.
At this point this CL LGTM, I was clearly just wrong. Sorry for the back and
forth.

Powered by Google App Engine
This is Rietveld 408576698