How to catch segmentation fault in Linux?

Posted by Alex Farber on Stack Overflow See other posts from Stack Overflow or by Alex Farber
Published on 2010-02-28T08:11:50Z Indexed on 2010/03/12 22:47 UTC
Read the original article Hit count: 564

Filed under:
|

I need to catch segmentation fault in third party library cleanup operations. This happens sometimes just before my program exits, and I cannot fix the real reason of this. In Windows programming I could do this with __try - __catch. Is there cross-platform or platform-specific way to do the same? I need this in Linux, gcc.

© Stack Overflow or respective owner

Related posts about segmentation-fault

Related posts about catch