Hi all,
I am just facing issue in handling an exception a named cxa_throw() which calls abort() and finally my code coredumps due to SIGIOT signal.
There is some problem witht the libgcc library used by gcc complier.
Verison i used is: gcc-3.3 in AIX 4.33
For this exception there are no matchnig handlers written in the libgcc library i guess.I may not be sure.
Here is the small snippet which throws this kind of exception.
int main(int argc, char **argv)
{
int x = 0;
try {
throw new int;
x = 1;
}
catch (int *) {
x = 2;
}
return x;
}
The error i see is like below
ld: 0711-317 ERROR: Undefined symbol: std::cout
ld: 0711-317 ERROR: Undefined symbol: .std::basic_ostream<char, std::char_traits<char> >& std:

perator<< <std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&, char const*)
ld: 0711-317 ERROR: Undefined symbol: .operator new(unsigned long)
ld: 0711-317 ERROR: Undefined symbol: .__cxa_allocate_exception
ld: 0711-317 ERROR: Undefined symbol: typeinfo for char*
ld: 0711-317 ERROR: Undefined symbol: .__cxa_throw
ld: 0711-317 ERROR: Undefined symbol: .__cxa_begin_catch
ld: 0711-317 ERROR: Undefined symbol: .__cxa_end_catch
ld: 0711-317 ERROR: Undefined symbol: .std::ios_base::Init::Init[in-charge]()
ld: 0711-317 ERROR: Undefined symbol: .std::ios_base::Init::~Init [in-charge]()
ld: 0711-317 ERROR: Undefined symbol: __gxx_personality_v0
ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more information.
collect2: ld returned 8 exit status
Is there any to resolve this issue ?
Or else i need to handle the SIGIOT signal in the code.
Plz give ur suggestions
Mani