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
tree: db84d2d697fcef0e2510dd5a1d26511486294467
  1. base/
  2. build/
  3. components/
  4. dbus/
  5. device/
  6. ipc/
  7. mojo/
  8. testing/
  9. third_party/
  10. ui/