generic print_traceback