You want to clear after SIGSEGV (that is, a serious mistake) ... I find this a bit strange because: 1) if you debugged the application, you should leave everything intact for storage in the main file so that you can determine exactly what happened, and 2) if you have a release application for the client (let's say) well ... that should not be SIGSEGV :) (not my problem, anyway, just saying ..)
In section
, SIGSEGV , , ; os . , , - - setjmp()/longjmp() ( ).
, , SEGV, (.. , SEGV ..), .