add segmentation fault error snippet