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

Issue 1412223008: stack: Adjust Pre-M Android incorrect debuggerd addresses. (Closed)

Created:
5 years, 2 months ago by simonb (inactive)
Modified:
5 years, 1 month 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

stack: Adjust Pre-M Android incorrect debuggerd addresses. Code location addresses printed by debuggerd in pre-M Android are wrong where relocations are packed, because the libunwind on these targets does not understand non-zero min vaddrs in ELF LOAD segments. Fix by searching the APK staging directory for libraries with packed relocations, and adjusting the tombstone data on pre- processing so that code addresses printed for these libraries by debuggerd are offset by the min vaddr of the library that was included in the APK. This feature is hidden behind a new --packed-relocation-adjustments flag, and defines a new --chrome-apk-dir flag that can be used to indicate the location of the APK staging directory (defaults to ../chrome_apk/ within the chrome-symbols-dir). Uses the 'Build fingerprint' in the tombstone file to try to auto-detect whether packed relocation adjustment should be applied (that is, if the target is running pre-M Android). BUG=536847 Committed: https://crrev.com/a0773c285a4a3a1a77df987a187d83096feb635f Cr-Commit-Position: refs/heads/master@{#356858} Committed: https://crrev.com/e06a347f46fd356f013fc6abe0af33e5ced40fab Cr-Commit-Position: refs/heads/master@{#357104}

Patch Set 1 #

Patch Set 2 : Fix options ordering issue, tidy printed file paths. #

Total comments: 16

Patch Set 3 : Make load-from-apk work. #

Patch Set 4 : Update for review feedback. #

Patch Set 5 : Add an attempt to auto-sense pre-M Android targets. #

Patch Set 6 : Update for review comments #

Total comments: 1

Patch Set 7 : Review comment update. #

Total comments: 2

Patch Set 8 : Rebase to master. #

Patch Set 9 : Fix bot breakage #

Unified diffs Side-by-side diffs Delta from patch set Stats (+274 lines, -42 lines) Patch
M third_party/android_platform/README.chromium View 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/android_platform/development/scripts/stack View 1 2 3 4 5 6 7 8 8 chunks +68 lines, -5 lines 0 comments Download
M third_party/android_platform/development/scripts/stack_core.py View 1 2 3 5 chunks +77 lines, -36 lines 0 comments Download
A third_party/android_platform/development/scripts/stack_libs.py View 1 2 3 4 1 chunk +125 lines, -0 lines 0 comments Download
M third_party/android_platform/development/scripts/symbol.py View 1 2 3 4 5 6 7 1 chunk +2 lines, -1 line 0 comments Download

Messages

