This is the mail archive of the fortran@gcc.gnu.org mailing list for the GNU Fortran 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: ICE seg fault


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


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