add better evaluation trace in case of stack overflow

@yilongli please review.