From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28751 invoked by alias); 5 Dec 2013 13:43:50 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 28722 invoked by uid 48); 5 Dec 2013 13:43:46 -0000 From: "demarchie at web dot de" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/59395] New: internal compiler error (memory access error) Date: Thu, 05 Dec 2013 13:43:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: fortran X-Bugzilla-Version: 4.8.2 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: demarchie at web dot de X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2013-12/txt/msg00392.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D59395 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 =3D selected_real_kind(1,1) ! no bug with k =3D 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=3Degfortran COLLECT_LTO_WRAPPER=3D/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-libg= cj --without-jar --verbose --program-transform-name=3D's,^,e,' --disable-nls --disable-checking --with-system-zlib --disable-libmudflap --disable-libgomp --disable-tls --with-as=3D/usr/bin/as --with-ld=3D/usr/bin/ld --with-gnu-ld --with-gnu-as --enable-threads=3Dposix --enable-wchar_t --with-gmp=3D/usr/l= ocal --enable-languages=3Dc,c++,fortran,objc,java --disable-libstdcxx-pch --enab= le-cpp --enable-shared --prefix=3D/usr/local --sysconfdir=3D/etc --mandir=3D/usr/l= ocal/man --infodir=3D/usr/local/info --localstatedir=3D/var --disable-silent-rules Thread model: posix gcc version 4.8.1 (GCC)=20 COLLECT_GCC_OPTIONS=3D'-save-temps' '-v' /usr/local/libexec/gcc/powerpc-unknown-openbsd5.4/4.8.1/f951 source.f90 -q= uiet -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=3D65 --param ggc-min-heapsize=3D1310= 72 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=3D65 --param ggc-min-heapsize=3D1310= 72 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 for instructions. 2 gfortran 4.8.2-1 from fink on macppc OS 10.4 Angesteuert: /sw/bin/gfortran -mmacosx-version-min=3D10.4 source.f90 -save-= temps -v -l gfortran -shared-libgcc Es werden eingebaute Spezifikationen verwendet. COLLECT_GCC=3D/sw/bin/gfortran COLLECT_LTO_WRAPPER=3D/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=3D/sw AS=3Dodas AS_FOR_TARGET=3Dodas NM_FOR_TARGET=3Dodnm LD_FOR_TARGET=3Dodld AR_FOR_TARGE= T=3Dodar LIPO_FOR_TARGET=3Dodlipo OBJDUMP_FOR_TARGET=3Dodobjdump RANLIB_FOR_TARGET= =3Dodranlib STRIP_FOR_TARGET=3Dodstrip --prefix=3D/sw/lib/gcc4.8 --mandir=3D/sw/share/m= an --infodir=3D/sw/lib/gcc4.8/info --enable-languages=3Dc,c++,fortran,lto,objc,obj-c++,java --with-gmp=3D/sw --with-libiconv-prefix=3D/sw --with-isl=3D/sw --with-cloog=3D/sw --with-mpc= =3D/sw --with-system-zlib --enable-checking=3Drelease --x-includes=3D/usr/X11R6/in= clude --x-libraries=3D/usr/X11R6/lib --program-suffix=3D-fsf-4.8 --with-dwarf2 --disable-libjava-multilib --disable-libquadmath Thread-Modell: posix gcc-Version 4.8.2 (GCC)=20 COLLECT_GCC_OPTIONS=3D'-mmacosx-version-min=3D10.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=3D10.4 -auxbase sour= ce -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=3D100 --param ggc-min-heapsize=3D1310= 72 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=3D100 --param ggc-min-heapsize=3D1310= 72 [address=3D61707265 pc=3D00826c94] source.f90: In Funktion =C2=BBmain=C2=AB: source.f90:20:0: interner Compiler-Fehler: Speicherzugriffsverletzung [*] use mymod ^ libbacktrace could not find executable to open Bitte senden Sie einen vollst=C3=A4ndigen Fehlerbericht auf Englisch ein; bearbeiten Sie die Quellen zun=C3=A4chst mit einem Pr=C3=A4prozessor, wenn = es dienlich ist. Siehe f=C3=BCr n=C3=A4here Anweisungen. [*] "memory access violation" >>From gcc-bugs-return-436738-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Dec 05 13:53:28 2013 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 2285 invoked by alias); 5 Dec 2013 13:53:27 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 2231 invoked by uid 48); 5 Dec 2013 13:53:23 -0000 From: "Joost.VandeVondele at mat dot ethz.ch" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/59395] [4.8 Regression] internal compiler error (memory access error) Date: Thu, 05 Dec 2013 13:53:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: fortran X-Bugzilla-Version: 4.8.2 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: Joost.VandeVondele at mat dot ethz.ch X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc cf_known_to_work short_desc cf_known_to_fail Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2013-12/txt/msg00393.txt.bz2 Content-length: 844 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59395 Joost VandeVondele changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |Joost.VandeVondele at mat dot ethz | |.ch Known to work| |4.7.2, 4.9.0 Summary|internal compiler error |[4.8 Regression] internal |(memory access error) |compiler error (memory | |access error) Known to fail| |4.8.3 --- Comment #1 from Joost VandeVondele --- fails with 4.8.3, works with trunk and 4.7