public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "demarchie at web dot de" <gcc-bugzilla@gcc.gnu.org>
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	[thread overview]
Message-ID: <bug-59395-4@http.gcc.gnu.org/bugzilla/> (raw)

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"
>From gcc-bugs-return-436738-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Dec 05 13:53:28 2013
Return-Path: <gcc-bugs-return-436738-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
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: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
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" <gcc-bugzilla@gcc.gnu.org>
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: <bug-59395-4-xNkgygOW8E@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-59395-4@http.gcc.gnu.org/bugzilla/>
References: <bug-59395-4@http.gcc.gnu.org/bugzilla/>
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?idY395

Joost VandeVondele <Joost.VandeVondele at mat dot ethz.ch> 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 <Joost.VandeVondele at mat dot ethz.ch> ---
fails with 4.8.3, works with trunk and 4.7


             reply	other threads:[~2013-12-05 13:43 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-12-05 13:43 demarchie at web dot de [this message]
2013-12-05 20:54 ` [Bug fortran/59395] [4.8 Regression] " janus at gcc dot gnu.org
2013-12-06 10:36 ` rguenth at gcc dot gnu.org
2014-02-09 14:15 ` [Bug fortran/59395] [4.8 Regression] double free with procedure pointer component janus at gcc dot gnu.org
2014-02-09 14:35 ` janus at gcc dot gnu.org
2014-02-09 17:32 ` janus at gcc dot gnu.org
2014-02-09 17:36 ` janus at gcc dot gnu.org

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bug-59395-4@http.gcc.gnu.org/bugzilla/ \
    --to=gcc-bugzilla@gcc.gnu.org \
    --cc=gcc-bugs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).