Can't catch any throw on gcc 3.0.4

Joe Hughes jhughesjr@comcast.net
Tue Feb 1 20:39:00 GMT 2005


try -fexceptions when compiling your application.


Tan-Long Phan wrote on 2/1/2005, 3:29 PM:

 > Hi
 >
 > I'm writing an application on Linux 7.3 using gcc 3.0.4 and having a
 > little
 > problem with the exception handling. It works fine with MSVC. The
 > stack was:
 >
 > Program received signal SIGABRT, Aborted.
 > 0x42029331 in kill () from /lib/i686/libc.so.6
 > (gdb) where
 > #0  0x42029331 in kill () from /lib/i686/libc.so.6
 > #1  0x4202911a in raise () from /lib/i686/libc.so.6
 > #2  0x4202a8c2 in abort () from /lib/i686/libc.so.6
 > #3  0x400a0a35 in __cxxabiv1::__terminate(void (*)()) (handler=0x4202a754
 > <abort>) at ../../../../libstdc++-v3/libsupc++/eh_terminate.cc:47
 > #4  0x400a0a70 in __cxxabiv1::__unexpected(void (*)())
 > (handler=0x400a0a70
 > <__cxxabiv1::__unexpected(void (*)())>) at
 > ../../../../libstdc++-v3/libsupc++/eh_terminate.cc:57
 > #5  0x400a0a85 in __cxxabiv1::__unexpected(void (*)())
 > (handler=0x400a0a50
 > <std::terminate()>) at
 > ../../../../libstdc++-v3/libsupc++/eh_terminate.cc:63
 > #6  0x400a092a in __cxa_call_unexpected (exc_obj=0x81b9730) at
 > ../../../../libstdc++-v3/libsupc++/eh_personality.cc:417
 > #7  0x40c28aaa in
 > com_cae::rti::FM::SlaveFederationManager::throwResponseError()
 > (this=0x8188548) at
 > 
/data/rti/cae/caeRti-1.0.23/mrti/dev/src/FM/CaeRti_SlaveFederationManager.cx 

 >
 > x:68
 >
 >
 > Do you have any idea?
 >
 > Thanks & Regards
 >
 > Long
 >




More information about the Gcc-help mailing list