exception handling on Linux RedHat 6 not caugth

Martin v. Loewis martin@loewis.home.cs.tu-berlin.de
Fri Feb 4 16:49:00 GMT 2000


> How do I initialize exception handlinhg?
> and how do I make exception handling to work in this situation?
> 
> It is a bug  ?

Thanks for your bug report. Yes, this is a bug, but not in g++ - it is
a bug in your code. The 'exception' you get is not a C++ exception,
but a segmentation violation generated by the operating system. This
has nothing to do with exception handling.

Exception handling is activated in g++ by default, -frtti does not
change anything here; you don't need to activate anything further.

If you really want to gracefully handle code as you do, please have a
look at signal(2).

Regards,
Martin



More information about the Gcc-bugs mailing list