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

Issue 2266073002: Explicitly ask for stack frame pointers on Debug posix builds. (Closed)

Created:
4 years, 4 months ago by vmiura
Modified:
4 years, 3 months ago
CC:
chromium-reviews, Ken Russell (switch to Gerrit)
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Explicitly ask for stack frame pointers on Debug posix builds. GCC / LLVM can omit stack frames at any optimization level. We use -Os for Android Debug, and -O3 for targets like v8. This can cause the runtime stack unwinding debug feature of 'tcmalloc' to mis-unwind and crash. This CL adds "-fno-omit-frame-pointer" by default to Debug builds, as well as fixing consistency for the setting in profiling and stanitizer builds. The -f*omit-frame-pointer flag settings are moved to config("default_stack_frames"), to enable build targets to disable and override the default settings. R=brettw@chromium.org R=dpranke@chromium.org BUG=636489 Committed: https://crrev.com/ecdecf5e9fec3c61496f3cedd78c0ba146eb5b91 Cr-Commit-Position: refs/heads/master@{#415102}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Move stack frame flag to it's own config. #

Total comments: 4

Patch Set 3 : Keep -fomit-frame-pointer for non-debug Android builds. #

Total comments: 4

Patch Set 4 : Rebased after staging changes to ffmpeg. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+12 lines, -17 lines) Patch
M build/config/compiler/BUILD.gn View 1 2 3 4 chunks +12 lines, -17 lines 0 comments Download

Messages

