http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59093
Bug ID: 59093 Summary: internal compiler error: Segmentation fault compiling F90 File Product: gcc Version: 4.8.1 Status: UNCONFIRMED Severity: normal Priority: P3 Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: matthew.thompson at nasa dot gov Created attachment 31201 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=31201&action=edit Pre-processed source file I'm getting an ICE compiling a Fortran file. I'll attach a stripped down reproducer that demonstrates the problem (the real file is 3000+ lines and requires many, many external modules and libraries). Per instructions, running gfortran on our .F90: $ gfortran -v -save-temps MAPL_LocStreamGet.F90 Driving: gfortran -v -save-temps MAPL_LocStreamGet.F90 -l gfortran -l m -shared-libgcc Using built-in specs. COLLECT_GCC=gfortran COLLECT_LTO_WRAPPER=/usr/local/other/SLES11.1/gcc/4.8.1/libexec/gcc/x86_64-unknown-linux-gnu/4.8.1/lto-wrapper Target: x86_64-unknown-linux-gnu Configured with: /gpfsm/dnbsrc/other/GCC/SLES11/4.8.1/gcc-4.8.1/configure --prefix=/usr/local/other/SLES11.1/gcc/4.8.1 CC=gcc --enable-languages=all --enable-bootstrap Thread model: posix gcc version 4.8.1 (GCC) COLLECT_GCC_OPTIONS='-v' '-save-temps' '-shared-libgcc' '-mtune=generic' '-march=x86-64' /usr/local/other/SLES11.1/gcc/4.8.1/libexec/gcc/x86_64-unknown-linux-gnu/4.8.1/f951 MAPL_LocStreamGet.F90 -cpp=MAPL_LocStreamGet.f90 -quiet -v MAPL_LocStreamGet.F90 -quiet -dumpbase MAPL_LocStreamGet.F90 -mtune=generic -march=x86-64 -auxbase MAPL_LocStreamGet -version -fintrinsic-modules-path /usr/local/other/SLES11.1/gcc/4.8.1/lib/gcc/x86_64-unknown-linux-gnu/4.8.1/finclude -o MAPL_LocStreamGet.s GNU Fortran (GCC) version 4.8.1 (x86_64-unknown-linux-gnu) compiled by GNU C version 4.8.1, GMP version 4.3.2, MPFR version 2.4.2, MPC version 0.8.1 GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072 ignoring nonexistent directory "/usr/local/other/SLES11.1/gcc/4.8.1/lib/gcc/x86_64-unknown-linux-gnu/4.8.1/../../../../x86_64-unknown-linux-gnu/include" #include "..." search starts here: #include <...> search starts here: /usr/local/other/SLES11.1/gcc/4.8.1/lib/gcc/x86_64-unknown-linux-gnu/4.8.1/finclude /usr/local/intel/Composer/composer_xe_2013_sp1.0.080/mkl/include /gpfsm/dnb32/mbhat/TestSlurm/Installs/openmpi/1.7.2-gcc-4.8.1-shared/include /usr/local/other/SLES11.1/gcc/4.8.1/lib/gcc/x86_64-unknown-linux-gnu/4.8.1/include /usr/local/include /usr/local/other/SLES11.1/gcc/4.8.1/include /usr/local/other/SLES11.1/gcc/4.8.1/lib/gcc/x86_64-unknown-linux-gnu/4.8.1/include-fixed /usr/include End of search list. GNU Fortran (GCC) version 4.8.1 (x86_64-unknown-linux-gnu) compiled by GNU C version 4.8.1, GMP version 4.3.2, MPFR version 2.4.2, MPC version 0.8.1 GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072 MAPL_LocStreamGet.F90: In function ‘mapl_locstreamget’: MAPL_LocStreamGet.F90:111:0: internal compiler error: Segmentation fault tiletype => locstream%Ptr%Local_GeoLocation(:)%t ^ 0x4eb078 ??? ../sysdeps/x86_64/elf/start.S:113 Please submit a full bug report, with preprocessed source if appropriate. Please include the complete backtrace with any bug report. See <http://gcc.gnu.org/bugs.html> for instructions. And running on the attached pre-processed source file, MAPL_LocStreamGet.f90: $ gfortran -v -save-temps MAPL_LocStreamGet.f90 Driving: gfortran -v -save-temps MAPL_LocStreamGet.f90 -l gfortran -l m -shared-libgcc Using built-in specs. COLLECT_GCC=gfortran COLLECT_LTO_WRAPPER=/usr/local/other/SLES11.1/gcc/4.8.1/libexec/gcc/x86_64-unknown-linux-gnu/4.8.1/lto-wrapper Target: x86_64-unknown-linux-gnu Configured with: /gpfsm/dnbsrc/other/GCC/SLES11/4.8.1/gcc-4.8.1/configure --prefix=/usr/local/other/SLES11.1/gcc/4.8.1 CC=gcc --enable-languages=all --enable-bootstrap Thread model: posix gcc version 4.8.1 (GCC) COLLECT_GCC_OPTIONS='-v' '-save-temps' '-shared-libgcc' '-mtune=generic' '-march=x86-64' /usr/local/other/SLES11.1/gcc/4.8.1/libexec/gcc/x86_64-unknown-linux-gnu/4.8.1/f951 MAPL_LocStreamGet.f90 -quiet -dumpbase MAPL_LocStreamGet.f90 -mtune=generic -march=x86-64 -auxbase MAPL_LocStreamGet -version -fintrinsic-modules-path /usr/local/other/SLES11.1/gcc/4.8.1/lib/gcc/x86_64-unknown-linux-gnu/4.8.1/finclude -o MAPL_LocStreamGet.s GNU Fortran (GCC) version 4.8.1 (x86_64-unknown-linux-gnu) compiled by GNU C version 4.8.1, GMP version 4.3.2, MPFR version 2.4.2, MPC version 0.8.1 GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072 GNU Fortran (GCC) version 4.8.1 (x86_64-unknown-linux-gnu) compiled by GNU C version 4.8.1, GMP version 4.3.2, MPFR version 2.4.2, MPC version 0.8.1 GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072 MAPL_LocStreamGet.f90: In function ‘mapl_locstreamget’: MAPL_LocStreamGet.f90:111:0: internal compiler error: Segmentation fault end if ^ 0x4eb078 ??? ../sysdeps/x86_64/elf/start.S:113 Please submit a full bug report, with preprocessed source if appropriate. Please include the complete backtrace with any bug report. See <http://gcc.gnu.org/bugs.html> for instructions.