Bug 160879 - gfortran segfault with write to a character of character array
gfortran segfault with write to a character of character array
Status: CLOSED NOTABUG
Product: Fedora
Classification: Fedora
Component: gcc (Show other bugs)
4
i386 Linux
medium Severity medium
: ---
: ---
Assigned To: Jakub Jelinek
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2005-06-17 18:37 EDT by Patrice Dumas
Modified: 2007-11-30 17:11 EST (History)
0 users

See Also:
Fixed In Version: 4.0.1-2
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2005-07-11 12:57:12 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Patrice Dumas 2005-06-17 18:37:08 EDT
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; fr; rv:1.7.2) Gecko/20040804

Description of problem:
With the following program gfortran segfaults:
      SUBROUTINE cqm
      CHARACTER CQMAP(10)*(1)
      WRITE(CQMAP,'(1X)')
      END
[dumas@couperin ~]$ gfortran -c -o bug.o bug_gfortran.f
bug_gfortran.f: In function 'cqm':
bug_gfortran.f:1: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://bugzilla.redhat.com/bugzilla> for instructions.


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

How reproducible:
Always

Steps to Reproduce:
1. try to compile the code above
2.
3.
  

Actual Results:  gfortran segfaults, and a bug report submit

Expected Results:  something else

Additional info:
Comment 1 Patrice Dumas 2005-06-18 09:23:09 EDT
a variant that leads to a segfault that could be related

      program tf
      PARAMETER  (LGL=240)
      CHARACTER   LINE*(LGL)
      CHARACTER    COL(LGL)*1
      EQUIVALENCE (COL(1), LINE(1:1))
      END

Removing the (1:1) helped.
Comment 2 Jakub Jelinek 2005-07-11 12:57:12 EDT
The cqm testcase doesn't ICE any longer with 4.0.1-2 (rawhide).
The tf testcase ends up with find_array_spec(): Missing spec ICE, so it is the
equivalence bug with array refs.

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