[uClibc] Problems with uclibc toolchain and c++

Paul van Gool paul.vangool at rinconnetworks.com
Wed Sep 24 16:01:01 UTC 2003


Yes. I've seen the same with a uClibc 0.9.20 and gcc 3.2.3 toolchain for
the i386 target. I reported it about two months ago. No resolution yet.
The same testprog works fine for the SH target btw.

Thanks.

Paul

On Wed, Sep 24, 2003 at 05:17:38PM +0200, Bohman, Mikael wrote:
> 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
> _______________________________________________
> uClibc mailing list
> uClibc at uclibc.org
> http://uclibc.org/mailman/listinfo/uclibc

-- 
Paul van Gool                                               Rincon Networks
paul.vangool at rinconnetworks.com                              (805)-705-1442



More information about the uClibc mailing list