public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/59093] New: internal compiler error: Segmentation fault compiling F90 File
@ 2013-11-12 20:16 matthew.thompson at nasa dot gov
  2013-11-12 20:58 ` [Bug fortran/59093] " dominiq at lps dot ens.fr
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: matthew.thompson at nasa dot gov @ 2013-11-12 20:16 UTC (permalink / raw)
  To: gcc-bugs

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.
>From gcc-bugs-return-434383-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Nov 12 20:17:40 2013
Return-Path: <gcc-bugs-return-434383-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 21979 invoked by alias); 12 Nov 2013 20:17:40 -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 21841 invoked by uid 55); 12 Nov 2013 20:17:36 -0000
From: "abutcher at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/58534] [c++1y] ICE with auto in template function parameters
Date: Tue, 12 Nov 2013 20:17:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 4.9.0
X-Bugzilla-Keywords: ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: abutcher at gcc dot gnu.org
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:
Message-ID: <bug-58534-4-FchY2BSdXt@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-58534-4@http.gcc.gnu.org/bugzilla/>
References: <bug-58534-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-11/txt/msg01160.txt.bz2
Content-length: 2732

http://gcc.gnu.org/bugzilla/show_bug.cgi?idX534

--- Comment #1 from abutcher at gcc dot gnu.org ---
Author: abutcher
Date: Tue Nov 12 20:17:33 2013
New Revision: 204714

URL: http://gcc.gnu.org/viewcvs?rev 4714&root=gcc&view=rev
Log:
Refactor implicit function template implementation and fix 58534, 58536, 58548,
58549 and 58637.

gcc/
    * tree.c (grow_tree_vec_stat): New function ...
    * tree.h (grow_tree_vec_stat) (grow_tree_vec): ... and its declaration
    and macro front-end.

gcc/cp/
    PR c++/58534
    PR c++/58536
    PR c++/58548
    PR c++/58549
    PR c++/58637
    * parser.h (struct cp_parser): New members implicit_template_parms,
    implicit_template_scope and auto_is_implicit_function_template_parm_p.
    * parser.c (add_implicit_template_parms): Refactor as ...
    (synthesize_implicit_template_parm): ... this to append a new template
    type parm to the current template parameter list (introducing a new list
    if necessary).  Removed push_deferring_access_checks.
    (finish_fully_implicit_template): Removed pop_deferring_access_checks.
    (cp_parser_new): Initialize new cp_parser members.
    (cp_parser_parameter_declaration_clause): Consider auto as implicit
    template parm when parsing a parameter declaration (unless parsing an
    explicit specialization).
    (cp_parser_parameter_declaration_list): Remove local
    implicit_template_parms counter and reset cp_parser implicit template
    state when complete.
    (cp_parser_lambda_expression): Reset implicit template cp_parser members
    whilst generating lambda class.
    (cp_parser_function_definition_after_declarator): Reset implicit
    template cp_parser members whilst parsing function definition.
    (make_generic_type_name): Respell '<autoN>' as 'auto:N' which works
    better with template diagnostics.
    (cp_parser_simple_type_specifier): Synthesize implicit template parm on
    parsing 'auto' if auto_is_implicit_function_template_parm_p and provide
    diagnostics ...
    * decl.c (grokdeclarator): ... that were previously done here.

gcc/testsuite/g++.dg/
    * cpp1y/pr58534.C: New testcase.
    * cpp1y/pr58536.C: New testcase.
    * cpp1y/pr58548.C: New testcase.
    * cpp1y/pr58549.C: New testcase.
    * cpp1y/pr58637.C: New testcase.

Added:
    trunk/gcc/testsuite/g++.dg/cpp1y/pr58534.C
    trunk/gcc/testsuite/g++.dg/cpp1y/pr58536.C
    trunk/gcc/testsuite/g++.dg/cpp1y/pr58548.C
    trunk/gcc/testsuite/g++.dg/cpp1y/pr58549.C
    trunk/gcc/testsuite/g++.dg/cpp1y/pr58637.C
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/decl.c
    trunk/gcc/cp/parser.c
    trunk/gcc/cp/parser.h
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/tree.c
    trunk/gcc/tree.h


^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug fortran/59093] internal compiler error: Segmentation fault compiling F90 File
  2013-11-12 20:16 [Bug fortran/59093] New: internal compiler error: Segmentation fault compiling F90 File matthew.thompson at nasa dot gov
@ 2013-11-12 20:58 ` dominiq at lps dot ens.fr
  2013-11-12 21:13 ` dominiq at lps dot ens.fr
                   ` (6 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: dominiq at lps dot ens.fr @ 2013-11-12 20:58 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59093

Dominique d'Humieres <dominiq at lps dot ens.fr> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2013-11-12
     Ever confirmed|0                           |1

--- Comment #1 from Dominique d'Humieres <dominiq at lps dot ens.fr> ---
Reduced test:

module MAPL_LocStreamMod

implicit none
private

type, public :: MAPL_LocStream
  private
  type(MAPL_LocStreamType), pointer :: Ptr=>null()
end type MAPL_LocStream

type MAPL_Tiling
   integer                             :: IM=0
end type MAPL_Tiling

type MAPL_LocStreamType
   type(MAPL_Tiling),        pointer  :: Tiling(:)              =>null() ! Grid
associated tilings
end type MAPL_LocStreamType

contains

  subroutine MAPL_LocStreamGet(LocStream, GRIDIM)
    type(MAPL_LocStream),                 intent(IN   ) :: LocStream
    integer, optional,                    pointer       :: GRIDIM(:)

    if (present(gridim)) then
       gridim => locstream%Ptr%tiling(:)%im
    end if

  end subroutine MAPL_LocStreamGet

end module MAPL_LocStreamMod


^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug fortran/59093] internal compiler error: Segmentation fault compiling F90 File
  2013-11-12 20:16 [Bug fortran/59093] New: internal compiler error: Segmentation fault compiling F90 File matthew.thompson at nasa dot gov
  2013-11-12 20:58 ` [Bug fortran/59093] " dominiq at lps dot ens.fr
@ 2013-11-12 21:13 ` dominiq at lps dot ens.fr
  2014-01-04 17:17 ` janus at gcc dot gnu.org
                   ` (5 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: dominiq at lps dot ens.fr @ 2013-11-12 21:13 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59093

--- Comment #2 from Dominique d'Humieres <dominiq at lps dot ens.fr> ---
I see the segmentation fault from 4.4 up to trunk. The backtrace for revision
204648 is

Program received signal SIGSEGV, Segmentation fault.
0x0000000100109a88 in gfc_trans_pointer_assignment (expr1=<value optimized
out>, expr2=<value optimized out>)
    at ../../_clean/gcc/fortran/trans-expr.c:6622
6622              gfc_add_modify (&lse.post, GFC_DECL_SPAN(decl), tmp);
(gdb) bt
#0  0x0000000100109a88 in gfc_trans_pointer_assignment (expr1=<value optimized
out>, expr2=<value optimized out>)
    at ../../_clean/gcc/fortran/trans-expr.c:6622
