Subject: problem in try..throw..catch related C++ test scenarios on MIPS arch with Netbsd 3.0
To: None <port-mips@netbsd.org>
From: Nida M <nidajm@gmail.com>
List: port-mips
Date: 03/08/2007 16:03:41
Hi, All
I am trying to execute c++ testcase, which is using
{try..throw..catch} exception mechanism in MIPS arch. but when
exception has been thrown, it has not been caught by {catch} block and
giving Abort .(SIGABRT)
I need help to debug this problem.
I think problem is with respect to (netbsd 3.0/rtld) dynamic linker,
becose with statically link binary below program (test.cc) is working
fine, but with shared link binary it is giving SIGABRT.
Any problem in {try..throw..catch} related scenarios on MIPS arch with
Netbsd 3.0 ??
test.cc
============
#include <cstdlib>
#include <exception>
#include <stdio.h>
static void
no_uncaught ()
{
if (std::uncaught_exception ())
abort ();
}
int
main ()
{
try
{
throw 1;
}
catch (...)
{
try
{
throw;
}
catch (...)
{
no_uncaught ();
}
}
no_uncaught ();
}
Thnaks & regards
- nidajm