g++ & non-call-exceptions & sigsetjmp

Eljay Love-Jensen eljay@adobe.com
Wed Mar 24 15:34:00 GMT 2004


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



More information about the Gcc-help mailing list