Simpler and thread-safe store-backtrace