Fix segmentation fault when dive into runtime errored functioncall