extract traceback stack