update print_stack_trace() on mac