Bug 483845 - gfortran segfaults on compilation of code
gfortran segfaults on compilation of code
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: gcc (Show other bugs)
All Linux
low Severity medium
: rc
: ---
Assigned To: Jakub Jelinek
: Reopened
Depends On:
  Show dependency treegraph
Reported: 2009-02-03 16:17 EST by James Keener
Modified: 2009-09-02 07:43 EDT (History)
3 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2009-09-02 07:43:43 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)
gcc41-pr30554.patch (6.11 KB, patch)
2009-05-07 12:14 EDT, Jakub Jelinek
no flags Details | Diff

External Trackers
Tracker ID Priority Status Summary Last Updated
GNU Compiler Collection 30554 None None None Never

  None (edit)
Description James Keener 2009-02-03 16:17:21 EST
Description of problem:
gfortran segfaults

Version-Release number of selected component (if applicable):
GNU Fortran (GCC) 4.1.2 20071124 (Red Hat 4.1.2-42)
CentOS release 5.2 (Final)
RHEL 5.2
RHEL 5.3

How reproducible:
Compiling certain fortran source

Steps to Reproduce:
1. Download fdynamo (http://www.pdynamo.org/mainpages/downloads.html#fdynamo)
2. run the install script
3. make library
Actual results:
an Error: "source/energy.F90:0: internal compiler error: Segmentation fault"

Expected results:
A library

Additional info:
This has happened on three independent systems CentOS 5.2, RHEL 5.2 and 5.3

This may be a manifestation of bug 435964 (https://bugzilla.redhat.com/show_bug.cgi?id=435964), but I cannot tell for sure or if it is a different bug.
Comment 1 Jakub Jelinek 2009-05-07 04:40:05 EDT

*** This bug has been marked as a duplicate of bug 492209 ***
Comment 2 Jakub Jelinek 2009-05-07 04:40:48 EDT
Oops, sorry, meant to update #487019 instead.
Comment 3 Jakub Jelinek 2009-05-07 04:53:40 EDT
This works just fine with gfortran43.
Comment 4 Jakub Jelinek 2009-05-07 06:09:41 EDT
Simplified testcase:
module m1
  integer :: n = 0
  end module m1
module m2
  use m1, only : n
  implicit none
  subroutine s(a)
    real, dimension(1:3,1:n), intent(inout), optional :: a
  end subroutine s
end module m2
module m3
  use m1, only : n
  use m2, only : s
end module m3
Comment 5 Jakub Jelinek 2009-05-07 12:10:47 EDT
This is upstream PR30554 and the backported patch I'm going to attach cures it.
Comment 6 Jakub Jelinek 2009-05-07 12:14:31 EDT
Created attachment 342868 [details]
Comment 16 errata-xmlrpc 2009-09-02 07:43:43 EDT
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.


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