> How do I check for the "real segfault" when I have done that When it does not break any more, then there is no segmentation fault. Your program works, congrats :)