public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/26409]  New: [gfortran, 4.2.0 regression] ICE (segfault) on valid code
@ 2006-02-22  0:18 martin at mpa-garching dot mpg dot de
  2006-02-22  0:37 ` [Bug fortran/26409] [4.2 regression] ICE on Assumed shape nested subroutine pinskia at gcc dot gnu dot org
                   ` (9 more replies)
  0 siblings, 10 replies; 11+ messages in thread
From: martin at mpa-garching dot mpg dot de @ 2006-02-22  0:18 UTC (permalink / raw)
  To: gcc-bugs

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 1804 bytes --]

Mainline gfortran segfaults when compiling the code below:

module foo
contains

subroutine bar
contains
  subroutine baz(a)
    integer, dimension(:) :: a
  end subroutine
end subroutine

end module foo

martin@linux:~/tmp> gfortran -v -c test.f90
Using built-in specs.
Target: x86_64-unknown-linux-gnu
Configured with: /home/martin/software/gcc/configure
--with-gmp=/home/martin/software/mygmp --with-mpfr=/home/martin/software/mympfr
--prefix=/home/martin/software/ugcc --enable-languages=c++,fortran
Thread model: posix
gcc version 4.2.0 20060221 (experimental)
 /home/martin/software/ugcc/libexec/gcc/x86_64-unknown-linux-gnu/4.2.0/f951
test.f90 -quiet -dumpbase test.f90 -mtune=generic -auxbase test -version -I
/home/martin/software/ugcc/lib/gcc/x86_64-unknown-linux-gnu/4.2.0/finclude -o
/tmp/ccVUSMlJ.s
GNU F95 version 4.2.0 20060221 (experimental) (x86_64-unknown-linux-gnu)
        compiled by GNU C version 4.2.0 20060221 (experimental).
GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096
test.f90: In function ‘bar’:
test.f90:6: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.


-- 
           Summary: [gfortran, 4.2.0 regression] ICE (segfault) on valid
                    code
           Product: gcc
           Version: 4.2.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: martin at mpa-garching dot mpg dot de
 GCC build triplet: x86_64-unknown-linux-gnu
  GCC host triplet: x86_64-unknown-linux-gnu
GCC target triplet: x86_64-unknown-linux-gnu


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


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

* [Bug fortran/26409] [4.2 regression] ICE on Assumed shape nested subroutine
  2006-02-22  0:18 [Bug fortran/26409] New: [gfortran, 4.2.0 regression] ICE (segfault) on valid code martin at mpa-garching dot mpg dot de
@ 2006-02-22  0:37 ` pinskia at gcc dot gnu dot org
  2006-02-22  0:38 ` pinskia at gcc dot gnu dot org
                   ` (8 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-02-22  0:37 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from pinskia at gcc dot gnu dot org  2006-02-22 00:37 -------
Confirmed.
It worked with "4.2.0 20060215".


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |pinskia at gcc dot gnu dot
                   |                            |org
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|0                           |1
  GCC build triplet|x86_64-unknown-linux-gnu    |
   GCC host triplet|x86_64-unknown-linux-gnu    |
 GCC target triplet|x86_64-unknown-linux-gnu    |
   Last reconfirmed|0000-00-00 00:00:00         |2006-02-22 00:37:40
               date|                            |
            Summary|[gfortran, 4.2.0 regression]|[4.2 regression] ICE on
                   |ICE (segfault) on valid code|Assumed shape nested
                   |                            |subroutine
   Target Milestone|---                         |4.2.0


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


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

* [Bug fortran/26409] [4.2 regression] ICE on Assumed shape nested subroutine
  2006-02-22  0:18 [Bug fortran/26409] New: [gfortran, 4.2.0 regression] ICE (segfault) on valid code martin at mpa-garching dot mpg dot de
  2006-02-22  0:37 ` [Bug fortran/26409] [4.2 regression] ICE on Assumed shape nested subroutine pinskia at gcc dot gnu dot org
