Error reporting with seg faults