#1  0x00000001000c8007 in trans_code (code=<value optimized out>, cond=<value
optimized out>) at ../../_clean/gcc/fortran/trans.c:1639
#2  0x000000010012adc5 in gfc_trans_if_1 (code=<value optimized out>) at
../../_clean/gcc/fortran/trans-stmt.c:985
#3  0x00000001001320ad in gfc_trans_if (code=<value optimized out>) at
../../_clean/gcc/fortran/trans-stmt.c:1016
#4  0x00000001000c7e48 in trans_code (code=<value optimized out>, cond=<value
optimized out>) at ../../_clean/gcc/fortran/trans.c:1719
#5  0x00000001000f4a69 in gfc_generate_function_code (ns=<value optimized out>)
at ../../_clean/gcc/fortran/trans-decl.c:5528
#6  0x00000001000c99f2 in gfc_generate_module_code (ns=<value optimized out>)
at ../../_clean/gcc/fortran/trans.c:1955
#7  0x00000001000822a9 in gfc_parse_file () at
../../_clean/gcc/fortran/parse.c:4523
#8  0x00000001000c34e6 in gfc_be_parse_file () at
../../_clean/gcc/fortran/f95-lang.c:189
#9  0x00000001008107b4 in compile_file () at ../../_clean/gcc/toplev.c:545
#10 0x000000010081295a in toplev_main (argc=2, argv=0x7fff5fbfd8f0) at
../../_clean/gcc/toplev.c:1891
#11 0x000000010000aba4 in _Unwind_Find_FDE (pc=0x7fff5fbfd8e0, bases=0x0) at
../../../_clean/libgcc/unwind-dw2-fde.c:1029


