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

* [Bug c++/13337] exceptions don't get caught when thrown on AIX
  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 ` dje at gcc dot gnu dot org
  2003-12-07  3:30 ` dje at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: dje at gcc dot gnu dot org @ 2003-12-07  3:30 UTC (permalink / raw)
  To: gcc-bugs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1
   Last reconfirmed|0000-00-00 00:00:00         |2003-12-07 03:30:16
               date|                            |


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13337


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

* [Bug c++/13337] exceptions don't get caught when thrown on AIX
  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
                   ` (3 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: dje at gcc dot gnu dot org @ 2003-12-07  3:30 UTC (permalink / raw)
  To: gcc-bugs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |ASSIGNED
   Last reconfirmed|2003-12-07 03:30:16         |2003-12-07 03:30:53
               date|                            |


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13337


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

* [Bug c++/13337] exceptions don't get caught when thrown on AIX
  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
                   ` (2 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: dje at gcc dot gnu dot org @ 2003-12-09 17:26 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From dje at gcc dot gnu dot org  2003-12-09 17:26 -------
I cannot duplicate this problem.  I suspect that there is something wrong with 
the libstdc++ and/or libgcc installation on the system.  Possibly the system is 
using the previous version of the library.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|                            |WORKSFORME


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13337


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

* [Bug c++/13337] exceptions don't get caught when thrown on AIX
  2003-12-07  0:01 [Bug c++/13337] New: exceptions don't get caught when thrown on AIX drewelmore at yahoo dot com
                   ` (2 preceding siblings ...)
  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
  5 siblings, 0 replies; 7+ messages in thread
From: drewelmore at yahoo dot com @ 2003-12-09 21:50 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From drewelmore at yahoo dot com  2003-12-09 21:50 -------
we were compiling and linking with gcc instead of g++, which doesn't link all
the necessary libraries.

With gcc, adding a -lsupc++ to the link line solved the problem.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |CLOSED


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13337


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

* [Bug c++/13337] exceptions don't get caught when thrown on AIX
  2003-12-07  0:01 [Bug c++/13337] New: exceptions don't get caught when thrown on AIX drewelmore at yahoo dot com
                   ` (3 preceding siblings ...)
  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
  5 siblings, 0 replies; 7+ messages in thread
From: dhazeghi at yahoo dot com @ 2003-12-09 22:47 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From dhazeghi at yahoo dot com  2003-12-09 22:47 -------
No this should not be closed...

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|CLOSED                      |REOPENED
         Resolution|WORKSFORME                  |


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13337


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

* [Bug c++/13337] exceptions don't get caught when thrown on AIX
  2003-12-07  0:01 [Bug c++/13337] New: exceptions don't get caught when thrown on AIX drewelmore at yahoo dot com
                   ` (4 preceding siblings ...)
  2003-12-09 22:47 ` dhazeghi at yahoo dot com
@ 2003-12-09 22:48 ` dhazeghi at yahoo dot com
  5 siblings, 0 replies; 7+ messages in thread
From: dhazeghi at yahoo dot com @ 2003-12-09 22:48 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From dhazeghi at yahoo dot com  2003-12-09 22:48 -------
should be "resolved invalid" - yes bugzilla's weird (invalid = was not actually a bug).

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|REOPENED                    |RESOLVED
         Resolution|                            |INVALID


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