Subject: Re: [boost] structured exceptions for UNIXs -- the hard way
From: Peter Foelsche (foelsche_at_[hidden])
Date: 2011-09-22 00:06:10


"Giovanni Piero Deretta" <gpderetta_at_[hidden]> wrote in message
news:CAL52AavW0uSnwGf_O9HFSviATUiV=rt0TMjEbysm5Z7d6J4jCw_at_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