public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/30779]  New: incomplete file triggers ICE
@ 2007-02-12 19:14 jv244 at cam dot ac dot uk
  2007-02-12 19:30 ` [Bug fortran/30779] " tkoenig at gcc dot gnu dot org
                   ` (11 more replies)
  0 siblings, 12 replies; 13+ messages in thread
From: jv244 at cam dot ac dot uk @ 2007-02-12 19:14 UTC (permalink / raw)
  To: gcc-bugs

trying to find a testcase for what is currently an issue in PR29975 I ran into
this:

vondele@pcihopt1:/scratch/vondele/clean/cp2k/obj/Linux-x86-64-gfortran/sdbg>
gfortran t.f90
t.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.
vondele@pcihopt1:/scratch/vondele/clean/cp2k/obj/Linux-x86-64-gfortran/sdbg>
cat t.f90
MODULE M1
 INTEGER :: I
END MODULE M1

USE M1,                    ONLY: I,&


-- 
           Summary: incomplete file triggers ICE
           Product: gcc
           Version: 4.3.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: jv244 at cam dot ac dot uk


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


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

* [Bug fortran/30779] incomplete file triggers ICE
  2007-02-12 19:14 [Bug fortran/30779] New: incomplete file triggers ICE jv244 at cam dot ac dot uk
@ 2007-02-12 19:30 ` tkoenig at gcc dot gnu dot org
  2007-02-12 20:12 ` jv244 at cam dot ac dot uk
                   ` (10 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: tkoenig at gcc dot gnu dot org @ 2007-02-12 19:30 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from tkoenig at gcc dot gnu dot org  2007-02-12 19:29 -------
Confirmed.

Backtrace:

(gdb) r t.f90
Starting program: /home/ig25/libexec/gcc/i686-pc-linux-gnu/4.3.0/f951 t.f90
Failed to read a valid object file image from memory.
t.f90:1:

cat t.f90
1
Error: Unclassifiable statement at (1)

Program received signal SIGSEGV, Segmentation fault.
0x0809a6d7 in gfc_next_char_literal (in_string=0)
    at /home/ig25/gcc/trunk/gcc/fortran/scanner.c:711
711           if (gfc_current_locus.lb->linenum == continue_line + 1)


-- 

tkoenig at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |tkoenig at gcc dot gnu dot
                   |                            |org
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|0                           |1
           Keywords|                            |error-recovery, ice-on-
                   |                            |invalid-code
   Last reconfirmed|0000-00-00 00:00:00         |2007-02-12 19:29:56
               date|                            |


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


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

* [Bug fortran/30779] incomplete file triggers ICE
  2007-02-12 19:14 [Bug fortran/30779] New: incomplete file triggers ICE jv244 at cam dot ac dot uk
  2007-02-12 19:30 ` [Bug fortran/30779] " tkoenig at gcc dot gnu dot org
