This is the mail archive of the
fortran@gcc.gnu.org
mailing list for the GNU Fortran project.
Re: ICE seg fault
- From: Tobias Burnus <burnus at net-b dot de>
- To: Florian Ladstaedter <flad at gmx dot at>
- Cc: fortran at gcc dot gnu dot org
- Date: Mon, 30 Jul 2007 17:40:40 +0200
- Subject: Re: ICE seg fault
- References: <46AE03FC.7060904@gmx.at>
Hi Florian,
Florian Ladstaedter wrote:
> I get the following ICE:
> ------------------------------------
> gfortran -c -J../include AtmoIonoSphere.f90
> AtmoIonoSphere.f90:0: internal compiler error: Segmentation fault
> ------------------------------------
> I have no idea where the problem might result from, and since the
> module has many dependencies it is hard to post an appropriate test
> case. Is there any way to get more information out of this situation?
"Segmentation fault" means that it crashes because an invalid pointer
was accessed thus the compiler itself cannot provide much more
information. But you could run the compiler in a debugger (e.g. gdb) and
do a backtrace or even better in valgrind.
Note: Don't run it as:
valgrind gfortran -c -J../include AtmoIonoSphere.f90
as "gfortran" is only a wrapper program. Use "-v" to find the actual
command:
gfortran -v -c -J../include AtmoIonoSphere.f90
and run it then; e.g, on my computer it looks as follows:
valgrind
/projects/tob/gcc-trunk/libexec/gcc/x86_64-unknown-linux-gnu/4.3.0/f951
AtmoIonoSphere.f90 -quiet -dumpbase AtmoIonoSphere.f90 -mtune=generic
-auxbase AtmoIonoSphere -version -J../include -fintrinsic-modules-path
/projects/tob/gcc-trunk/lib/gcc/x86_64-unknown-linux-gnu/4.3.0/finclude
-o /tmp/ccFMpASd.s
Tobias