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

Issue 1836093004: Fix base dependency in views_examples_with_content_exe (Closed)

Created:
4 years, 8 months ago by Will Harris
Modified:
4 years, 8 months ago
Reviewers:
sadrul
CC:
chromium-reviews, tfarina
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix base dependency in views_examples_with_content_exe This was causing a link error as base/allocator was linked twice when building in static_library using VS2015 allocator shim. https://build.chromium.org/p/chromium/builders/Win/builds/41816/steps/compile/logs/stdio BUG=481611, 599223 Committed: https://crrev.com/14b98d2bde6a9cb8cd4fc770be8d182ed84eef7c Cr-Commit-Position: refs/heads/master@{#384338}

Patch Set 1 #

Patch Set 2 : content content #

Patch Set 3 : fix the fix #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+6 lines, -2 lines) Patch
M ui/views/examples/examples.gyp View 1 2 2 chunks +6 lines, -2 lines 3 comments Download

Messages

Total messages: 34 (13 generated)
Will Harris
PTAL
4 years, 8 months ago (2016-03-30 00:58:39 UTC) #3
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1836093004/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1836093004/1
4 years, 8 months ago (2016-03-30 03:18:26 UTC) #5
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: linux_chromium_chromeos_compile_dbg_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_compile_dbg_ng/builds/176990)
4 years, 8 months ago (2016-03-30 03:34:58 UTC) #7
sadrul
The build failure on linux_chromium_chromeos_compile_dbg_ng looks relevant. Mind taking a look? (also, do you need ...
4 years, 8 months ago (2016-03-30 14:39:29 UTC) #8
Will Harris
On 2016/03/30 14:39:29, sadrul wrote: > The build failure on linux_chromium_chromeos_compile_dbg_ng looks relevant. Mind > ...
4 years, 8 months ago (2016-03-30 16:24:30 UTC) #9
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1836093004/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1836093004/20001
4 years, 8 months ago (2016-03-30 18:18:27 UTC) #11
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: linux_chromium_chromeos_compile_dbg_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_compile_dbg_ng/builds/177291)
4 years, 8 months ago (2016-03-30 18:42:45 UTC) #13
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1836093004/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1836093004/40001
4 years, 8 months ago (2016-03-30 23:07:37 UTC) #17
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 8 months ago (2016-03-30 23:47:08 UTC) #19
Will Harris
looks good now, but I'll do a full testing run with the vs2015 allocator shim ...
4 years, 8 months ago (2016-03-30 23:49:17 UTC) #20
sadrul
lgtm
4 years, 8 months ago (2016-03-31 18:06:39 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1836093004/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1836093004/40001
4 years, 8 months ago (2016-03-31 18:17:22 UTC) #23
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 8 months ago (2016-03-31 18:26:21 UTC) #25
commit-bot: I haz the power
Patchset 3 (id:??) landed as https://crrev.com/14b98d2bde6a9cb8cd4fc770be8d182ed84eef7c Cr-Commit-Position: refs/heads/master@{#384338}
4 years, 8 months ago (2016-03-31 18:28:34 UTC) #27
tfarina
https://codereview.chromium.org/1836093004/diff/40001/ui/views/examples/examples.gyp File ui/views/examples/examples.gyp (right): https://codereview.chromium.org/1836093004/diff/40001/ui/views/examples/examples.gyp#newcode174 ui/views/examples/examples.gyp:174: '../../../base/base.gyp:base', Are there other places where this is being ...
4 years, 8 months ago (2016-03-31 18:46:15 UTC) #28
Will Harris
+bruce our linker expert, what do you think - see also the bug which has ...
4 years, 8 months ago (2016-03-31 19:24:44 UTC) #29
brucedawson
I'll take a look. I do hate unexplained fixes. On the other hand, it's getting ...
4 years, 8 months ago (2016-03-31 19:53:16 UTC) #30
tfarina
https://codereview.chromium.org/1836093004/diff/40001/ui/views/examples/examples.gyp File ui/views/examples/examples.gyp (right): https://codereview.chromium.org/1836093004/diff/40001/ui/views/examples/examples.gyp#newcode174 ui/views/examples/examples.gyp:174: '../../../base/base.gyp:base', On 2016/03/31 19:24:44, Will Harris wrote: > On ...
4 years, 8 months ago (2016-03-31 19:53:43 UTC) #31
Will Harris
On 2016/03/31 19:53:43, tfarina wrote: > https://codereview.chromium.org/1836093004/diff/40001/ui/views/examples/examples.gyp > File ui/views/examples/examples.gyp (right): > > https://codereview.chromium.org/1836093004/diff/40001/ui/views/examples/examples.gyp#newcode174 > ...
4 years, 8 months ago (2016-03-31 20:01:55 UTC) #32
brucedawson
I understand why this CL works to enable the allocator shim CL. A quick explanation ...
4 years, 8 months ago (2016-03-31 21:51:56 UTC) #33
Will Harris
4 years, 8 months ago (2016-04-01 01:38:34 UTC) #34
Message was sent while issue was closed.
Thanks for the detailed analysis, Bruce!

1. Since the VS2015 allocator shim is contained in one obj file that will either
be successfully linked with the target, or clash with the ucrt symbols, I feel
confident (especially given the extra runtime check calling
IsAllocatorInitialized from ContentMainRunner::Initialize) that, assuming no
link errors, the allocator shim will be present and working.

2. This, and gles2_conform_support.exe, seem to be the only two instances in the
codebase where the link order and lack of calls to allocation routines cause
this failure to happen, so it is rare.

3. The failures do not happen using GN, because of the way that GN uses
source_set and specific .obj files (which mean the shim is always in place).

Given GN is coming soon, gyp will be dead soon(!), and that the issue is well
understood and documented in this CL, my request is that we leave this fix in
place. If so, would you like me to leave a comment in the gyp file to this
effect?

WDYT?

Powered by Google App Engine
This is Rietveld 408576698