1) fix race condition between exit and rte_result
2) fix a bug for list handling in line number extraction logic
3) escape chars