Bug 492209

Summary: f95 fortran compiler fails with segfault
Product: Red Hat Enterprise Linux 5 Reporter: Pam Richardson <pam>
Component: gccAssignee: Jakub Jelinek <jakub>
Status: CLOSED ERRATA QA Contact: BaseOS QE <qe-baseos-auto>
Severity: medium Docs Contact:
Priority: low    
Version: 5.3CC: jkeener, mnowak, pmuller
Target Milestone: rc   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2009-09-02 11:43:49 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
tar file containing files need to reconstruct the error none

Description Pam Richardson 2009-03-25 21:45:03 UTC
Description of problem:

The f95 fortran compiler fails with a segfault while attempting to compile file edit.f90.  This may be the same error as bug report 483835. 
 
How reproducible:

I have attached a tar file that contains a readme file and the files needed to reconstruct the error.

Comment 1 Pam Richardson 2009-03-25 21:47:53 UTC
Created attachment 336712 [details]
tar file containing files need to reconstruct the error

Comment 2 Jakub Jelinek 2009-04-23 12:35:20 UTC
Reduced testcase:

module mod
  type t
    real :: v(50)
  end type t
  type (t), target, allocatable, save :: v1(:)
  integer, save :: v2, v3, v4
  character(len=8), save, target, allocatable :: v5(:)
end module mod

subroutine test
  use mod
  integer :: i
  write (*,v5(1:v3)) (v1(i)%v(v2), i=2, v4)
end subroutine test

Comment 3 Jakub Jelinek 2009-05-07 08:40:05 UTC
*** Bug 483845 has been marked as a duplicate of this bug. ***

Comment 4 Jakub Jelinek 2009-05-07 08:40:17 UTC
*** Bug 487019 has been marked as a duplicate of this bug. ***

Comment 5 Jakub Jelinek 2009-05-12 16:09:40 UTC
Patch:
http://gcc.gnu.org/ml/gcc-patches/2009-05/msg00649.html

Comment 13 errata-xmlrpc 2009-09-02 11:43:49 UTC
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.

http://rhn.redhat.com/errata/RHBA-2009-1376.html