Exceptions thrown across c stack frames

Mike Stump mrs@wrs.com
Tue Apr 21 15:00:00 GMT 1998


> Date: Tue, 21 Apr 1998 15:08:37 -0400
> From: bak@kodak.com (Bruce A Kern)
> To: egcs-bugs@cygnus.com

> It has been found that exceptions thrown from below a c generated
> stackframe will not be caught by handlers above the c frame..

> Since the X libraries come precompiled on our system, this bug
> makes if very difficult to handle exceptions generated within
> callbacks gracefully.

You can either recompile X with gcc -fexceptions, fixing any
unimplemented problems in the process, or catch all exceptions in the
callback routine, or use -fsjlj-exceptions, the choice is yours.



More information about the Gcc-bugs mailing list