public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/28971]  New: ICE: Segmentation fault on valid code
@ 2006-09-07  9:29 enok at lysator dot liu dot se
  2006-09-07  9:31 ` [Bug fortran/28971] " enok at lysator dot liu dot se
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: enok at lysator dot liu dot se @ 2006-09-07  9:29 UTC (permalink / raw)
  To: gcc-bugs

When compiling a small file with standard flags the compiler crashes.
This seems to be related to a WHERE construct.
The code is accepted without warnings by e.g. Intel fortran compiler and
others.
The version of gfortran is 4.2.0 20060819


-- 
           Summary: ICE: Segmentation fault on valid code
           Product: gcc
           Version: 4.2.0
            Status: UNCONFIRMED
          Severity: critical
          Priority: P3
         Component: fortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: enok at lysator dot liu dot se
 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=28971


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

* [Bug fortran/28971] ICE: Segmentation fault on valid code
  2006-09-07  9:29 [Bug fortran/28971] New: ICE: Segmentation fault on valid code enok at lysator dot liu dot se
@ 2006-09-07  9:31 ` enok at lysator dot liu dot se
  2006-09-07 16:16 ` paul dot thomas at jet dot uk
                   ` (5 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: enok at lysator dot liu dot se @ 2006-09-07  9:31 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from enok at lysator dot liu dot se  2006-09-07 09:31 -------
Created an attachment (id=12201)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=12201&action=view)
Valid code snippet that causes ICE

gfortran -c tst.f90
tst.f90:0: 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=28971


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

* [Bug fortran/28971] ICE: Segmentation fault on valid code
  2006-09-07  9:29 [Bug fortran/28971] New: ICE: Segmentation fault on valid code enok at lysator dot liu dot se
  2006-09-07  9:31 ` [Bug fortran/28971] " enok at lysator dot liu dot se
@ 2006-09-07 16:16 ` paul dot thomas at jet dot uk
  2006-09-07 16:59 ` kargl at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: paul dot thomas at jet dot uk @ 2006-09-07 16:16 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from paul dot thomas at jet dot uk  2006-09-07 16:16 -------
Oskar,

This works for me with gcc-4.2.0 20060905; I know of nothing that would have
effected this change so I am at a bit of a loss.  I hung a main program on it
and checked the output too.

Paul


-- 


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


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

* [Bug fortran/28971] ICE: Segmentation fault on valid code
  2006-09-07  9:29 [Bug fortran/28971] New: ICE: Segmentation fault on valid code enok at lysator dot liu dot se
  2006-09-07  9:31 ` [Bug fortran/28971] " enok at lysator dot liu dot se
  2006-09-07 16:16 ` paul dot thomas at jet dot uk
@ 2006-09-07 16:59 ` kargl at gcc dot gnu dot org
  2006-09-12  4:54 ` pinskia at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: kargl at gcc dot gnu dot org @ 2006-09-07 16:59 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from kargl at gcc dot gnu dot org  2006-09-07 16:58 -------
Paul, the code fails with

troutmask:kargl[205] gfc --version
GNU Fortran 95 (GCC) 4.2.0 20060711 (experimental)
Copyright (C) 2006 Free Software Foundation, Inc.

but works with

troutmask:sgk[248] gfc4x --version
GNU Fortran 95 (GCC) 4.2.0 20060906 (experimental)
Copyright (C) 2006 Free Software Foundation, Inc.

On a quick scan of ChangeLog, I did not see an entry that jumps out that
fixed/caused the problem.

Oskar,

Can you update to a newer version and verify the code works?


-- 

kargl at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |WAITING


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


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

* [Bug fortran/28971] ICE: Segmentation fault on valid code
  2006-09-07  9:29 [Bug fortran/28971] New: ICE: Segmentation fault on valid code enok at lysator dot liu dot se
                   ` (2 preceding siblings ...)
  2006-09-07 16:59 ` kargl at gcc dot gnu dot org
@ 2006-09-12  4:54 ` pinskia at gcc dot gnu dot org
  2006-09-12  8:59 ` pault at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-09-12  4:54 UTC (permalink / raw)
  To: gcc-bugs



-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|critical                    |normal


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


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

* [Bug fortran/28971] ICE: Segmentation fault on valid code
  2006-09-07  9:29 [Bug fortran/28971] New: ICE: Segmentation fault on valid code enok at lysator dot liu dot se
                   ` (3 preceding siblings ...)
  2006-09-12  4:54 ` pinskia at gcc dot gnu dot org
@ 2006-09-12  8:59 ` pault at gcc dot gnu dot org
  2006-09-12  9:15 ` enok at lysator dot liu dot se
  2006-09-12 19:39 ` pault at gcc dot gnu dot org
  6 siblings, 0 replies; 8+ messages in thread
