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

Issue 1917603002: third_party/mesa: turn off ubsan_vptr, since it's compiled without rtti. (Closed)

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

Description

third_party/mesa: turn off ubsan_vptr, since it's compiled without rtti. This is a port of a corresponding functionality in GYP: https://code.google.com/p/chromium/codesearch#chromium/src/third_party/mesa/mesa.gyp&q=fsanitize=vptr&sq=package:chromium&type=cs&l=84 BUG=606003 Committed: https://crrev.com/6017f972ef987939b1777dc54b37a9c9aecc1b92 Cr-Commit-Position: refs/heads/master@{#390240}

Patch Set 1 #

Total comments: 1

Patch Set 2 : ubsan_vptr_flags config #

Total comments: 2

Patch Set 3 : comments #

Patch Set 4 : add missing gn include #

Patch Set 5 : implement Brett's proposal #

Patch Set 6 : . #

Total comments: 14

Patch Set 7 : address the comments #

Patch Set 8 : . #

Patch Set 9 : . #

Unified diffs Side-by-side diffs Delta from patch set Stats (+137 lines, -59 lines) Patch
M build/config/sanitizers/BUILD.gn View 1 2 3 4 5 6 7 4 chunks +118 lines, -59 lines 0 comments Download
M third_party/mesa/BUILD.gn View 1 2 3 4 4 chunks +19 lines, -0 lines 0 comments Download

Messages

