[omniORB] Why isn't the exception thrown taken care of by the catch(...)

Stefan Seefeld seefeld@sympatico.ca
Wed, 28 Mar 2001 09:36:43 -0500


ERIKSSON,TOBIAS (A-Sweden,ex1) wrote:

> Hi 
>  I've had this problem a couple of times, but I don't seem to be able to
> figure out what it is.
> As I run my application it all by a sudden receives an exception (all
> according to the stack trace below), what is causing it? The stack trace
> says __throw but why doesn't my catch(...) take it? Instead it terminates.

I remember having had a similar problem a while ago. I think it was a 
bug in gcc, specifically,
gcc not being able to deal with exceptions correctly when 
-fomit-frame-pointer (something like that, anyway)
was given.

If you have that option, or just use any kind of optimization, you may 
want to recompile without it
and see whether this makes a difference. The bug I'm talking about was 
reported to the gcc mailing list...

hope this helps,    Stefan