[uClibc] Problems with uclibc toolchain and c++
Bohman, Mikael
Mikael.Bohman at danahermotion.se
Wed Sep 24 15:17:38 UTC 2003
Hello,
I'm using the gcc-3.3.1 toolchain from cvs with uclibc 0.9.21 to compile c++ for a i386 target. My problem is that dynamically linked applications exits with a SIGABRT when I throw an exception. If I link statically everything works fine.
This is my test program:
#include <stdexcept>
int main(int argc, char* argv[])
{
try
{
throw std::exception();
}
catch (const std::exception &e)
{
}
return 0;
}
The stack trace looks like this:
#0 0x400b9fe8 in kill (pid=1074542516, sig=6) at syscalls.c:463
#1 0x400b4906 in raise (signo=6) at raise.c:12
#2 0x400b699d in abort () at abort.c:92
#3 0x40080a21 in uw_init_context_1 (context=0xbffffdbc, outer_cfa=0x0,
outer_ra=0x0)
at /home/mb/uclibc_cvs/toolchain/gcc-3.3.1/build_i386/gcc-3.3.1/gcc/unwind-dw2.c:1174
#4 0x40080c0f in _Unwind_RaiseException (exc=0x804e030) at unwind.inc:84
#5 0x4005320d in __cxa_throw (obj=0x804e030, tinfo=0x4006e6e4,
dest=0x4006e6e4 <globals_static>)
at /home/mb/uclibc_cvs/toolchain/gcc-3.3.1/build_i386/gcc-3.3.1/libstdc++-v3/libsupc++/eh_throw.cc:75
#6 0x08048657 in main (argc=1, argv=0xbffffed4) at test.cpp:7
Has anyone else seen this?
/Mikael
More information about the uClibc
mailing list