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

Issue 1231793002: Add cfi_diag build flag. (Closed)

Created:
5 years, 5 months ago by pcc1
Modified:
5 years, 5 months ago
Reviewers:
Nico
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add cfi_diag build flag. This flag causes the CFI instrumentation to print an error message to stderr when a check fails, rather than terminating the process. BUG=457523 R=thakis@chromium.org Committed: https://crrev.com/080d985e11e8f9b0fd3c10f938404698c3b021ae Cr-Commit-Position: refs/heads/master@{#339642}

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : Change default back #

Unified diffs Side-by-side diffs Delta from patch set Stats (+40 lines, -0 lines) Patch
M build/common.gypi View 1 2 3 chunks +40 lines, -0 lines 0 comments Download

Messages

Total messages: 15 (2 generated)
pcc1
5 years, 5 months ago (2015-07-09 06:57:06 UTC) #1
Nico
The usual questions: Is this flag needed? Should we always use diag mode unconditionally? Which ...
5 years, 5 months ago (2015-07-09 22:17:32 UTC) #2
pcc1
On 2015/07/09 22:17:32, Nico wrote: > The usual questions: Is this flag needed? Should we ...
5 years, 5 months ago (2015-07-09 22:39:57 UTC) #3
Nico
On 2015/07/09 22:39:57, pcc1 wrote: > On 2015/07/09 22:17:32, Nico wrote: > > The usual ...
5 years, 5 months ago (2015-07-10 03:22:42 UTC) #4
pcc1
On 2015/07/10 03:22:42, Nico wrote: > On 2015/07/09 22:39:57, pcc1 wrote: > > On 2015/07/09 ...
5 years, 5 months ago (2015-07-10 03:37:15 UTC) #5
pcc1
On 2015/07/10 03:37:15, pcc1 wrote: > On 2015/07/10 03:22:42, Nico wrote: > > On 2015/07/09 ...
5 years, 5 months ago (2015-07-20 12:40:47 UTC) #6
Nico
Sorry, this fell out of my inbox. I'll try one last time: In official builds, ...
5 years, 5 months ago (2015-07-20 16:17:02 UTC) #7
pcc1
On 2015/07/20 16:17:02, Nico wrote: > Sorry, this fell out of my inbox. > > ...
5 years, 5 months ago (2015-07-21 11:47:00 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1231793002/40001
5 years, 5 months ago (2015-07-21 11:47:42 UTC) #11
commit-bot: I haz the power
Committed patchset #3 (id:40001)
5 years, 5 months ago (2015-07-21 13:00:45 UTC) #12
commit-bot: I haz the power
Patchset 3 (id:??) landed as https://crrev.com/080d985e11e8f9b0fd3c10f938404698c3b021ae Cr-Commit-Position: refs/heads/master@{#339642}
5 years, 5 months ago (2015-07-21 13:01:53 UTC) #13
Nico
On 2015/07/21 11:47:00, pcc1 wrote: > On 2015/07/20 16:17:02, Nico wrote: > > Sorry, this ...
5 years, 5 months ago (2015-07-21 15:02:26 UTC) #14
pcc1
5 years, 5 months ago (2015-07-22 16:11:08 UTC) #15
Message was sent while issue was closed.
On 2015/07/21 15:02:26, Nico (hiding) wrote:
> On 2015/07/21 11:47:00, pcc1 wrote:
> > On 2015/07/20 16:17:02, Nico wrote:
> > > Sorry, this fell out of my inbox.
> > > 
> > > I'll try one last time: In official builds, a CFI failure is the same as a
> > crash
> > > conceptually, right? So I'm not sure it makes sense to have a flag to
treat
> it
> > > differently. And in dev builds, I'm not sure if this is useful enough to
> make
> > it
> > > behave differently from official builds. People who know about this flag
can
> > use
> > > the debug_extra_cflags / release_extra_cflags gyp_defines to set this, and
> > > people who don't know about the flag won't find this gyp define either. So
I
> > > think I'd still prefer to not add Yet Another Build Flag for this.
> > > 
> > > If you still don't find this convincing, lgtm, I don't feel super
strongly.
> I
> > do
> > > think we have way too many flags though, and I'm not sure if adding more
> helps
> > > with that :-) (I'll point out that this adds the flag to gyp only, not gn,
> but
> > > gn tries pretty hard to have fewer build flags, so that's probably a good
> > thing)
> > 
> > I did take a look to see whether it would work for these flags to be
supplied
> > using *_extra_cflags, but it doesn't look like it will because the flags
also
> > need to be in ldflags (on non-Windows) for the right runtime libs to be
> linked.
> 
> If that's the reasoning, I'd rather we add an extra_ldflags too.

I also remembered that we need to remove some flags when diagnostic mode is
enabled (https://codereview.chromium.org/1243373003). Is there a way to remove
flags with something like *_extra_*flags?

Powered by Google App Engine
This is Rietveld 408576698