3.0 mips-sgi-irix6.5: Exception Handling Broken Recently

Jeffrey Oldham oldham@codesourcery.com
Mon May 21 15:52:00 GMT 2001


Some time between 18May and 21May, many C++ test executions failed for
code produced by gcc 3.0 mips-sgi-irix6.5.  For example, running this
simple program:

    int main()
    {
      try {
	throw 1;
      }
      catch (...) {
	return 0;
      }
      return 0;
    }

causes a segmentation violation:

    > dbx ./a.out 
    dbx ./a.out 
    dbx version 7.2.1 Mar 13 1998 19:00:36
    Core from signal SIGSEGV: Segmentation violation
    (dbx) where
    where
    >  0 _Unwind_SetGR(0x7ffe36a8, 0x0, 0x10013038, 0x10013038, 0x7ffe36a8, 0x7, 0x1, 0x10012327) ["/users/joldham/pooma/dev7/gcc/gcc/unwind-dw2.c":0, 0x400c658]
       1 ::__gxx_personality_v0(version = 2147366568, actions = 6, exception_class = 5138137972254386944, ue_header = 0x10013038, context = 0x7ffe36a8) ["/users/joldham/pooma/dev7/gcc/libstdc++-v3/libsupc++/eh_personality.cc":394, 0x5ffb50dc]
       2 _Unwind_RaiseException_Phase2(0x10013038, 0x7ffe36a8, 0x10013038, 0x10013038, 0x7ffe36a8, 0x7, 0x1, 0x10012327) ["/users/joldham/pooma/dev7/gcc/gcc/unwind-dw2.c":0, 0x400bd88]
       3 _Unwind_RaiseException(0x0, 0x0, 0x0, 0x0, 0x7ffe36a8, 0x7, 0x1, 0x10012327) ["/users/joldham/pooma/dev7/gcc/gcc/unwind-dw2.c":0, 0x400c078]
       4 ::__cxa_throw(obj = 0x10013038, tinfo = 0x5fff5e68, dest = (nil)) ["/users/joldham/pooma/dev7/gcc/libstdc++-v3/libsupc++/eh_throw.cc":72, 0x5ffbb00c]
       5 ::main() ["/users/joldham/tmp/hello.cc":7, 0x10000f8c]
       6 __start() ["/xlv55/kudzu-apr12/work/irix/lib/libc/libc_n32_M3/csu/crt1text.s":177, 0x10000e08]
    (dbx) 

Does anyone know how to quickly solve this problem?

Thanks,
Jeffrey D. Oldham
oldham@codesourcery.com



More information about the Gcc-bugs mailing list