Can't catch any throw on gcc 3.0.4

Tan-Long Phan
Tue Feb 1 20:31:00 GMT 2005


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/
(gdb) where
#0  0x42029331 in kill () from /lib/i686/
#1  0x4202911a in raise () from /lib/i686/
#2  0x4202a8c2 in abort () from /lib/i686/
#3  0x400a0a35 in __cxxabiv1::__terminate(void (*)()) (handler=0x4202a754
<abort>) at ../../../../libstdc++-v3/libsupc++/
#4  0x400a0a70 in __cxxabiv1::__unexpected(void (*)()) (handler=0x400a0a70
<__cxxabiv1::__unexpected(void (*)())>) at
#5  0x400a0a85 in __cxxabiv1::__unexpected(void (*)()) (handler=0x400a0a50
<std::terminate()>) at ../../../../libstdc++-v3/libsupc++/
#6  0x400a092a in __cxa_call_unexpected (exc_obj=0x81b9730) at
#7  0x40c28aaa in
(this=0x8188548) at

Do you have any idea?

Thanks & Regards


More information about the Gcc-help mailing list