^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug fortran/59093] internal compiler error: Segmentation fault compiling F90 File
  2013-11-12 20:16 [Bug fortran/59093] New: internal compiler error: Segmentation fault compiling F90 File matthew.thompson at nasa dot gov
  2013-11-12 20:58 ` [Bug fortran/59093] " dominiq at lps dot ens.fr
  2013-11-12 21:13 ` dominiq at lps dot ens.fr
@ 2014-01-04 17:17 ` janus at gcc dot gnu.org
  2014-03-19 19:04 ` [Bug fortran/59093] Segfault in gfc_trans_pointer_assignment matthew.thompson at nasa dot gov
                   ` (4 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: janus at gcc dot gnu.org @ 2014-01-04 17:17 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59093

janus at gcc dot gnu.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |janus at gcc dot gnu.org

--- Comment #3 from janus at gcc dot gnu.org ---
Further reduced test case:

implicit none

type :: MAPL_LocStream
  type(MAPL_LocStreamType), pointer :: Ptr
end type

type MAPL_Tiling
   integer :: IM
end type

type MAPL_LocStreamType
   type(MAPL_Tiling), pointer  :: Tiling(:)
end type

contains

  subroutine MAPL_LocStreamGet (GRIDIM)
    type(MAPL_LocStream) :: LocStream
    integer, pointer     :: GRIDIM(:)

    GRIDIM => LocStream%Ptr%Tiling(:)%IM

  end subroutine

end


^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug fortran/59093] Segfault in gfc_trans_pointer_assignment
  2013-11-12 20:16 [Bug fortran/59093] New: internal compiler error: Segmentation fault compiling F90 File matthew.thompson at nasa dot gov
                   ` (2 preceding siblings ...)
  2014-01-04 17:17 ` janus at gcc dot gnu.org
@ 2014-03-19 19:04 ` matthew.thompson at nasa dot gov
  2014-03-26 18:29 ` matthew.thompson at nasa dot gov
                   ` (3 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: matthew.thompson at nasa dot gov @ 2014-03-19 19:04 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59093

--- Comment #4 from Matt Thompson <matthew.thompson at nasa dot gov> ---
Any progress on this bug in the latest versions of the compiler?


^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug fortran/59093] Segfault in gfc_trans_pointer_assignment
  2013-11-12 20:16 [Bug fortran/59093] New: internal compiler error: Segmentation fault compiling F90 File matthew.thompson at nasa dot gov
                   ` (3 preceding siblings ...)
  2014-03-19 19:04 ` [Bug fortran/59093] Segfault in gfc_trans_pointer_assignment matthew.thompson at nasa dot gov
