Check for segfault and illegal instruction when expecting an error