Can't catch any throw on gcc 3.0.4

Tan-Long Phan longp@cae.com
Wed Feb 2 13:52:00 GMT 2005


Hi Lyle

Yes, I'm linking my stuff with g++ and the exceptions are thrown across
library boundaries. My main application was linked with different dynamic
libraries and static libraries, the try and catch are done in the static
library and the exceptions are thrown from the dynamic library.

Thanks & Regards

Long 

-----Original Message-----
From: lrtaylor@micron.com [mailto:lrtaylor@micron.com]
Sent: Tuesday, February 01, 2005 5:55 PM
To: longp@cae.com; gcc-help@gcc.gnu.org
Subject: RE: Can't catch any throw on gcc 3.0.4


Are you linking your application using g++ or gcc?  You should be using
g++.  Also, are you throwing the exception across library boundaries, or
is it all in the same executable or library?

Thanks,
Lyle


-----Original Message-----
From: gcc-help-owner@gcc.gnu.org [mailto:gcc-help-owner@gcc.gnu.org] On
Behalf Of Tan-Long Phan
Sent: Tuesday, February 01, 2005 1:30 PM
To: gcc-help@gcc.gnu.org
Subject: Can't catch any throw on gcc 3.0.4

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_SlaveFederationManage
r.cx
x:68


Do you have any idea?

Thanks & Regards

Long



More information about the Gcc-help mailing list