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

Issue 2203053003: Check stack pointer to be inside the stack when unwinding 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@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Check stack pointer to be inside the stack when unwinding on Linux. On Linux unwinding stack using frame pointers relies on heuristics, which sometimes fail to catch invalid stack pointers. However it's hard to get stack boundaries for all threads on Linux, see the bug. This CL checks stack pointers against real stack boundary for the main thread only, which is enough to fix recently discovered crash (crbug.com/617730#c1). BUG=617730 Committed: https://crrev.com/2ff54586e0102659c1034d58269ac376d1aacc20 Cr-Commit-Position: refs/heads/master@{#415065}

Patch Set 1 #

Total comments: 8

Patch Set 2 : Rebase; address comments #

Total comments: 2

Patch Set 3 : Address comment #

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

Messages

Total messages: 23 (12 generated)
Dmitry Skiba
4 years, 4 months ago (2016-08-02 17:15:53 UTC) #2
Primiano Tucci (use gerrit)
Code lg, I just think you don't need the extra HAVE_GET_STACK_END and you can make ...
4 years, 4 months ago (2016-08-03 09:32:04 UTC) #3
Dmitry Skiba
https://codereview.chromium.org/2203053003/diff/1/base/debug/stack_trace.cc File base/debug/stack_trace.cc (left): https://codereview.chromium.org/2203053003/diff/1/base/debug/stack_trace.cc#oldcode14 base/debug/stack_trace.cc:14: #if HAVE_TRACE_STACK_FRAME_POINTERS && defined(OS_ANDROID) On 2016/08/03 09:32:03, Primiano Tucci ...
4 years, 4 months ago (2016-08-11 16:52:38 UTC) #4
Primiano Tucci (use gerrit)
Thanks, sorry for the delay, slowly catching up with my codereview queue. LGTM. https://codereview.chromium.org/2203053003/diff/20001/base/debug/stack_trace.cc File ...
4 years, 3 months ago (2016-08-25 11:03:18 UTC) #9
Dmitry Skiba
https://codereview.chromium.org/2203053003/diff/20001/base/debug/stack_trace.cc File base/debug/stack_trace.cc (right): https://codereview.chromium.org/2203053003/diff/20001/base/debug/stack_trace.cc#newcode103 base/debug/stack_trace.cc:103: #else On 2016/08/25 11:03:18, Primiano Tucci wrote: > if ...
4 years, 3 months ago (2016-08-26 19:14:07 UTC) #10
Nico
lgtm
4 years, 3 months ago (2016-08-26 19:16:51 UTC) #11
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/2203053003/40001
4 years, 3 months ago (2016-08-26 19:21:24 UTC) #14
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_asan_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_asan_rel_ng/builds/216856)
4 years, 3 months ago (2016-08-26 21:24:03 UTC) #16
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/2203053003/40001
4 years, 3 months ago (2016-08-29 17:36:14 UTC) #20
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 3 months ago (2016-08-30 03:58:01 UTC) #21
commit-bot: I haz the power
4 years, 3 months ago (2016-08-30 03:59:59 UTC) #23
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/2ff54586e0102659c1034d58269ac376d1aacc20
Cr-Commit-Position: refs/heads/master@{#415065}

Powered by Google App Engine
This is Rietveld 408576698