This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/27868] Array reference out of bounds check should state file/line number or should at least crash
- From: "tobias dot burnus at physik dot fu-berlin dot de" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 1 Jun 2006 21:41:51 -0000
- Subject: [Bug fortran/27868] Array reference out of bounds check should state file/line number or should at least crash
- References: <bug-27868-1719@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #2 from tobias dot burnus at physik dot fu-berlin dot de 2006-06-01 21:41 -------
> Why not use gdb?
I don't see how gdb helps pinpointing the array-out-of-bound problem. As said:
the program ends with
Fortran runtime error: Array reference out of bounds
Program exited with code 02.
but it does not crash. Thus there is no backtrace available to pinpoint the
problem.
If you mean for the double-free: It crashes at a deallocate() which looks
rather innocent (as does the whole file). My feeling is that something gets
corrupted duing a subroutine call.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27868