@ 2006-02-22  0:38 ` pinskia at gcc dot gnu dot org
  2006-02-23  0:06 ` pault at gcc dot gnu dot org
                   ` (7 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-02-22  0:38 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from pinskia at gcc dot gnu dot org  2006-02-22 00:38 -------
Backtrace:
#0  gfc_get_nodesc_array_type (etype=0x42c10460, as=0x42b05940, packed=2) at
/Users/pinskia/src/gcc/local/gcc/gcc/fortran/trans-types.c:1015
#1  0x000910a8 in gfc_get_function_type (sym=0x0) at
/Users/pinskia/src/gcc/local/gcc/gcc/fortran/trans-types.c:1710
#2  0x000910a8 in gfc_get_function_type (sym=0x0) at
/Users/pinskia/src/gcc/local/gcc/gcc/fortran/trans-types.c:1710
#3  0x000731d8 in build_function_decl (sym=0x42b05940) at
/Users/pinskia/src/gcc/local/gcc/gcc/fortran/trans-decl.c:1159
#4  0x00074694 in gfc_create_function_decl (ns=0xbffff6f4) at
/Users/pinskia/src/gcc/local/gcc/gcc/fortran/trans-decl.c:1723


-- 


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


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

* [Bug fortran/26409] [4.2 regression] ICE on Assumed shape nested subroutine
  2006-02-22  0:18 [Bug fortran/26409] New: [gfortran, 4.2.0 regression] ICE (segfault) on valid code martin at mpa-garching dot mpg dot de
  2006-02-22  0:37 ` [Bug fortran/26409] [4.2 regression] ICE on Assumed shape nested subroutine pinskia at gcc dot gnu dot org
  2006-02-22  0:38 ` pinskia at gcc dot gnu dot org
@ 2006-02-23  0:06 ` pault at gcc dot gnu dot org
  2006-02-23  6:27 ` pault at gcc dot gnu dot org
                   ` (6 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: pault at gcc dot gnu dot org @ 2006-02-23  0:06 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from pault at gcc dot gnu dot org  2006-02-23 00:06 -------
(In reply to comment #1)
> Confirmed.
> It worked with "4.2.0 20060215".
> 
It works with GNU Fortran 95 (GCC) 4.2.0 20060219 on FC3/Athlon

Paul


-- 


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


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

* [Bug fortran/26409] [4.2 regression] ICE on Assumed shape nested subroutine
  2006-02-22  0:18 [Bug fortran/26409] New: [gfortran, 4.2.0 regression] ICE (segfault) on valid code martin at mpa-garching dot mpg dot de
                   ` (2 preceding siblings ...)
  2006-02-23  0:06 ` pault at gcc dot gnu dot org
@ 2006-02-23  6:27 ` pault at gcc dot gnu dot org
  2006-02-23  9:01 ` martin at mpa-garching dot mpg dot de
                   ` (5 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: pault at gcc dot gnu dot org @ 2006-02-23  6:27 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from pault at gcc dot gnu dot org  2006-02-23 06:27 -------

and with "4.2.0 20060222".

Where's the bug, chaps?

Paul


-- 


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


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

* [Bug fortran/26409] [4.2 regression] ICE on Assumed shape nested subroutine
  2006-02-22  0:18 [Bug fortran/26409] New: [gfortran, 4.2.0 regression] ICE (segfault) on valid code martin at mpa-garching dot mpg dot de
                   ` (3 preceding siblings ...)
  2006-02-23  6:27 ` pault at gcc dot gnu dot org
@ 2006-02-23  9:01 ` martin at mpa-garching dot mpg dot de
  2006-02-23 14:11 ` eedelman at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: martin at mpa-garching dot mpg dot de @ 2006-02-23  9:01 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #5 from martin at mpa-garching dot mpg dot de  2006-02-23 09:01 -------
I still see it with version 4.2.0 20060222 :(
I guess it would really nice if "gfortran -v" would print the SVN revision
number...

~/tmp>gfortran -v -c bug.f90
Using built-in specs.
Target: i686-pc-linux-gnu
Configured with: /scratch/gcc/configure --quiet
--prefix=/afs/mpa/data/martin/ugcc --enable-languages=c++,fortran
--with-gmp=/usr/local/appl/gmp-4.1.4
Thread model: posix
gcc version 4.2.0 20060222 (experimental)
 /afs/mpa/data/martin/ugcc/libexec/gcc/i686-pc-linux-gnu/4.2.0/f951 bug.f90
-quiet -dumpbase bug.f90 -mtune=generic -auxbase bug -version -I
/afs/mpa/data/martin/ugcc/lib/gcc/i686-pc-linux-gnu/4.2.0/finclude -o
/tmp/ccqD1jWM.s
GNU F95 version 4.2.0 20060222 (experimental) (i686-pc-linux-gnu)
        compiled by GNU C version 4.2.0 20060222 (experimental).
GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096
bug.f90: In function 'bar':
bug.f90:6: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.


-- 


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


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

* [Bug fortran/26409] [4.2 regression] ICE on Assumed shape nested subroutine
  2006-02-22  0:18 [Bug fortran/26409] New: [gfortran, 4.2.0 regression] ICE (segfault) on valid code martin at mpa-garching dot mpg dot de
                   ` (4 preceding siblings ...)
  2006-02-23  9:01 ` martin at mpa-garching dot mpg dot de
@ 2006-02-23 14:11 ` eedelman at gcc dot gnu dot org
  2006-02-23 22:37 ` eedelman at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: eedelman at gcc dot gnu dot org @ 2006-02-23 14:11 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #6 from eedelman at gcc dot gnu dot org  2006-02-23 14:11 -------
For me, on Linux/x86, it works with revision 111200, but ICEs with 111300 and
111387.


-- 


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


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

* [Bug fortran/26409] [4.2 regression] ICE on Assumed shape nested subroutine
  2006-02-22  0:18 [Bug fortran/26409] New: [gfortran, 4.2.0 regression] ICE (segfault) on valid code martin at mpa-garching dot mpg dot de
                   ` (5 preceding siblings ...)
  2006-02-23 14:11 ` eedelman at gcc dot gnu dot org
@ 2006-02-23 22:37 ` eedelman at gcc dot gnu dot org
  2006-02-24 13:54 ` pault at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: eedelman at gcc dot gnu dot org @ 2006-02-23 22:37 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #7 from eedelman at gcc dot gnu dot org  2006-02-23 22:31 -------
A few binary search steps later: Works with revision 111270, fails with 111271.
 It seems to be related to the patch

2006-02-19  H.J. Lu  <hongjiu.lu@intel.com>

        * resolve.c (resolve_contained_functions): Call resolve_entries
        first.
        (resolve_types): Remove calls to resolve_entries and
        resolve_contained_functions.
        (gfc_resolve): Call resolve_contained_functions.


-- 


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


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

* [Bug fortran/26409] [4.2 regression] ICE on Assumed shape nested subroutine
  2006-02-22  0:18 [Bug fortran/26409] New: [gfortran, 4.2.0 regression] ICE (segfault) on valid code martin at mpa-garching dot mpg dot de
                   ` (6 preceding siblings ...)
  2006-02-23 22:37 ` eedelman at gcc dot gnu dot org
@ 2006-02-24 13:54 ` pault at gcc dot gnu dot org
  2006-02-24 14:15 ` pault at gcc dot gnu dot org
  2006-02-24 14:22 ` pault at gcc dot gnu dot org
  9 siblings, 0 replies; 11+ messages in thread
From: pault at gcc dot gnu dot org @ 2006-02-24 13:54 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #8 from pault at gcc dot gnu dot org  2006-02-24 13:15 -------
(In reply to comment #7)
> A few binary search steps later: Works with revision 111270, fails with 111271.
>  It seems to be related to the patch
> 
First, I am sorry to be a "doubting Thomas" - I finally succeeded in
reproducing the problem.

Second, I unpatched the above and find that this is indeed the problem.  I will
try to understand why but I will (i) Post this to the list and (ii) remove it
from mainline tonight.

Paul


-- 


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


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

* [Bug fortran/26409] [4.2 regression] ICE on Assumed shape nested subroutine
  2006-02-22  0:18 [Bug fortran/26409] New: [gfortran, 4.2.0 regression] ICE (segfault) on valid code martin at mpa-garching dot mpg dot de
                   ` (7 preceding siblings ...)
  2006-02-24 13:54 ` pault at gcc dot gnu dot org
@ 2006-02-24 14:15 ` pault at gcc dot gnu dot org
  2006-02-24 14:22 ` pault at gcc dot gnu dot org
  9 siblings, 0 replies; 11+ messages in thread
From: pault at gcc dot gnu dot org @ 2006-02-24 14:15 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #9 from pault at gcc dot gnu dot org  2006-02-24 13:54 -------
Subject: Bug 26409

Author: pault
Date: Fri Feb 24 13:54:06 2006
New Revision: 111417

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=111417
Log:
2006-02-24  Paul Thomas  <pault@gcc.gnu.org>

        PR fortran/26409
        * resolve.c (resolve_contained_functions, resolve_types,
        gfc_resolve): Revert patch of 2006-02-19.

Modified:
    trunk/gcc/fortran/ChangeLog
    trunk/gcc/fortran/resolve.c


-- 


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


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

* [Bug fortran/26409] [4.2 regression] ICE on Assumed shape nested subroutine
  2006-02-22  0:18 [Bug fortran/26409] New: [gfortran, 4.2.0 regression] ICE (segfault) on valid code martin at mpa-garching dot mpg dot de
                   ` (8 preceding siblings ...)
  2006-02-24 14:15 ` pault at gcc dot gnu dot org
@ 2006-02-24 14:22 ` pault at gcc dot gnu dot org
  9 siblings, 0 replies; 11+ messages in thread
From: pault at gcc dot gnu dot org @ 2006-02-24 14:22 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #10 from pault at gcc dot gnu dot org  2006-02-24 14:15 -------

First, I am sorry to be a "doubting Thomas" - I finally succeeded in
reproducing the problem.

Second, I unpatched the above and find that this is indeed the problem.  I will
try to understand why but:

(i) I have posted this to the list and;
(ii) removed it from mainline.

Paul


-- 

pault at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED


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


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

end of thread, other threads:[~2006-02-24 14:15 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-02-22  0:18 [Bug fortran/26409] New: [gfortran, 4.2.0 regression] ICE (segfault) on valid code martin at mpa-garching dot mpg dot de
2006-02-22  0:37 ` [Bug fortran/26409] [4.2 regression] ICE on Assumed shape nested subroutine pinskia at gcc dot gnu dot org
2006-02-22  0:38 ` pinskia at gcc dot gnu dot org
2006-02-23  0:06 ` pault at gcc dot gnu dot org
2006-02-23  6:27 ` pault at gcc dot gnu dot org
2006-02-23  9:01 ` martin at mpa-garching dot mpg dot de
2006-02-23 14:11 ` eedelman at gcc dot gnu dot org
2006-02-23 22:37 ` eedelman at gcc dot gnu dot org
2006-02-24 13:54 ` pault at gcc dot gnu dot org
2006-02-24 14:15 ` pault at gcc dot gnu dot org
2006-02-24 14:22 ` pault at gcc dot gnu dot org

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