public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/62231] New: Exception handling broken on powerpc-e500v2-linux-gnuspe
@ 2014-08-22 13:31 manfred.rudigier at omicron dot at
  2014-11-27  5:16 ` [Bug target/62231] " asolokha at gmx dot com
                   ` (17 more replies)
  0 siblings, 18 replies; 19+ messages in thread
From: manfred.rudigier at omicron dot at @ 2014-08-22 13:31 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=62231

            Bug ID: 62231
           Summary: Exception handling broken on
                    powerpc-e500v2-linux-gnuspe
           Product: gcc
           Version: 4.8.3
            Status: UNCONFIRMED
          Severity: critical
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: manfred.rudigier at omicron dot at

Problem:
--------

The GCC exception handling mechanism for powerpc-e500v2-linux-gnuspe seems to
be broken. Every programs abort as soon as the first exception is thrown. I can
confirm that the exception handling works on at least 4.6.3 and 4.7.4, however
on 4.8.3 it does not.

Example program to reproduce the problem:
-----------------------------------------

#include <exception>
#include <stdio.h>

void doThrow()
{
    printf("Throwing now\n");
    throw std::exception();
}

int main(int argc, char **argv)
{
    try {
        doThrow();
    } catch (std::exception& e) {
        printf("Caught exception\n");
    }
    return 0;
}


GDB output:
-----------

Program received signal SIGABRT, Aborted.
0x0fc0c858 in raise () from /lib/libc.so.6
(gdb) bt
#0  0x0fc0c858 in raise () from /lib/libc.so.6
#1  0x0fc117c4 in abort () from /lib/libc.so.6
#2  0x0fd78250 in ?? () from /lib/libgcc_s.so.1
#3  0x0fd78960 in _Unwind_RaiseException () from /lib/libgcc_s.so.1
#4  0x0ff33e0c in __cxa_throw () from /lib/libstdc++.so.6
#5  0x100007dc in doThrow() ()
#6  0x10000800 in main ()
(gdb) 

GCC version:
------------

The compiler has been compiled with crosstool-ng:

./powerpc-e500v2-linux-gnuspe-gcc -v
Using built-in specs.
COLLECT_GCC=./powerpc-e500v2-linux-gnuspe-gcc
COLLECT_LTO_WRAPPER=/opt/x-tools/tron/4.8.3/powerpc-e500v2-linux-gnuspe/bin/../libexec/gcc/powerpc-e500v2-linux-gnuspe/4.8.3/lto-wrapper
Target: powerpc-e500v2-linux-gnuspe
Configured with: /home/manrud00/crosstool-ng/.build/src/gcc-4.8.3/configure
--build=i686-build_pc-linux-gnu --host=i686-build_pc-linux-gnu
--target=powerpc-e500v2-linux-gnuspe
--prefix=/home/manrud00/x-tools/powerpc-e500v2-linux-gnuspe
--with-sysroot=/home/manrud00/x-tools/powerpc-e500v2-linux-gnuspe/powerpc-e500v2-linux-gnuspe/sysroot
--enable-languages=c,c++ --with-cpu=8548 --with-tune=8548
--with-pkgversion='crosstool-NG hg+default-99029fac116b'
--disable-sjlj-exceptions --enable-__cxa_atexit --disable-libmudflap
--disable-libgomp --disable-libssp --disable-libquadmath
--disable-libquadmath-support
--with-gmp=/home/manrud00/crosstool-ng/.build/powerpc-e500v2-linux-gnuspe/buildtools
--with-mpfr=/home/manrud00/crosstool-ng/.build/powerpc-e500v2-linux-gnuspe/buildtools
--with-mpc=/home/manrud00/crosstool-ng/.build/powerpc-e500v2-linux-gnuspe/buildtools
--with-isl=/home/manrud00/crosstool-ng/.build/powerpc-e500v2-linux-gnuspe/buildtools
--with-cloog=/home/manrud00/crosstool-ng/.build/powerpc-e500v2-linux-gnuspe/buildtools
--with-libelf=/home/manrud00/crosstool-ng/.build/powerpc-e500v2-linux-gnuspe/buildtools
--with-host-libstdcxx='-static-libgcc -Wl,-Bstatic,-lstdc++,-Bdynamic -lm'
--enable-threads=posix --disable-nls --disable-multilib
--with-local-prefix=/home/manrud00/x-tools/powerpc-e500v2-linux-gnuspe/powerpc-e500v2-linux-gnuspe/sysroot
--enable-c99 --enable-long-long --enable-e500_double --with-long-double-128
Thread model: posix
gcc version 4.8.3


^ permalink raw reply	[flat|nested] 19+ messages in thread

end of thread, other threads:[~2015-06-26 20:26 UTC | newest]

Thread overview: 19+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-08-22 13:31 [Bug target/62231] New: Exception handling broken on powerpc-e500v2-linux-gnuspe manfred.rudigier at omicron dot at
2014-11-27  5:16 ` [Bug target/62231] " asolokha at gmx dot com
2014-11-28 12:53 ` manfred.rudigier at omicron dot at
2014-11-28 17:20 ` [Bug target/62231] [4.8/4.9 regression] " ebotcazou at gcc dot gnu.org
2014-11-28 17:26 ` asolokha at gmx dot com
2014-12-01 12:32 ` rguenth at gcc dot gnu.org
2014-12-01 12:42 ` asolokha at gmx dot com
2014-12-19 13:26 ` jakub at gcc dot gnu.org
2014-12-22  8:55 ` manfred.rudigier at omicron dot at
2014-12-22 23:38 ` dan.wilder at watchguard dot com
2014-12-22 23:42 ` dan.wilder at watchguard dot com
2014-12-22 23:43 ` dan.wilder at watchguard dot com
2014-12-23  9:43 ` manfred.rudigier at omicron dot at
2015-05-19 18:01 ` andri.yngvason at marel dot com
2015-05-19 20:08 ` joseph at codesourcery dot com
2015-05-20  9:41 ` andri.yngvason at marel dot com
2015-06-23  8:16 ` rguenth at gcc dot gnu.org
2015-06-26 19:52 ` [Bug target/62231] [4.9 " jakub at gcc dot gnu.org
2015-06-26 20:26 ` jakub at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).