
"Giovanni Piero Deretta" <gpderetta@gmail.com> wrote in message news:CAL52AavW0uSnwGf_O9HFSviATUiV=rt0TMjEbysm5Z7d6J4jCw@mail.gmail.com...
FWIW, with a recent GCC on Linux you can throw exceptions from signal handlers and they will be correctly handled (this is required to support Java and I think Ada as well). You need to compile with -fnon-call-exceptions or -fasynchronous-exceptions. These have been available for quite a while but were very buggy in C and C++ until recently.
Thanks! This is exactly what is needed! I'm curious that I hear about it only now. I'll try this tomorrow. What man g++ says about this option is pretty terse. The Intel compiler at least said, that it allows throwing exceptions from signal handler for SIGSEGV or SIGFPE. Peter