@ 2014-03-26 18:29 ` matthew.thompson at nasa dot gov
  2014-06-11 11:50 ` matthew.thompson at nasa dot gov
                   ` (2 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: matthew.thompson at nasa dot gov @ 2014-03-26 18:29 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59093

--- Comment #5 from Matt Thompson <matthew.thompson at nasa dot gov> ---
An additional thought. You have a reduced test case which dies in Comment #3
(which fails for gfortran 4.9). However, you can make something similar which
succeeds:
****
program main

implicit none

type :: MAPL_LocStream
  type(MAPL_LocStreamType), pointer :: Ptr
end type

type MAPL_Tiling
   integer :: IM
end type

type MAPL_LocStreamType
   type(MAPL_Tiling), pointer  :: Tiling(:)
end type

contains

  subroutine MAPL_LocStreamGet (GRIDIM)
    type(MAPL_LocStream) :: LocStream
    integer, pointer     :: GRIDIM(:)

    integer, pointer     :: LP(:)

    LP => LocStream%Ptr%Tiling(:)%IM

  end subroutine

end program main
****

So, it's not that gfortran/gcc can't do the pointer, it's that it can't do it
to a pointer passed through the interface. Note that this still fails:

****
program main

implicit none

type :: MAPL_LocStream
  type(MAPL_LocStreamType), pointer :: Ptr
end type

type MAPL_Tiling
   integer :: IM
end type

type MAPL_LocStreamType
   type(MAPL_Tiling), pointer  :: Tiling(:)
end type

contains

  subroutine MAPL_LocStreamGet (GRIDIM)
    type(MAPL_LocStream) :: LocStream
    integer, pointer     :: GRIDIM(:)

    integer, pointer     :: LP(:)

    LP => LocStream%Ptr%Tiling(:)%IM
    GRIDIM => LP

  end subroutine

end program main
****
with:
$ gfortran --version
GNU Fortran (GCC) 4.9.0 20140105 (experimental)
Copyright (C) 2014 Free Software Foundation, Inc.

GNU Fortran comes with NO WARRANTY, to the extent permitted by law.
You may redistribute copies of GNU Fortran
under the terms of the GNU General Public License.
For more information about these matters, see the file named COPYING

$ gfortran test.fix.F90
test.fix.F90: In function ‘mapl_locstreamget’:
test.fix.F90:26:0: internal compiler error: Segmentation fault
     GRIDIM => LP
 ^
0x50ff58 ???
    ../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.
>From gcc-bugs-return-447579-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Mar 26 18:32:30 2014
Return-Path: <gcc-bugs-return-447579-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 31823 invoked by alias); 26 Mar 2014 18:32:30 -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 31790 invoked by uid 48); 26 Mar 2014 18:32:27 -0000
From: "david.abdurachmanov at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/60675] [4.9 regression][aarch64] internal compiler error: Max. number of generated reload insns per insn is achieved (90)
Date: Wed, 26 Mar 2014 18:32:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 4.9.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: david.abdurachmanov at gmail dot com
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:
Message-ID: <bug-60675-4-LyrjL8HrIb@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-60675-4@http.gcc.gnu.org/bugzilla/>
References: <bug-60675-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: 2014-03/txt/msg02448.txt.bz2
Content-length: 166

http://gcc.gnu.org/bugzilla/show_bug.cgi?id`675

--- Comment #3 from David Abdurachmanov <david.abdurachmanov at gmail dot com> ---
With `-mno-lra` compiles fine.


^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug fortran/59093] Segfault in gfc_trans_pointer_assignment
  2013-11-12 20:16 [Bug fortran/59093] New: internal compiler error: Segmentation fault compiling F90 File matthew.thompson at nasa dot gov
                   ` (4 preceding siblings ...)
  2014-03-26 18:29 ` matthew.thompson at nasa dot gov
