From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24433 invoked by alias); 7 Dec 2003 00:01:11 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 24425 invoked by uid 48); 7 Dec 2003 00:01:10 -0000 Date: Sun, 07 Dec 2003 00:01:00 -0000 From: "drewelmore at yahoo dot com" To: gcc-bugs@gcc.gnu.org Message-ID: <20031207000106.13337.drewelmore@yahoo.com> Reply-To: gcc-bugzilla@gcc.gnu.org Subject: [Bug c++/13337] New: exceptions don't get caught when thrown on AIX X-Bugzilla-Reason: CC X-SW-Source: 2003-12/txt/msg00804.txt.bz2 List-Id: #include using namespace std; int main() { cout << "testing throw catch" << endl; try { cout<<"in try block" << endl; throw new int; } catch (int * i) { cout<<"in catch block\n"; } return 0; } when the example program is compiled, it dies with a stack trace as follows (shown by dbx): raise(??) at 0xd01dedf8 abort() at 0xd01ed898 _ZN10__cxxabiv111__terminateEPFvvE(??), line 47 in "eh_terminate.cc" _ZSt9terminatev(), line 57 in "eh_terminate.cc" __cxa_throw(??, ??, ??), line 80 in "eh_throw.cc" main(), line 9 in "exc.cpp" gcc was configured as "configure --prefix=/usr/tools/upgrade/gnu/gcc/3.3 --with-local-prefix=/usr/tools/upgrade/gnu/gcc/3.3 --with-as=/usr/ccs/bin/as --with-ld=/usr/ccs/bin/ld --enable-version-specific-runtime-libs --enable-languages=c,c++ -v" on the same platform, a similarly compiled gcc 3.3.1 exhibits the same behaviour, while gcc-2.95.2 works properly. -- Summary: exceptions don't get caught when thrown on AIX Product: gcc Version: 3.3 Status: UNCONFIRMED Severity: normal Priority: P2 Component: c++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: drewelmore at yahoo dot com CC: gcc-bugs at gcc dot gnu dot org GCC build triplet: powerpc-ibm-aix5.1.0.0 GCC host triplet: powerpc-ibm-aix5.1.0.0 GCC target triplet: powerpc-ibm-aix5.1.0.0 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13337