This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [gfortran,patch] Allow backtracing non-library errors


$ gfortran -g -fbacktrace -ffpe-trap=invalid u3.f90 && ./a.out

Program received signal 8 (SIGFPE): Floating-point exception.

Backtrace for this error:
  + /lib/i686/cmov/libc.so.6 [0xb7ce1208]
  + /lib/i686/cmov/libc.so.6(__libc_start_main+0xe0) [0xb7ccd030]

If you remove -fbacktrace and catch the SIGFPE with gdb, what is the gdb backtrace?


FX


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]