@ 2014-06-11 11:50 ` matthew.thompson at nasa dot gov
  2015-01-25 21:30 ` anlauf at gmx dot de
  2015-05-21 16:12 ` matthew.thompson at nasa dot gov
  7 siblings, 0 replies; 9+ messages in thread
From: matthew.thompson at nasa dot gov @ 2014-06-11 11:50 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=59093

--- Comment #6 from Matt Thompson <matthew.thompson at nasa dot gov> ---
Has there been any work/success on this bug? It's still affecting our ability
to compile this code with gfortran.


^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug fortran/59093] Segfault in gfc_trans_pointer_assignment
  2013-11-12 20:16 [Bug fortran/59093] New: internal compiler error: Segmentation fault compiling F90 File matthew.thompson at nasa dot gov
                   ` (5 preceding siblings ...)
  2014-06-11 11:50 ` matthew.thompson at nasa dot gov
@ 2015-01-25 21:30 ` anlauf at gmx dot de
  2015-05-21 16:12 ` matthew.thompson at nasa dot gov
  7 siblings, 0 replies; 9+ messages in thread
From: anlauf at gmx dot de @ 2015-01-25 21:30 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=59093

Harald Anlauf <anlauf at gmx dot de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |anlauf at gmx dot de

--- Comment #8 from Harald Anlauf <anlauf at gmx dot de> ---
(In reply to Matt Thompson from comment #7)
> I'm not sure if anyone is even looking at this bug anymore, but I wanted to
> say it is still present in gcc 4.9.1. Using the test from janus@gcc.gnu.org:

Still present in gcc 5 trunk rev. 220062.


^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug fortran/59093] Segfault in gfc_trans_pointer_assignment
  2013-11-12 20:16 [Bug fortran/59093] New: internal compiler error: Segmentation fault compiling F90 File matthew.thompson at nasa dot gov
                   ` (6 preceding siblings ...)
  2015-01-25 21:30 ` anlauf at gmx dot de
@ 2015-05-21 16:12 ` matthew.thompson at nasa dot gov
  7 siblings, 0 replies; 9+ messages in thread
From: matthew.thompson at nasa dot gov @ 2015-05-21 16:12 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=59093

Matt Thompson <matthew.thompson at nasa dot gov> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Version|4.9.1                       |5.1.0

--- Comment #9 from Matt Thompson <matthew.thompson at nasa dot gov> ---
This bug is still present in 5.1.0 stable. Using the code in Comment #3, I see:

(350) $ gfortran --version
GNU Fortran (GCC) 5.1.0
Copyright (C) 2015 Free Software Foundation, Inc.

GNU Fortran comes with NO WARRANTY, to the extent permitted by law.
You may redistribute copies of GNU Fortran
under the terms of the GNU General Public License.
For more information about these matters, see the file named COPYING

(351) $ gfortran test.F90
test.F90:23:0:

     GRIDIM => LocStream%Ptr%Tiling(:)%IM
 1
internal compiler error: Segmentation fault
0xa7efff crash_signal
        ../../gcc-5.1.0/gcc/toplev.c:383
0x6ff34a gfc_trans_pointer_assignment(gfc_expr*, gfc_expr*)
        ../../gcc-5.1.0/gcc/fortran/trans-expr.c:7612
0x6cb196 trans_code
        ../../gcc-5.1.0/gcc/fortran/trans.c:1682
0x6eab63 gfc_generate_function_code(gfc_namespace*)
        ../../gcc-5.1.0/gcc/fortran/trans-decl.c:5841
0x6ea9c7 gfc_generate_contained_functions
        ../../gcc-5.1.0/gcc/fortran/trans-decl.c:4979
0x6ea9c7 gfc_generate_function_code(gfc_namespace*)
        ../../gcc-5.1.0/gcc/fortran/trans-decl.c:5765
0x688e60 translate_all_program_units
        ../../gcc-5.1.0/gcc/fortran/parse.c:5341
0x688e60 gfc_parse_file()
        ../../gcc-5.1.0/gcc/fortran/parse.c:5538
0x6c8315 gfc_be_parse_file
        ../../gcc-5.1.0/gcc/fortran/f95-lang.c:228
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.


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2015-05-21 16:12 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-11-12 20:16 [Bug fortran/59093] New: internal compiler error: Segmentation fault compiling F90 File matthew.thompson at nasa dot gov
2013-11-12 20:58 ` [Bug fortran/59093] " dominiq at lps dot ens.fr
2013-11-12 21:13 ` dominiq at lps dot ens.fr
2014-01-04 17:17 ` janus at gcc dot gnu.org
2014-03-19 19:04 ` [Bug fortran/59093] Segfault in gfc_trans_pointer_assignment matthew.thompson at nasa dot gov
2014-03-26 18:29 ` matthew.thompson at nasa dot gov
2014-06-11 11:50 ` matthew.thompson at nasa dot gov
2015-01-25 21:30 ` anlauf at gmx dot de
2015-05-21 16:12 ` matthew.thompson at nasa dot gov

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).