Total messages: 44 (18 generated)
vmiura
ptal
4 years, 4 months ago (2016-08-22 18:43:49 UTC) #2
Dirk Pranke
https://codereview.chromium.org/2266073002/diff/1/build/config/compiler/BUILD.gn File build/config/compiler/BUILD.gn (right): https://codereview.chromium.org/2266073002/diff/1/build/config/compiler/BUILD.gn#newcode238 build/config/compiler/BUILD.gn:238: # crashes when unwinding stack frames (crbug.com/636489). Do we ...
4 years, 4 months ago (2016-08-22 20:03:48 UTC) #5
vmiura
https://codereview.chromium.org/2266073002/diff/1/build/config/compiler/BUILD.gn File build/config/compiler/BUILD.gn (right): https://codereview.chromium.org/2266073002/diff/1/build/config/compiler/BUILD.gn#newcode238 build/config/compiler/BUILD.gn:238: # crashes when unwinding stack frames (crbug.com/636489). On 2016/08/22 ...
4 years, 4 months ago (2016-08-22 20:32:04 UTC) #8
Dirk Pranke
Seems fine. lgtm.
4 years, 4 months ago (2016-08-22 20:38:26 UTC) #9
Ken Russell (switch to Gerrit)
Thanks Victor for tracking this down. Do you think the build failures are related? Maybe ...
4 years, 4 months ago (2016-08-22 21:04:20 UTC) #11
vmiura
On 2016/08/22 21:04:20, Ken Russell wrote: > Thanks Victor for tracking this down. Do you ...
4 years, 4 months ago (2016-08-22 21:32:14 UTC) #12
vmiura
All I can tell so far is that some objects including parts of v8 take ...
4 years, 4 months ago (2016-08-22 22:51:04 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2266073002/1
4 years, 4 months ago (2016-08-22 22:52:07 UTC) #15
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years, 4 months ago (2016-08-23 01:58:47 UTC) #17
commit-bot: I haz the power
Patchset 1 (id:??) landed as https://crrev.com/4e69ee6824fc94c59762b5f05f9f340fb4466d7f Cr-Commit-Position: refs/heads/master@{#413628}
4 years, 4 months ago (2016-08-23 02:02:27 UTC) #19
johnme
A revert of this CL (patchset #1 id:1) has been created in https://codereview.chromium.org/2269063002/ by johnme@chromium.org. ...
4 years, 4 months ago (2016-08-23 13:38:43 UTC) #20
vmiura
PTAL. Does adding a 'default_stack_frames' config which ffmpeg can remove look like the right direction? ...
4 years, 4 months ago (2016-08-23 21:53:34 UTC) #21
brettw
https://codereview.chromium.org/2266073002/diff/20001/build/config/compiler/BUILD.gn File build/config/compiler/BUILD.gn (left): https://codereview.chromium.org/2266073002/diff/20001/build/config/compiler/BUILD.gn#oldcode1245 build/config/compiler/BUILD.gn:1245: common_optimize_on_cflags += [ "-fomit-frame-pointer" ] This was lost. It's ...
4 years, 4 months ago (2016-08-23 22:26:43 UTC) #22
vmiura
https://codereview.chromium.org/2266073002/diff/20001/build/config/compiler/BUILD.gn File build/config/compiler/BUILD.gn (left): https://codereview.chromium.org/2266073002/diff/20001/build/config/compiler/BUILD.gn#oldcode1245 build/config/compiler/BUILD.gn:1245: common_optimize_on_cflags += [ "-fomit-frame-pointer" ] On 2016/08/23 22:26:43, brettw ...
4 years, 4 months ago (2016-08-23 23:16:18 UTC) #23
vmiura
Generally this pattern of having a default config that is removed by the sub target ...
4 years, 4 months ago (2016-08-24 00:14:45 UTC) #24
vmiura
Dropping explicit -fomit-frame-pointer from optimized Android builds increased APK size by 275KB. Added it back, ...
4 years, 4 months ago (2016-08-24 01:06:50 UTC) #25
Dirk Pranke
On 2016/08/24 01:06:50, vmiura OOO back 8-15 wrote: > Dropping explicit -fomit-frame-pointer from optimized Android ...
4 years, 4 months ago (2016-08-24 18:21:13 UTC) #27
brettw
https://codereview.chromium.org/2266073002/diff/40001/build/config/compiler/BUILD.gn File build/config/compiler/BUILD.gn (right): https://codereview.chromium.org/2266073002/diff/40001/build/config/compiler/BUILD.gn#newcode1293 build/config/compiler/BUILD.gn:1293: if (using_sanitizer || enable_profiling || is_debug || This is ...
4 years, 4 months ago (2016-08-24 18:27:02 UTC) #28
vmiura
On 2016/08/24 18:21:13, Dirk Pranke wrote: > On 2016/08/24 01:06:50, vmiura OOO back 8-15 wrote: ...
4 years, 4 months ago (2016-08-24 18:47:15 UTC) #29
vmiura
https://codereview.chromium.org/2266073002/diff/40001/build/config/compiler/BUILD.gn File build/config/compiler/BUILD.gn (right): https://codereview.chromium.org/2266073002/diff/40001/build/config/compiler/BUILD.gn#newcode1293 build/config/compiler/BUILD.gn:1293: if (using_sanitizer || enable_profiling || is_debug || On 2016/08/24 ...
4 years, 4 months ago (2016-08-24 18:47:26 UTC) #30
brettw
https://codereview.chromium.org/2266073002/diff/40001/build/config/compiler/BUILD.gn File build/config/compiler/BUILD.gn (right): https://codereview.chromium.org/2266073002/diff/40001/build/config/compiler/BUILD.gn#newcode1301 build/config/compiler/BUILD.gn:1301: cflags = [ "-fomit-frame-pointer" ] I mean this line. ...
4 years, 4 months ago (2016-08-24 19:30:03 UTC) #31
vmiura
https://codereview.chromium.org/2266073002/diff/40001/build/config/compiler/BUILD.gn File build/config/compiler/BUILD.gn (right): https://codereview.chromium.org/2266073002/diff/40001/build/config/compiler/BUILD.gn#newcode1301 build/config/compiler/BUILD.gn:1301: cflags = [ "-fomit-frame-pointer" ] On 2016/08/24 19:30:02, brettw ...
4 years, 4 months ago (2016-08-24 19:40:16 UTC) #32
brettw
I see, I misunderstood. LGTM
4 years, 4 months ago (2016-08-24 21:17:22 UTC) #33
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2266073002/60001
4 years, 3 months ago (2016-08-29 23:19:11 UTC) #40
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 3 months ago (2016-08-30 04:36:50 UTC) #42
commit-bot: I haz the power
4 years, 3 months ago (2016-08-30 04:39:17 UTC) #44
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/ecdecf5e9fec3c61496f3cedd78c0ba146eb5b91
Cr-Commit-Position: refs/heads/master@{#415102}

Powered by Google App Engine
This is Rietveld 408576698