associate shared_ptr instance with each backtrace