Fix test, also do not read from stack of another thread
authorTudor Bosman <tudorb@fb.com>
Thu, 12 Dec 2013 23:08:05 +0000 (15:08 -0800)
committerJordan DeLong <jdelong@fb.com>
Fri, 20 Dec 2013 21:06:15 +0000 (13:06 -0800)
commit3aed59d8e656abb09c33102f7a7caf45cf06155d
treee97443d7035d40e1cc5c8577090548ac86c485f9
parentd635918842772c47aea45dc114792071950089df
Fix test, also do not read from stack of another thread

Summary:
... even though Google's signal handler does it
(https://code.google.com/p/google-glog/source/browse/trunk/src/signalhandler.cc?r=16#235)

Assuming the existence of an invalid pthread_t is a lesser evil than reading
from another thread's stack, IMO.

Test Plan: folly/experimental/symbolizer/test

Reviewed By: simpkins@fb.com

FB internal diff: D1096620
folly/experimental/symbolizer/SignalHandler.cpp
folly/experimental/symbolizer/test/SignalHandlerTest.cpp