Bug 492209 - f95 fortran compiler fails with segfault
Summary: f95 fortran compiler fails with segfault
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: gcc
Version: 5.3
Hardware: x86_64
OS: Linux
low
medium
Target Milestone: rc
: ---
Assignee: Jakub Jelinek
QA Contact: BaseOS QE
URL:
Whiteboard:
: 487019 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2009-03-25 21:45 UTC by Pam Richardson
Modified: 2009-09-02 11:43 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2009-09-02 11:43:49 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
tar file containing files need to reconstruct the error (1.43 MB, application/x-tar)
2009-03-25 21:47 UTC, Pam Richardson
no flags Details


Links
System ID Private Priority Status Summary Last Updated
GNU Compiler Collection 39865 0 None None None Never
Red Hat Product Errata RHBA-2009:1376 0 normal SHIPPED_LIVE gcc bug fix update 2009-09-01 11:41:20 UTC

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


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