public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/13337] New: exceptions don't get caught when thrown on AIX
@ 2003-12-07  0:01 drewelmore at yahoo dot com
  2003-12-07  3:30 ` [Bug c++/13337] " dje at gcc dot gnu dot org
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: drewelmore at yahoo dot com @ 2003-12-07  0:01 UTC (permalink / raw)
  To: gcc-bugs

#include <iostream>
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


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

end of thread, other threads:[~2003-12-09 22:48 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-12-07  0:01 [Bug c++/13337] New: exceptions don't get caught when thrown on AIX drewelmore at yahoo dot com
2003-12-07  3:30 ` [Bug c++/13337] " dje at gcc dot gnu dot org
2003-12-07  3:30 ` dje at gcc dot gnu dot org
2003-12-09 17:26 ` dje at gcc dot gnu dot org
2003-12-09 21:50 ` drewelmore at yahoo dot com
2003-12-09 22:47 ` dhazeghi at yahoo dot com
2003-12-09 22:48 ` dhazeghi at yahoo dot com

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).