From: pault at gcc dot gnu dot org @ 2006-09-12  8:59 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from pault at gcc dot gnu dot org  2006-09-12 08:59 -------
Oskar,

We believe that this bug is "fixed"; however, I will take you tst.f90 and put
it in the gfortran testsuite, since we do not know what moved to produce both
the regression and the "fix".

As I said to the list, we will be very grateful if you would submit any
problems that you might have in the future.

Paul Thomas


-- 

pault at gcc dot gnu dot org changed:

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


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


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

* [Bug fortran/28971] ICE: Segmentation fault on valid code
  2006-09-07  9:29 [Bug fortran/28971] New: ICE: Segmentation fault on valid code enok at lysator dot liu dot se
                   ` (4 preceding siblings ...)
  2006-09-12  8:59 ` pault at gcc dot gnu dot org
@ 2006-09-12  9:15 ` enok at lysator dot liu dot se
  2006-09-12 19:39 ` pault at gcc dot gnu dot org
  6 siblings, 0 replies; 8+ messages in thread
From: enok at lysator dot liu dot se @ 2006-09-12  9:15 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #5 from enok at lysator dot liu dot se  2006-09-12 09:15 -------
Subject: Re:  ICE: Segmentation fault on valid code

Yes that's fine with me.

I don't have access to the computer where I originally noticed the 
problem until the end of the week so I haven't been able to try any 
later snapshot version. I have compiled the latest trunk on a different 
machine (i686) and have verified that the testcase compiles without 
crash there. So it appears to be fixed.

Thanks for the response!
/Oskar

pault at gcc dot gnu dot org wrote:
> ------- Comment #4 from pault at gcc dot gnu dot org  2006-09-12 08:59 -------
> Oskar,
>
> We believe that this bug is "fixed"; however, I will take you tst.f90 and put
> it in the gfortran testsuite, since we do not know what moved to produce both
> the regression and the "fix".
>
> As I said to the list, we will be very grateful if you would submit any
> problems that you might have in the future.
>
> Paul Thomas
>
>
>   


-- 


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


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

* [Bug fortran/28971] ICE: Segmentation fault on valid code
  2006-09-07  9:29 [Bug fortran/28971] New: ICE: Segmentation fault on valid code enok at lysator dot liu dot se
                   ` (5 preceding siblings ...)
  2006-09-12  9:15 ` enok at lysator dot liu dot se
@ 2006-09-12 19:39 ` pault at gcc dot gnu dot org
  6 siblings, 0 replies; 8+ messages in thread
From: pault at gcc dot gnu dot org @ 2006-09-12 19:39 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #6 from pault at gcc dot gnu dot org  2006-09-12 19:38 -------
Subject: Bug 28971

Author: pault
Date: Tue Sep 12 19:38:48 2006
New Revision: 116904

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

        PR fortran/28971
        gfortran.dg/pr28971.f90: New test to act as a backstop in case
        this undiagnosed regression reappears.

Added:
    trunk/gcc/testsuite/gfortran.dg/pr28971.f90
Modified:
    trunk/gcc/testsuite/ChangeLog


-- 


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


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

end of thread, other threads:[~2006-09-12 19:39 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-09-07  9:29 [Bug fortran/28971] New: ICE: Segmentation fault on valid code enok at lysator dot liu dot se
2006-09-07  9:31 ` [Bug fortran/28971] " enok at lysator dot liu dot se
2006-09-07 16:16 ` paul dot thomas at jet dot uk
2006-09-07 16:59 ` kargl at gcc dot gnu dot org
2006-09-12  4:54 ` pinskia at gcc dot gnu dot org
2006-09-12  8:59 ` pault at gcc dot gnu dot org
2006-09-12  9:15 ` enok at lysator dot liu dot se
2006-09-12 19:39 ` 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).