@ 2007-02-12 20:12 ` jv244 at cam dot ac dot uk
  2007-02-13 21:00 ` pault at gcc dot gnu dot org
                   ` (9 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: jv244 at cam dot ac dot uk @ 2007-02-12 20:12 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from jv244 at cam dot ac dot uk  2007-02-12 20:12 -------
(In reply to comment #1)
> Confirmed.
> 
> Backtrace:
> 
> (gdb) r t.f90
> Starting program: /home/ig25/libexec/gcc/i686-pc-linux-gnu/4.3.0/f951 t.f90
> Failed to read a valid object file image from memory.
> t.f90:1:
> 
> cat t.f90
> 1
> Error: Unclassifiable statement at (1)
> 
> Program received signal SIGSEGV, Segmentation fault.
> 0x0809a6d7 in gfc_next_char_literal (in_string=0)
>     at /home/ig25/gcc/trunk/gcc/fortran/scanner.c:711
> 711           if (gfc_current_locus.lb->linenum == continue_line + 1)
> 
looks like you discovered an independent bug, in my case the 'cat t.f90' wasn't
part of the program (but it is the command line that wraps) and in my case
there is no error message.


-- 


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


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

* [Bug fortran/30779] incomplete file triggers ICE
  2007-02-12 19:14 [Bug fortran/30779] New: incomplete file triggers ICE jv244 at cam dot ac dot uk
  2007-02-12 19:30 ` [Bug fortran/30779] " tkoenig at gcc dot gnu dot org
  2007-02-12 20:12 ` jv244 at cam dot ac dot uk
@ 2007-02-13 21:00 ` pault at gcc dot gnu dot org
  2007-02-14  0:43 ` jvdelisle at gcc dot gnu dot org
                   ` (8 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: pault at gcc dot gnu dot org @ 2007-02-13 21:00 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from pault at gcc dot gnu dot org  2007-02-13 21:00 -------
Jerry is our expert on this side of things.  Although he has said that he is in
temporary hiding from gfortran, I have CC'd him:)

Paul


-- 

pault at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |pault at gcc dot gnu dot org


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


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

* [Bug fortran/30779] incomplete file triggers ICE
  2007-02-12 19:14 [Bug fortran/30779] New: incomplete file triggers ICE jv244 at cam dot ac dot uk
                   ` (2 preceding siblings ...)
  2007-02-13 21:00 ` pault at gcc dot gnu dot org
@ 2007-02-14  0:43 ` jvdelisle at gcc dot gnu dot org
  2007-02-14 20:31 ` jvdelisle at gcc dot gnu dot org
                   ` (7 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: jvdelisle at gcc dot gnu dot org @ 2007-02-14  0:43 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from jvdelisle at gcc dot gnu dot org  2007-02-14 00:43 -------
I'll give it a go.  Just be patient please. :)


-- 

jvdelisle at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|unassigned at gcc dot gnu   |jvdelisle at gcc dot gnu dot
                   |dot org                     |org
             Status|NEW                         |ASSIGNED
   Last reconfirmed|2007-02-12 19:29:56         |2007-02-14 00:43:31
               date|                            |


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


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

* [Bug fortran/30779] incomplete file triggers ICE
  2007-02-12 19:14 [Bug fortran/30779] New: incomplete file triggers ICE jv244 at cam dot ac dot uk
                   ` (3 preceding siblings ...)
  2007-02-14  0:43 ` jvdelisle at gcc dot gnu dot org
@ 2007-02-14 20:31 ` jvdelisle at gcc dot gnu dot org
  2007-02-14 20:54 ` paulthomas2 at wanadoo dot fr
                   ` (6 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: jvdelisle at gcc dot gnu dot org @ 2007-02-14 20:31 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #5 from jvdelisle at gcc dot gnu dot org  2007-02-14 20:31 -------
The patch is straight forward.  Need to check for end of file after
advance_line in scanner.c in a couple of places.  I just need to finish testing
and package the  submit.  Maybe tonight.


-- 


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


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

* [Bug fortran/30779] incomplete file triggers ICE
  2007-02-12 19:14 [Bug fortran/30779] New: incomplete file triggers ICE jv244 at cam dot ac dot uk
                   ` (4 preceding siblings ...)
  2007-02-14 20:31 ` jvdelisle at gcc dot gnu dot org
@ 2007-02-14 20:54 ` paulthomas2 at wanadoo dot fr
  2007-02-15  6:25 ` patchapp at dberlin dot org
                   ` (5 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: paulthomas2 at wanadoo dot fr @ 2007-02-14 20:54 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #6 from paulthomas2 at wanadoo dot fr  2007-02-14 20:54 -------
Subject: Re:  incomplete file triggers ICE

jvdelisle at gcc dot gnu dot org wrote:
> ------- Comment #5 from jvdelisle at gcc dot gnu dot org  2007-02-14 20:31 -------
> The patch is straight forward.  Need to check for end of file after
> advance_line in scanner.c in a couple of places.  I just need to finish testing
> and package the  submit.  Maybe tonight.
>
>
>   
Good-oh! I knew that you would go straight for it.

Paul


-- 


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


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

* [Bug fortran/30779] incomplete file triggers ICE
  2007-02-12 19:14 [Bug fortran/30779] New: incomplete file triggers ICE jv244 at cam dot ac dot uk
                   ` (5 preceding siblings ...)
  2007-02-14 20:54 ` paulthomas2 at wanadoo dot fr
@ 2007-02-15  6:25 ` patchapp at dberlin dot org
  2007-02-15  6:48 ` jvdelisle at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: patchapp at dberlin dot org @ 2007-02-15  6:25 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #7 from patchapp at dberlin dot org  2007-02-15 06:25 -------
Subject: Bug number PR30779

A patch for this bug has been added to the patch tracker.
The mailing list url for the patch is
http://gcc.gnu.org/ml/gcc-patches/2007-02/msg01321.html


-- 


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


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

* [Bug fortran/30779] incomplete file triggers ICE
  2007-02-12 19:14 [Bug fortran/30779] New: incomplete file triggers ICE jv244 at cam dot ac dot uk
                   ` (6 preceding siblings ...)
  2007-02-15  6:25 ` patchapp at dberlin dot org
@ 2007-02-15  6:48 ` jvdelisle at gcc dot gnu dot org
  2007-02-15  6:52 ` jvdelisle at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: jvdelisle at gcc dot gnu dot org @ 2007-02-15  6:48 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #8 from jvdelisle at gcc dot gnu dot org  2007-02-15 06:48 -------
Subject: Bug 30779

Author: jvdelisle
Date: Thu Feb 15 06:48:09 2007
New Revision: 121982

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=121982
Log:
2007-02-14  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

        PR fortran/30779
        * scanner.c (gfc_next_char_literal): Add check for end of file after
        call to advance_line.

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


-- 


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


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

* [Bug fortran/30779] incomplete file triggers ICE
  2007-02-12 19:14 [Bug fortran/30779] New: incomplete file triggers ICE jv244 at cam dot ac dot uk
                   ` (7 preceding siblings ...)
  2007-02-15  6:48 ` jvdelisle at gcc dot gnu dot org
@ 2007-02-15  6:52 ` jvdelisle at gcc dot gnu dot org
  2007-02-15  7:04 ` [Bug fortran/30779] [4.1, 4.2 only] " jvdelisle at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: jvdelisle at gcc dot gnu dot org @ 2007-02-15  6:52 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #9 from jvdelisle at gcc dot gnu dot org  2007-02-15 06:51 -------
Subject: Bug 30779

Author: jvdelisle
Date: Thu Feb 15 06:51:42 2007
New Revision: 121983

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=121983
Log:
2007-02-15  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

        PR fortran/30779
        * gfortran.dg/error_recovery_3.f90: New test.

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


-- 


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


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

* [Bug fortran/30779] [4.1, 4.2 only] incomplete file triggers ICE
  2007-02-12 19:14 [Bug fortran/30779] New: incomplete file triggers ICE jv244 at cam dot ac dot uk
                   ` (8 preceding siblings ...)
  2007-02-15  6:52 ` jvdelisle at gcc dot gnu dot org
@ 2007-02-15  7:04 ` jvdelisle at gcc dot gnu dot org
  2007-02-16 23:42 ` jvdelisle at gcc dot gnu dot org
  2007-02-16 23:52 ` jvdelisle at gcc dot gnu dot org
  11 siblings, 0 replies; 13+ messages in thread
From: jvdelisle at gcc dot gnu dot org @ 2007-02-15  7:04 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #10 from jvdelisle at gcc dot gnu dot org  2007-02-15 07:04 -------
Fixed on 4.3.


-- 

jvdelisle at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|incomplete file triggers ICE|[4.1, 4.2 only] incomplete
                   |                            |file triggers ICE
   Target Milestone|---                         |4.1.3


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


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

* [Bug fortran/30779] [4.1, 4.2 only] incomplete file triggers ICE
  2007-02-12 19:14 [Bug fortran/30779] New: incomplete file triggers ICE jv244 at cam dot ac dot uk
                   ` (9 preceding siblings ...)
  2007-02-15  7:04 ` [Bug fortran/30779] [4.1, 4.2 only] " jvdelisle at gcc dot gnu dot org
@ 2007-02-16 23:42 ` jvdelisle at gcc dot gnu dot org
  2007-02-16 23:52 ` jvdelisle at gcc dot gnu dot org
  11 siblings, 0 replies; 13+ messages in thread
From: jvdelisle at gcc dot gnu dot org @ 2007-02-16 23:42 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #11 from jvdelisle at gcc dot gnu dot org  2007-02-16 23:42 -------
Subject: Bug 30779

Author: jvdelisle
Date: Fri Feb 16 23:42:11 2007
New Revision: 122059

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=122059
Log:
2007-02-16  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

        PR fortran/30779
        * scanner.c (gfc_next_char_literal): Add check for end of file after
        call to advance_line.

2007-02-16  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

        PR fortran/30779
        * gfortran.dg/error_recovery_3.f90: New test.


Added:
    branches/gcc-4_2-branch/gcc/testsuite/gfortran.dg/error_recovery_3.f90
Modified:
    branches/gcc-4_2-branch/gcc/fortran/ChangeLog
    branches/gcc-4_2-branch/gcc/fortran/scanner.c
    branches/gcc-4_2-branch/gcc/testsuite/ChangeLog


-- 


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


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

* [Bug fortran/30779] [4.1, 4.2 only] incomplete file triggers ICE
  2007-02-12 19:14 [Bug fortran/30779] New: incomplete file triggers ICE jv244 at cam dot ac dot uk
                   ` (10 preceding siblings ...)
  2007-02-16 23:42 ` jvdelisle at gcc dot gnu dot org
@ 2007-02-16 23:52 ` jvdelisle at gcc dot gnu dot org
  11 siblings, 0 replies; 13+ messages in thread
From: jvdelisle at gcc dot gnu dot org @ 2007-02-16 23:52 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #12 from jvdelisle at gcc dot gnu dot org  2007-02-16 23:52 -------
No need to go to 4.1.  This is an ICE on invalid.


-- 

jvdelisle at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|                            |FIXED
   Target Milestone|4.1.3                       |4.2.0


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


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

end of thread, other threads:[~2007-02-16 23:52 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-02-12 19:14 [Bug fortran/30779] New: incomplete file triggers ICE jv244 at cam dot ac dot uk
2007-02-12 19:30 ` [Bug fortran/30779] " tkoenig at gcc dot gnu dot org
2007-02-12 20:12 ` jv244 at cam dot ac dot uk
2007-02-13 21:00 ` pault at gcc dot gnu dot org
2007-02-14  0:43 ` jvdelisle at gcc dot gnu dot org
2007-02-14 20:31 ` jvdelisle at gcc dot gnu dot org
2007-02-14 20:54 ` paulthomas2 at wanadoo dot fr
2007-02-15  6:25 ` patchapp at dberlin dot org
2007-02-15  6:48 ` jvdelisle at gcc dot gnu dot org
2007-02-15  6:52 ` jvdelisle at gcc dot gnu dot org
2007-02-15  7:04 ` [Bug fortran/30779] [4.1, 4.2 only] " jvdelisle at gcc dot gnu dot org
2007-02-16 23:42 ` jvdelisle at gcc dot gnu dot org
2007-02-16 23:52 ` jvdelisle 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).