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

Issue 16770006: Implement basic stack traces on Android and reenable unit tests. (Closed)

Created:
7 years, 6 months ago by scherkus (not reviewing)
Modified:
7 years, 5 months ago
CC:
chromium-reviews, erikwright+watch_chromium.org, michaelbai
Visibility:
Public.

Description

Implement basic stack traces on Android and reenable unit tests. Since we install stripped binaries in APKs, print out object file names and relocatable addresses that can be used on the host machine to complete symbolizing and demangling the stack trace using unstripped binaries. In addition the implementation of StackTrace::PrintBacktrace() was changed to log the stack trace instead of sending SIGSTKFLT. BUG=248775, 248784 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=210132

Patch Set 1 #

Total comments: 9

Patch Set 2 : refactor symbolize #

Total comments: 15

Patch Set 3 : fixes #

Total comments: 10

Patch Set 4 : fixes #

Patch Set 5 : use proc maps #

Patch Set 6 : rebase #

Patch Set 7 : #

Total comments: 11

Patch Set 8 : fixes #

Total comments: 2

Patch Set 9 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+46 lines, -43 lines) Patch
M base/base.gyp View 1 2 3 4 5 4 chunks +1 line, -9 lines 0 comments Download
M base/debug/stack_trace_android.cc View 1 2 3 4 5 6 7 2 chunks +44 lines, -31 lines 0 comments Download
M base/logging.cc View 1 2 3 4 1 chunk +1 line, -3 lines 0 comments Download

Messages