Total messages: 36 (13 generated)
simonb (inactive)
Another stab at a fix for the 'stack' tool to correct invalid data printed by ...
5 years, 2 months ago (2015-10-22 16:48:28 UTC) #2
rmcilroy
https://codereview.chromium.org/1412223008/diff/20001/third_party/android_platform/development/scripts/stack File third_party/android_platform/development/scripts/stack (right): https://codereview.chromium.org/1412223008/diff/20001/third_party/android_platform/development/scripts/stack#newcode135 third_party/android_platform/development/scripts/stack:135: "no-packed-relocation-adjustments", Do we really need no-packed-relocation-adjustments? The default is ...
5 years, 1 month ago (2015-10-23 16:25:10 UTC) #4
simonb (inactive)
https://codereview.chromium.org/1412223008/diff/20001/third_party/android_platform/development/scripts/stack File third_party/android_platform/development/scripts/stack (right): https://codereview.chromium.org/1412223008/diff/20001/third_party/android_platform/development/scripts/stack#newcode135 third_party/android_platform/development/scripts/stack:135: "no-packed-relocation-adjustments", On 2015/10/23 at 16:25:10, rmcilroy wrote: > Do ...
5 years, 1 month ago (2015-10-26 12:38:31 UTC) #5
rmcilroy
lgtm if comments are addressed. https://codereview.chromium.org/1412223008/diff/20001/third_party/android_platform/development/scripts/stack File third_party/android_platform/development/scripts/stack (right): https://codereview.chromium.org/1412223008/diff/20001/third_party/android_platform/development/scripts/stack#newcode135 third_party/android_platform/development/scripts/stack:135: "no-packed-relocation-adjustments", On 2015/10/26 12:38:31, ...
5 years, 1 month ago (2015-10-26 16:42:18 UTC) #6
simonb (inactive)
https://codereview.chromium.org/1412223008/diff/20001/third_party/android_platform/development/scripts/stack File third_party/android_platform/development/scripts/stack (right): https://codereview.chromium.org/1412223008/diff/20001/third_party/android_platform/development/scripts/stack#newcode135 third_party/android_platform/development/scripts/stack:135: "no-packed-relocation-adjustments", On 2015/10/26 at 16:42:17, rmcilroy wrote: > I'm ...
5 years, 1 month ago (2015-10-27 11:12:27 UTC) #8
simonb (inactive)
Ross, I added some more code since prior lgtm. Still good, or more feedback? Thanks.
5 years, 1 month ago (2015-10-28 15:46:35 UTC) #9
rmcilroy
Still lgtm, thanks https://codereview.chromium.org/1412223008/diff/100001/third_party/android_platform/development/scripts/stack File third_party/android_platform/development/scripts/stack (right): https://codereview.chromium.org/1412223008/diff/100001/third_party/android_platform/development/scripts/stack#newcode182 third_party/android_platform/development/scripts/stack:182: '..', DEFAULT_APK_DIR) You've missed this comment ...
5 years, 1 month ago (2015-10-28 17:32:33 UTC) #10
simonb (inactive)
On 2015/10/28 at 17:32:33, rmcilroy wrote: > Still lgtm, thanks > ... > > "In ...
5 years, 1 month ago (2015-10-28 18:17:25 UTC) #11
Andrew Hayden (chromium.org)
LGTM! Thanks especially for trying to keep the library logic separate and for the useful ...
5 years, 1 month ago (2015-10-29 07:44:35 UTC) #12
rmcilroy
still LGTM, thanks.
5 years, 1 month ago (2015-10-29 10:55:59 UTC) #13
simonb (inactive)
https://codereview.chromium.org/1412223008/diff/120001/third_party/android_platform/development/scripts/stack File third_party/android_platform/development/scripts/stack (right): https://codereview.chromium.org/1412223008/diff/120001/third_party/android_platform/development/scripts/stack#newcode193 third_party/android_platform/development/scripts/stack:193: print "Searching for native crashes in: " + os.path.realpath(arguments[0]) ...
5 years, 1 month ago (2015-10-29 11:47:12 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1412223008/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1412223008/120001
5 years, 1 month ago (2015-10-29 11:47:49 UTC) #16
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_compile_dbg_ng on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_compile_dbg_ng/builds/116287) mac_chromium_gn_rel on tryserver.chromium.mac (JOB_FAILED, ...
5 years, 1 month ago (2015-10-29 11:49:02 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1412223008/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1412223008/140001
5 years, 1 month ago (2015-10-29 15:48:45 UTC) #21
commit-bot: I haz the power
Committed patchset #8 (id:140001)
5 years, 1 month ago (2015-10-29 16:00:15 UTC) #22
commit-bot: I haz the power
Patchset 8 (id:??) landed as https://crrev.com/a0773c285a4a3a1a77df987a187d83096feb635f Cr-Commit-Position: refs/heads/master@{#356858}
5 years, 1 month ago (2015-10-29 16:00:54 UTC) #23
simonb (inactive)
A revert of this CL (patchset #8 id:140001) has been created in https://codereview.chromium.org/1407143010/ by simonb@chromium.org. ...
5 years, 1 month ago (2015-10-29 16:57:40 UTC) #24
wychen
I know you've reverted this, but just add this failure log FYI: http://build.chromium.org/p/chromium.linux/builders/Android%20GN/builds/31805/steps/stack_tool_with_logcat_dump/logs/stdio http://build.chromium.org/p/chromium.linux/builders/Android%20Tests/builds/23069/steps/stack_tool_with_logcat_dump/logs/stdio http://build.chromium.org/p/chromium.linux/builders/Android%20Tests%20%28dbg%29/builds/31001/steps/stack_tool_with_logcat_dump/logs/stdio
5 years, 1 month ago (2015-10-29 18:32:08 UTC) #25
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1412223008/150001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1412223008/150001
5 years, 1 month ago (2015-10-30 13:37:10 UTC) #27
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years, 1 month ago (2015-10-30 13:52:25 UTC) #32
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1412223008/150001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1412223008/150001
5 years, 1 month ago (2015-10-30 14:44:57 UTC) #34
commit-bot: I haz the power
Committed patchset #9 (id:150001)
5 years, 1 month ago (2015-10-30 14:50:10 UTC) #35
commit-bot: I haz the power
5 years, 1 month ago (2015-10-30 14:50:55 UTC) #36
Message was sent while issue was closed.
Patchset 9 (id:??) landed as
https://crrev.com/e06a347f46fd356f013fc6abe0af33e5ced40fab
Cr-Commit-Position: refs/heads/master@{#357104}

Powered by Google App Engine
This is Rietveld 408576698