To backtrace the currently running process and thread, you can do one of the following:
bt_init_accessor(&acc, BT_SELF);
You can also use a preinitialized accessor called bt_acc_self.