Bug 163376 - gfortran internal compiler error: Segmentation fault
gfortran internal compiler error: Segmentation fault
Status: CLOSED RAWHIDE
Product: Fedora
Classification: Fedora
Component: gcc (Show other bugs)
4
All Linux
medium Severity medium
: ---
: ---
Assigned To: Jakub Jelinek
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2005-07-15 13:27 EDT by Orion Poplawski
Modified: 2007-11-30 17:11 EST (History)
1 user (show)

See Also:
Fixed In Version: 4.1.0-0.15
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2006-01-18 03:18:05 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)
Fortran source for the above compile (30.63 KB, text/plain)
2005-07-15 13:27 EDT, Orion Poplawski
no flags Details

  None (edit)
Description Orion Poplawski 2005-07-15 13:27:17 EDT
Description of problem:

This is trying to compile NCAR Graphics 4.4.1 with gfortran:

$ gfortran -c gesc.f
gesc.f: In function 'gesc':
gesc.f:237: internal compiler error: Segmentation fault


Version-Release number of selected component (if applicable):
gcc-gfortran-4.0.0-8


How reproducible:
everytime
Comment 1 Orion Poplawski 2005-07-15 13:27:17 EDT
Created attachment 116812 [details]
Fortran source for the above compile
Comment 2 Orion Poplawski 2005-07-15 13:31:41 EDT
This appears to be in the GCC bugzilla: 
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21406 , duplicate of:
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15966
Comment 3 Jakub Jelinek 2005-07-18 04:29:26 EDT
Then it is also fixed in gcc-gfortran-4.0.1-3 in rawhide.
Comment 4 Orion Poplawski 2005-07-18 18:36:28 EDT
Any chance we'll see an update that fixes this for FC4?
Comment 5 Orion Poplawski 2005-07-28 12:48:55 EDT
Well, not completely fixed.  With gcc-gfortran-4.0.1-4.fc4 I get:

$ gfortran -c gesc.f
gesc.f: In function 'gesc':
gesc.f:237: internal compiler error: in gfc_convert_array_to_string, at
fortran/trans-io.c:414
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://bugzilla.redhat.com/bugzilla> for instructions.

Perhaps not all of the fixes in pr15966 are in, or this is a new bug?  Don't see
the exact message in the gcc bugzilla, but obviously this is still related.
Comment 6 Jakub Jelinek 2005-08-21 14:26:36 EDT
Minimal testcase is:
subroutine foo(x,y)
integer x, z
character*(*) y(x)
read(y,500) z
return
500 format(I10)
end subroutine
Comment 7 Jerry 2005-09-03 03:44:42 EDT
The testcase given in Comment #6 does not give me an error with 4.1 build with
patches for array I/O incorporated.  Evidently its fixed.  Soon as we submit
these patches for review this can be confirmed by others.
Comment 8 Jakub Jelinek 2006-01-18 03:18:05 EST
Yeah, fix verified with gcc-gfortran-4.1.0-0.15 in rawhide.
WONTFIX for gcc 4.0.x.

Note You need to log in before you can comment on or make changes to this bug.