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
Review-Url: https://codereview.chromium.org/2203053003
Cr-Commit-Position: refs/heads/master@{#415065}
CrOS-Libchrome-Original-Commit: 2ff54586e0102659c1034d58269ac376d1aacc20
1 file changed