http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59395
Bug ID: 59395 Summary: internal compiler error (memory access error) Product: gcc Version: 4.8.2 Status: UNCONFIRMED Severity: normal Priority: P3 Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: demarchie at web dot de I receive an ICE when compiling this source code with 4.8.1 and 4.8.2: module mymod implicit none integer, parameter :: k = selected_real_kind(1,1) ! no bug with k = 4 type t integer :: m ! can't swap this line with next one procedure(f), pointer, nopass :: a,b ! have to be at least two of them end type interface integer function f(n) integer :: n end function end interface end module mymod program test use mymod end program test ***** Output from gfortran source.f90 -save-temps -v 1 gfortran 4.8.1 on OpenBSD/macppc Driving: egfortran source.f90 -save-temps -v -l gfortran -l m Using built-in specs. COLLECT_GCC=egfortran COLLECT_LTO_WRAPPER=/usr/local/libexec/gcc/powerpc-unknown-openbsd5.4/4.8.1/lto-wrapper Target: powerpc-unknown-openbsd5.4 Configured with: /usr/obj/ports/gcc-4.8.1/gcc-4.8.1/configure --enable-libgcj --without-jar --verbose --program-transform-name='s,^,e,' --disable-nls --disable-checking --with-system-zlib --disable-libmudflap --disable-libgomp --disable-tls --with-as=/usr/bin/as --with-ld=/usr/bin/ld --with-gnu-ld --with-gnu-as --enable-threads=posix --enable-wchar_t --with-gmp=/usr/local --enable-languages=c,c++,fortran,objc,java --disable-libstdcxx-pch --enable-cpp --enable-shared --prefix=/usr/local --sysconfdir=/etc --mandir=/usr/local/man --infodir=/usr/local/info --localstatedir=/var --disable-silent-rules Thread model: posix gcc version 4.8.1 (GCC) COLLECT_GCC_OPTIONS='-save-temps' '-v' /usr/local/libexec/gcc/powerpc-unknown-openbsd5.4/4.8.1/f951 source.f90 -quiet -dumpbase source.f90 -auxbase source -version -fintrinsic-modules-path /usr/local/lib/gcc/powerpc-unknown-openbsd5.4/4.8.1/finclude -o source.s GNU Fortran (GCC) version 4.8.1 (powerpc-unknown-openbsd5.4) compiled by GNU C version 4.8.1, GMP version 5.0.2, MPFR version 3.1.0-p3, MPC version 0.9 GGC heuristics: --param ggc-min-expand=65 --param ggc-min-heapsize=131072 GNU Fortran (GCC) version 4.8.1 (powerpc-unknown-openbsd5.4) compiled by GNU C version 4.8.1, GMP version 5.0.2, MPFR version 3.1.0-p3, MPC version 0.9 GGC heuristics: --param ggc-min-expand=65 --param ggc-min-heapsize=131072 f951 in free(): error: chunk is already free 0x86f96060 f951 in malloc(): error: recursive call egfortran: internal compiler error: Abort trap (program f951) libbacktrace could not find executable to open Please submit a full bug report, with preprocessed source if appropriate. See <http://gcc.gnu.org/bugs.html> for instructions. 2 gfortran 4.8.2-1 from fink on macppc OS 10.4 Angesteuert: /sw/bin/gfortran -mmacosx-version-min=10.4 source.f90 -save-temps -v -l gfortran -shared-libgcc Es werden eingebaute Spezifikationen verwendet. COLLECT_GCC=/sw/bin/gfortran COLLECT_LTO_WRAPPER=/sw/lib/gcc4.8/libexec/gcc/powerpc-apple-darwin8.11.0/4.8.2/lto-wrapper Ziel: powerpc-apple-darwin8.11.0 Konfiguriert mit: ../gcc-4.8.2/configure --prefix=/sw AS=odas AS_FOR_TARGET=odas NM_FOR_TARGET=odnm LD_FOR_TARGET=odld AR_FOR_TARGET=odar LIPO_FOR_TARGET=odlipo OBJDUMP_FOR_TARGET=odobjdump RANLIB_FOR_TARGET=odranlib STRIP_FOR_TARGET=odstrip --prefix=/sw/lib/gcc4.8 --mandir=/sw/share/man --infodir=/sw/lib/gcc4.8/info --enable-languages=c,c++,fortran,lto,objc,obj-c++,java --with-gmp=/sw --with-libiconv-prefix=/sw --with-isl=/sw --with-cloog=/sw --with-mpc=/sw --with-system-zlib --enable-checking=release --x-includes=/usr/X11R6/include --x-libraries=/usr/X11R6/lib --program-suffix=-fsf-4.8 --with-dwarf2 --disable-libjava-multilib --disable-libquadmath Thread-Modell: posix gcc-Version 4.8.2 (GCC) COLLECT_GCC_OPTIONS='-mmacosx-version-min=10.4' '-save-temps' '-v' '-shared-libgcc' /sw/lib/gcc4.8/libexec/gcc/powerpc-apple-darwin8.11.0/4.8.2/f951 source.f90 -fPIC -quiet -dumpbase source.f90 -mmacosx-version-min=10.4 -auxbase source -version -fintrinsic-modules-path /sw/lib/gcc4.8/lib/gcc/powerpc-apple-darwin8.11.0/4.8.2/finclude -o source.s GNU Fortran (GCC) Version 4.8.2 (powerpc-apple-darwin8.11.0) kompiliert von GNU-C-Version 4.8.2, GMP-Version 5.1.3, MPFR-Version 3.1.2, MPC-Version 1.0.1. GGC-Heuristik: --param ggc-min-expand=100 --param ggc-min-heapsize=131072 GNU Fortran (GCC) Version 4.8.2 (powerpc-apple-darwin8.11.0) kompiliert von GNU-C-Version 4.8.2, GMP-Version 5.1.3, MPFR-Version 3.1.2, MPC-Version 1.0.1. GGC-Heuristik: --param ggc-min-expand=100 --param ggc-min-heapsize=131072 [address=61707265 pc=00826c94] source.f90: In Funktion »main«: source.f90:20:0: interner Compiler-Fehler: Speicherzugriffsverletzung [*] use mymod ^ libbacktrace could not find executable to open Bitte senden Sie einen vollständigen Fehlerbericht auf Englisch ein; bearbeiten Sie die Quellen zunächst mit einem Präprozessor, wenn es dienlich ist. Siehe <http://gcc.gnu.org/bugs.html> für nähere Anweisungen. [*] "memory access violation"