Total messages: 25 (0 generated)
scherkus (not reviewing)
this is my take on getting basic stack traces on Android that we can feed ...
7 years, 6 months ago (2013-06-12 00:43:43 UTC) #1
satorux1
https://codereview.chromium.org/16770006/diff/1/base/debug/stack_trace_android.cc File base/debug/stack_trace_android.cc (right): https://codereview.chromium.org/16770006/diff/1/base/debug/stack_trace_android.cc#newcode101 base/debug/stack_trace_android.cc:101: void StackTrace::PrintBacktrace() const { PrintBacktrace() and OutputToStream() will behave ...
7 years, 6 months ago (2013-06-12 05:43:42 UTC) #2
scherkus (not reviewing)
PTAL https://codereview.chromium.org/16770006/diff/1/base/debug/stack_trace_android.cc File base/debug/stack_trace_android.cc (right): https://codereview.chromium.org/16770006/diff/1/base/debug/stack_trace_android.cc#newcode101 base/debug/stack_trace_android.cc:101: void StackTrace::PrintBacktrace() const { On 2013/06/12 05:43:42, satorux1 ...
7 years, 6 months ago (2013-06-13 01:27:44 UTC) #3
satorux1
https://codereview.chromium.org/16770006/diff/8001/base/debug/stack_trace_android.cc File base/debug/stack_trace_android.cc (right): https://codereview.chromium.org/16770006/diff/8001/base/debug/stack_trace_android.cc#newcode132 base/debug/stack_trace_android.cc:132: uint64 start_address; Please move them to where these are ...
7 years, 6 months ago (2013-06-13 01:58:10 UTC) #4
scherkus (not reviewing)
thanks for the quick review! https://codereview.chromium.org/16770006/diff/8001/base/debug/stack_trace_android.cc File base/debug/stack_trace_android.cc (right): https://codereview.chromium.org/16770006/diff/8001/base/debug/stack_trace_android.cc#newcode132 base/debug/stack_trace_android.cc:132: uint64 start_address; On 2013/06/13 ...
7 years, 6 months ago (2013-06-13 02:20:46 UTC) #5
satorux1
LGTM, but you need LGTM from base/OWNERS. willchan@ may be interested in this stuff. https://codereview.chromium.org/16770006/diff/8001/base/debug/stack_trace_android.cc ...
7 years, 6 months ago (2013-06-13 03:34:25 UTC) #6
digit
https://codereview.chromium.org/16770006/diff/15001/base/debug/stack_trace_android.cc File base/debug/stack_trace_android.cc (right): https://codereview.chromium.org/16770006/diff/15001/base/debug/stack_trace_android.cc#newcode102 base/debug/stack_trace_android.cc:102: // stderr. Instead it crashes the program http://crbug.com/248775 Small ...
7 years, 6 months ago (2013-06-13 08:17:24 UTC) #7
scherkus (not reviewing)
+willchan for base/ OWNERS + peanut gallery comments If you're curious what the output looks ...
7 years, 6 months ago (2013-06-13 17:35:05 UTC) #8
satorux1
https://codereview.chromium.org/16770006/diff/15001/base/debug/stack_trace_android.cc File base/debug/stack_trace_android.cc (right): https://codereview.chromium.org/16770006/diff/15001/base/debug/stack_trace_android.cc#newcode140 base/debug/stack_trace_android.cc:140: *os << base::StringPrintf("pc %08x %s", rel_pc, path); On 2013/06/13 ...
7 years, 6 months ago (2013-06-14 01:45:41 UTC) #9
willchan no longer on Chromium
Sorry, I was in a conference today and will be busy there tomorrow too. I ...
7 years, 6 months ago (2013-06-14 05:32:08 UTC) #10
scherkus (not reviewing)
brettw: OWNERS for base/ and peanut gallery commentsas willchan is OOO
7 years, 6 months ago (2013-06-14 19:44:55 UTC) #11
digit1
lgtm for final version. Thanks for fixing the issues. Not an owner though :)
7 years, 6 months ago (2013-06-17 08:29:57 UTC) #12
scherkus (not reviewing)
pinging brettw@ for base/ OWNERS
7 years, 6 months ago (2013-06-17 22:22:40 UTC) #13
brettw
base/third_party/symbolize/README.chromium is now out-of-date since it says the files were copied verbatim. Can we be ...
7 years, 6 months ago (2013-06-17 22:29:49 UTC) #14
scherkus (not reviewing)
On 2013/06/17 22:29:49, brettw wrote: > base/third_party/symbolize/README.chromium is now out-of-date since it says the > ...
7 years, 6 months ago (2013-06-17 23:51:57 UTC) #15
scherkus (not reviewing)
satorux, brettw: PTAL after a few offline convos, I decided against hacking up symbolize in ...
7 years, 5 months ago (2013-07-01 22:43:43 UTC) #16
Mark Mentovai
not LGTM (to avoid accidental commit—this change is obsolete in favor of https://codereview.chromium.org/18178015/, right?)
7 years, 5 months ago (2013-07-02 18:48:48 UTC) #17
scherkus (not reviewing)
On 2013/07/02 18:48:48, Mark Mentovai wrote: > not LGTM > > (to avoid accidental commit—this ...
7 years, 5 months ago (2013-07-02 19:25:03 UTC) #18
Mark Mentovai
OK, will re-review once that lands, since you’ll need an OWNER anyway.
7 years, 5 months ago (2013-07-02 19:37:28 UTC) #19
scherkus (not reviewing)
alrighty ... rebased on top of http://crrev.com/209855 mark: PTAL
7 years, 5 months ago (2013-07-03 02:09:17 UTC) #20
Mark Mentovai
https://codereview.chromium.org/16770006/diff/51001/base/debug/stack_trace_android.cc File base/debug/stack_trace_android.cc (right): https://codereview.chromium.org/16770006/diff/51001/base/debug/stack_trace_android.cc#newcode112 base/debug/stack_trace_android.cc:112: // Subtract by one as return address of function ...
7 years, 5 months ago (2013-07-03 14:03:29 UTC) #21
scherkus (not reviewing)
PTAL https://codereview.chromium.org/16770006/diff/51001/base/debug/stack_trace_android.cc File base/debug/stack_trace_android.cc (right): https://codereview.chromium.org/16770006/diff/51001/base/debug/stack_trace_android.cc#newcode112 base/debug/stack_trace_android.cc:112: // Subtract by one as return address of ...
7 years, 5 months ago (2013-07-03 19:43:00 UTC) #22
Mark Mentovai
LGTM and have a nice long weekend! https://codereview.chromium.org/16770006/diff/51001/base/debug/stack_trace_android.cc File base/debug/stack_trace_android.cc (right): https://codereview.chromium.org/16770006/diff/51001/base/debug/stack_trace_android.cc#newcode119 base/debug/stack_trace_android.cc:119: (iter->permissions & ...
7 years, 5 months ago (2013-07-04 01:25:48 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/scherkus@chromium.org/16770006/63001
7 years, 5 months ago (2013-07-04 01:40:51 UTC) #24
commit-bot: I haz the power
7 years, 5 months ago (2013-07-04 06:04:47 UTC) #25
Message was sent while issue was closed.
Change committed as 210132

Powered by Google App Engine
This is Rietveld 408576698