Total messages: 51 (18 generated)
krasin
4 years, 8 months ago (2016-04-22 22:29:34 UTC) #2
Dirk Pranke
https://codereview.chromium.org/1917603002/diff/1/third_party/mesa/BUILD.gn File third_party/mesa/BUILD.gn (right): https://codereview.chromium.org/1917603002/diff/1/third_party/mesa/BUILD.gn#newcode133 third_party/mesa/BUILD.gn:133: cflags += [ "-fno-sanitize=vptr" ] This is dangerous, because ...
4 years, 8 months ago (2016-04-22 23:04:56 UTC) #4
krasin
On 2016/04/22 23:04:56, Dirk Pranke wrote: > https://codereview.chromium.org/1917603002/diff/1/third_party/mesa/BUILD.gn > File third_party/mesa/BUILD.gn (right): > > https://codereview.chromium.org/1917603002/diff/1/third_party/mesa/BUILD.gn#newcode133 ...
4 years, 8 months ago (2016-04-25 22:51:01 UTC) #5
Dirk Pranke
lgtm, that's the right way to do it. https://codereview.chromium.org/1917603002/diff/20001/build/config/sanitizers/BUILD.gn File build/config/sanitizers/BUILD.gn (right): https://codereview.chromium.org/1917603002/diff/20001/build/config/sanitizers/BUILD.gn#newcode72 build/config/sanitizers/BUILD.gn:72: if ...
4 years, 8 months ago (2016-04-26 01:00:33 UTC) #7
krasin
https://codereview.chromium.org/1917603002/diff/20001/build/config/sanitizers/BUILD.gn File build/config/sanitizers/BUILD.gn (right): https://codereview.chromium.org/1917603002/diff/20001/build/config/sanitizers/BUILD.gn#newcode72 build/config/sanitizers/BUILD.gn:72: if (is_ubsan_vptr) { On 2016/04/26 01:00:32, Dirk Pranke wrote: ...
4 years, 8 months ago (2016-04-26 03:15:09 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1917603002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1917603002/40001
4 years, 8 months ago (2016-04-26 03:15:39 UTC) #11
commit-bot: I haz the power
Try jobs failed on following builders: win_clang on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_clang/builds/12030)
4 years, 8 months ago (2016-04-26 03:19:51 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1917603002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1917603002/60001
4 years, 8 months ago (2016-04-26 03:23:35 UTC) #16
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/173081)
4 years, 8 months ago (2016-04-26 03:34:36 UTC) #18
krasin
4 years, 8 months ago (2016-04-26 03:49:49 UTC) #20
krasin
Antoine, please, approve this tiny BUILD change to fix GN UBSan buildbot.
4 years, 8 months ago (2016-04-26 03:51:34 UTC) #22
Ken Russell (switch to Gerrit)
lgtm
4 years, 8 months ago (2016-04-26 08:28:38 UTC) #24
piman
lgtm
4 years, 8 months ago (2016-04-26 16:17:49 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1917603002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1917603002/60001
4 years, 8 months ago (2016-04-26 17:03:25 UTC) #27
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/173346)
4 years, 8 months ago (2016-04-26 17:11:47 UTC) #29
krasin
Hi Brett, can you please LGTM the change of build/config/BUILDCONFIG.gn?
4 years, 8 months ago (2016-04-26 17:13:33 UTC) #31
krasin
Friendly ping!
4 years, 8 months ago (2016-04-26 22:19:10 UTC) #32
krasin
Hi Brett, 'UBSanVptr Linux' buildbot being very red right now: https://build.chromium.org/p/chromium.fyi/builders/UBSanVptr%20Linux/builds/41 This CL will fix ...
4 years, 7 months ago (2016-04-27 16:59:08 UTC) #33
Dirk Pranke
@krasin: I lgtm'ed this a while ago, but it still lgtm :).
4 years, 7 months ago (2016-04-27 18:03:12 UTC) #34
Ken Russell (switch to Gerrit)
On 2016/04/27 18:03:12, Dirk Pranke wrote: > @krasin: I lgtm'ed this a while ago, but ...
4 years, 7 months ago (2016-04-27 18:06:19 UTC) #35
brettw
On 2016/04/27 18:06:19, Ken Russell OOO till 5-2-2016 wrote: > On 2016/04/27 18:03:12, Dirk Pranke ...
4 years, 7 months ago (2016-04-27 18:10:19 UTC) #36
brettw
So I hate adding global flags to BUILDCONFIG since it makes everything global and non-modular. ...
4 years, 7 months ago (2016-04-27 18:21:37 UTC) #37
krasin
On 2016/04/27 18:21:37, brettw wrote: > So I hate adding global flags to BUILDCONFIG since ...
4 years, 7 months ago (2016-04-27 18:28:31 UTC) #38
brettw
On 2016/04/27 18:28:31, krasin wrote: > On 2016/04/27 18:21:37, brettw wrote: > > So I ...
4 years, 7 months ago (2016-04-27 19:35:35 UTC) #39
krasin
> > > > if (is_ubsan_vptr) { > > # UBsan's vptr is not compatible ...
4 years, 7 months ago (2016-04-27 19:42:58 UTC) #40
brettw
On 2016/04/27 19:42:58, krasin wrote: > Okay, I see. What if some code will need ...
4 years, 7 months ago (2016-04-27 20:00:05 UTC) #41
krasin
> I was thinking we'll worry about that when we get there. So far, we ...
4 years, 7 months ago (2016-04-27 20:01:36 UTC) #42
krasin
I have implemented Brett's proposal. Brett, Dirk, please take a look.
4 years, 7 months ago (2016-04-27 20:44:59 UTC) #43
brettw
LGTM, thanks. https://codereview.chromium.org/1917603002/diff/100001/build/config/sanitizers/BUILD.gn File build/config/sanitizers/BUILD.gn (right): https://codereview.chromium.org/1917603002/diff/100001/build/config/sanitizers/BUILD.gn#newcode197 build/config/sanitizers/BUILD.gn:197: defines = [] This needs a cflags ...
4 years, 7 months ago (2016-04-27 22:03:24 UTC) #44
krasin
All done. https://codereview.chromium.org/1917603002/diff/100001/build/config/sanitizers/BUILD.gn File build/config/sanitizers/BUILD.gn (right): https://codereview.chromium.org/1917603002/diff/100001/build/config/sanitizers/BUILD.gn#newcode197 build/config/sanitizers/BUILD.gn:197: defines = [] On 2016/04/27 22:03:23, brettw ...
4 years, 7 months ago (2016-04-27 22:54:38 UTC) #45
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1917603002/160001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1917603002/160001
4 years, 7 months ago (2016-04-27 22:55:12 UTC) #48
commit-bot: I haz the power
Committed patchset #9 (id:160001)
4 years, 7 months ago (2016-04-27 23:51:51 UTC) #49
commit-bot: I haz the power
4 years, 7 months ago (2016-04-30 17:14:35 UTC) #50
Message was sent while issue was closed.
Patchset 9 (id:??) landed as
https://crrev.com/6017f972ef987939b1777dc54b37a9c9aecc1b92
Cr-Commit-Position: refs/heads/master@{#390240}

Powered by Google App Engine
This is Rietveld 408576698