GCC compiler issue on redhat4.5

Hi all,

I am using gcc4.1.1 on redhat4.5 and when i rethrow an exception and I am catching it .. The application aborts and throws the following error message to stdout - the error that's been thrown is been caught but never gets that far as it falls over on throw statement
Has anyone ever seen this issue before and know of a solution ...?????????

terminate called after throwing an instance of 'OIException'
what(): ORA-20005:
Below is the output of the stacktrace

0x00000080aad79f70 in .__GI_raise () from /lib64/tls/libc.so.6
#1 0x00000080aad7bac4 in .__GI_abort () from /lib64/tls/libc.so.6
#2 0x00000080ab12d5b4 in ._ZN9__gnu_cxx27__verbose_terminate_handlerEv ()
from /usr/lib64/libstdc++.so.6
#3 0x00000080ab12a00c in .__cxa_call_unexpected ()
from /usr/lib64/libstdc++.so.6
#4 0x00000080ab12a054 in ._ZSt9terminatev () from /usr/lib64/libstdc++.so.6
#5 0x00000080ab12a2e4 in .__cxa_rethrow () from /usr/lib64/libstdc++.so.6