This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: Re: g++ & non-call-exceptions & sigsetjmp
- From: Eljay Love-Jensen <eljay at adobe dot com>
- To: Devrat Mittal <u02113 at cs dot unipune dot ernet dot in>, gcc-help at gcc dot gnu dot org
- Date: Wed, 24 Mar 2004 09:21:49 -0600
- Subject: Re: Re: g++ & non-call-exceptions & sigsetjmp
Hi Devrat,
Your code sort-of worked for me. Red Hat Linux Advanced Server 2.1, using
GCC 3.2.
C++ exceptions and setjmp/longjmp do not interact well. Likewise, I
suspect that C++ exceptions and sigsetjmp also do not interact well.
I recommend avoiding a throw from within the context of a signal handler.
HTH,
--Eljay