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

Issue 2276813002: Unwind stack past system libraries on Linux. (Closed)

Created:
4 years, 4 months ago by Dmitry Skiba
Modified:
4 years, 3 months ago
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@get-stack-end-linux
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Unwind stack past system libraries on Linux. Native heap profiler traces on Linux are sometimes incomplete because unwinder hits a function from a system library (i.e. no frame pointers), finds bad stack frame and stops. This CL implements stack scanning, so instead of stopping unwinder scans stack for a valid frame pointer and resumes unwinding. BUG=624362 Committed: https://crrev.com/678c7c2a3ee8a55c7a5c532e46abf94bf48858cd Cr-Commit-Position: refs/heads/master@{#417343}

Patch Set 1 #

Patch Set 2 : Fix comment #

Total comments: 10

Patch Set 3 : Introduce ScanStackForNextFrame #

Total comments: 5

Patch Set 4 : Address comments; bump area to 8192 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+147 lines, -62 lines) Patch
M base/debug/stack_trace.cc View 1 2 3 4 chunks +147 lines, -62 lines 0 comments Download

Messages

Total messages: 14 (4 generated)
Dmitry Skiba
PTAL
4 years, 4 months ago (2016-08-24 00:59:27 UTC) #2
Primiano Tucci (use gerrit)
Cool, I feel the new helper functions help to read better the existing code. I've ...
4 years, 3 months ago (2016-08-25 11:42:53 UTC) #3
Dmitry Skiba
https://codereview.chromium.org/2276813002/diff/20001/base/debug/stack_trace.cc File base/debug/stack_trace.cc (right): https://codereview.chromium.org/2276813002/diff/20001/base/debug/stack_trace.cc#newcode209 base/debug/stack_trace.cc:209: if (!IsStackFrameValid(next_fp, fp, stack_end)) { On 2016/08/25 11:42:53, Primiano ...
4 years, 3 months ago (2016-08-30 18:04:21 UTC) #4
Primiano Tucci (use gerrit)
LGTM with some final comments. Mind the check on the first iteration you just lost ...
4 years, 3 months ago (2016-08-31 13:48:50 UTC) #5
Nico
rs-lgtm based on primiano's review
4 years, 3 months ago (2016-08-31 14:14:32 UTC) #6
Dmitry Skiba
Note that I'm bumping scan area to 8192 - that allows to resume more traces ...
4 years, 3 months ago (2016-09-07 22:33:24 UTC) #7
Primiano Tucci (use gerrit)
PS3 still LGTM
4 years, 3 months ago (2016-09-08 16:06:39 UTC) #8
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/2276813002/60001
4 years, 3 months ago (2016-09-08 17:15:33 UTC) #11
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 3 months ago (2016-09-08 18:24:18 UTC) #12
commit-bot: I haz the power
4 years, 3 months ago (2016-09-08 18:27:04 UTC) #14
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/678c7c2a3ee8a55c7a5c532e46abf94bf48858cd
Cr-Commit-Position: refs/heads/master@{#417343}

Powered by Google App Engine
This is Rietveld 408576698