exceptions problems with Redhat5.0/gcc2.8.1

exceptions problems with Redhat5.0/gcc2.8.1

Post by Afsar SARAN » Fri, 24 Jul 1998 04:00:00



Hi all,

I am developing a moderate sized c++ framework package. The package
has a lot of exception code and I used to compile and use it successfully
under Slackware Linux, gcc.2.7.2.1, binutils.2.8.x

There were no problems with exception handling, as far as I could see.
(with -fhandle-exceptions)

After I upgraded to Redhat Linux 5.0 (and hence to gcc 2.8.2.3, glibc2,
binutils-2.8.1.x etc., I first had problems with debugging with gdb.
This was resolved by an upgrade to "binutils-2.9.x" (thans to all who
replied! :-))

But in the meantime, I had upgraded to gcc-2.8.1 and the corresponding
libg++ and libstdc++.2.8.1.1. This version of gcc is claimed to be
much more stable and in working condition in terms of exception handling.
However, my current problem is non-working exception code!!
Namely, when the exception is thrown, the program does not enter
the handling code in the try-catch pair. The program is terminated by
an Abort call and I have a core dump.

What is the matter with gcc-2.8.1?? Or, am I missing some other point?

Any help and suggestions would be greatly appreciated.

Sincerely,

--
Afsar SARANLI
Dept. of Electrical and Electronics Engineering      Tel:(90-312) 210-4419
Middle East Technical University                     Fax:(90-312) 210-1261
Inonu Bulvari, 06531                

 
 
 

exceptions problems with Redhat5.0/gcc2.8.1

Post by Joerg Beye » Sat, 25 Jul 1998 04:00:00



> But in the meantime, I had upgraded to gcc-2.8.1 and the corresponding
> libg++ and libstdc++.2.8.1.1. This version of gcc is claimed to be
> much more stable and in working condition in terms of exception handling.
> However, my current problem is non-working exception code!!
> Namely, when the exception is thrown, the program does not enter
> the handling code in the try-catch pair. The program is terminated by
> an Abort call and I have a core dump.

> What is the matter with gcc-2.8.1?? Or, am I missing some other point?

I havent seen your code, so I only may guess: Is the catch'ed type
correct? a catch(...){printf("here I am.\n");} at the end may
help to verify this.

excuse me, if this  is far off.

        Joerg
--
Ich habe ihn ausgewechselt, weil ich einen anderen Spieler einwechseln
wollte. Da musste ich einen auswechseln. (Ewald Lienen)

 
 
 

1. How to upgrade gcc2.7.2.3 to gcc2.8.1

Hi, there,
I had trouble to upgrade gcc. I just wondering
is it posible to compile and link gcc 2.8 with
gcc 2.7.2.3 or do I need another compiler.
This sounds interesting because I do not know
what compiler is availble besides gcc.
Thanks!

2. Debate: PowerMac "trounces" Pentium....???

3. Problems starting XFree with kernel compiled with gcc2.8.1

4. Direct/Raw/Unbuffered I/O

5. Problem with gcc2.8.1 on Solaris7

6. rc.shutdown

7. MAKE: Problem with SM 8.9.1, Sol2.3 and GCC2.8.1

8. Linux/m68k Registration Site

9. gcc2.8.1 make problem

10. Problem about GCC2.8.1

11. gcc2.8.1 install problem

12. Execption catch problem in Redhat5.0+gcc-2.8.1