• Tudor Bosman's avatar
    unw_backtrace is not async-signal-safe · 1ceb5edc
    Tudor Bosman authored
    Summary:
    Even though it should be according to the docs; tdep_trace allocates memory on
    first use from each thread.
    
    Wrote a slow loop that we can use from the signal handler. The exception tracer
    still uses the fast version.
    
    Test Plan: fbconfig -r folly/experimental/symbolizer folly/experimental/exception_tracer && fbmake runtests_opt
    
    Reviewed By: philipp@fb.com
    
    FB internal diff: D1101095
    1ceb5edc
SignalHandler.cpp 6.99 KB