8 Mar 2007 11:33
problem in try..throw..catch related C++ test scenarios on MIPS arch with Netbsd 3.0
Nida M <nidajm <at> gmail.com>
2007-03-08 10:33:41 GMT
2007-03-08 10:33:41 GMT
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
(Continue reading)
Suppose you have:
/usr/lib/libstdc++.so.5.0
$HOME/lib/libstdc++.so.5.1
$HOME/bin/myapp
Then:
$ LD_LIBRARY_PATH=$HOME/lib:$LD_LIBRARY_PATH $HOME/bin/myapp
Should load the newer version.
Cheers,
Jared
RSS Feed