I'm new to programming in C++ on Linux so i run into a strange problem. I was trying to catch segmentation fault but i couldnt. Though i placed try..catch block around the code that tries to write some value to the begining of RAM my program successfully crashed and i only saw "SegmentationFault" as its output. So my question is how to catch segmentation faults in C++ on Linux. Any help appreciated.