Use fixed size stack traces; unify getStackTrace
authorTudor Bosman <tudorb@fb.com>
Fri, 6 Dec 2013 01:22:01 +0000 (17:22 -0800)
committerJordan DeLong <jdelong@fb.com>
Fri, 20 Dec 2013 21:05:06 +0000 (13:05 -0800)
commit3680f888411a4eea23aae712149932f4bb37d349
tree81e6a0ecb0c5f276a64155349c29fa27deee1341
parent3d0c8f284dd1ce098db0fffb3b72c9396b6b50d2
Use fixed size stack traces; unify getStackTrace

Summary:
Also, switch to the simpler unw_backtrace(), which has the nice advantage of
actually doing IP adjustment (-1 in certain frames) correctly, unlike me :)

This is in preparation for the faster backtrace in libunwind 1.1.

Test Plan: folly/experimental/exception_tracer, folly/experimental/symbolizer, admarket/lib/util:memory_tracker_test

Reviewed By: lucian@fb.com

FB internal diff: D1088357
folly/experimental/exception_tracer/ExceptionTracer.cpp
folly/experimental/exception_tracer/ExceptionTracerLib.cpp
folly/experimental/exception_tracer/StackTrace.cpp [new file with mode: 0644]
folly/experimental/exception_tracer/StackTrace.h
folly/experimental/symbolizer/SignalHandler.cpp
folly/experimental/symbolizer/SignalHandler.h
folly/experimental/symbolizer/StackTrace.cpp [new file with mode: 0644]
folly/experimental/symbolizer/StackTrace.h [new file with mode: 0644]
folly/experimental/symbolizer/Symbolizer.cpp
folly/experimental/symbolizer/Symbolizer.h
folly/experimental/symbolizer/test/SymbolizerTest.cpp