Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 1115207

Summary: gfortran segmentation fault and bus error fault
Product: Red Hat Enterprise Linux 6 Reporter: Doc <reg>
Component: gccAssignee: Jakub Jelinek <jakub>
Status: CLOSED UPSTREAM QA Contact: qe-baseos-tools-bugs
Severity: medium Docs Contact:
Priority: unspecified    
Version: 6.3CC: law, mfranc, mnewsome, mpolacek, reg
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: 2015-02-10 13:35:54 UTC Type: Bug
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
gfortran segmentation fault and bus error fault none

Description Doc 2014-07-01 21:33:19 UTC
Created attachment 913931 [details]
gfortran segmentation fault and bus error fault

Description of problem:
Thought this might help you, since it's hard to debug unless you have one.  The two files attached are weeded down from hundreds of lines of source code being ported from one machine to another.  (Is gfortran Red Hat or an add-on?)  Hmmm....


Version-Release number of selected component (if applicable):
$ gfortran -v
Using built-in specs.
Target: x86_64-redhat-linux
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --with
-bugurl=http://bugzilla.redhat.com/bugzilla --enable-bootstrap --enable-shared --enable-threads=posi
x --enable-checking=release --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions
--enable-gnu-unique-object --enable-languages=c,c++,objc,obj-c++,java,fortran,ada --enable-java-awt=
gtk --disable-dssi --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-1.5.0.0/jre --enable-libgcj-multifil
e --enable-java-maintainer-mode --with-ecj-jar=/usr/share/java/eclipse-ecj.jar --disable-libjava-mul
tilib --with-ppl --with-cloog --with-tune=generic --with-arch_32=i686 --build=x86_64-redhat-linux
Thread model: posix
gcc version 4.4.6 20120305 (Red Hat 4.4.6-4) (GCC)


How reproducible:
gfortran -c *.f

Steps to Reproduce:
1.gfortran -c *.f
2.
3.

Actual results:
$ gfortran -c *.f 2&> output
$ cat output
gfortran: 2: No such file or directory
LJP008BusError.f:4.72:

     +/"$Id: $"/
                                                                        1
Error: Unexpected data declaration statement at (1)
LJP008BusError.f:5.72:

      REAL*4    RPKK1K2 , RPKKCABR, RPKKMIX , RPKKUA1 , RPLHLOAD
                                                                        1
Error: Unexpected data declaration statement at (1)
LJP008BusError.f:6.72:

      REAL*4    RPLTMIX , RPLUCABR
                                                                        1
Error: Unexpected data declaration statement at (1)
f951: internal compiler error: Bus error
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://bugzilla.redhat.com/bugzilla> for instructions.
LJP009SegFault.f:4.72:

     +/"$Id: rkpdctem.f,v 1.1 2004/04/12 $"/
                                                                        1
Error: Unexpected data declaration statement at (1)
LJP009SegFault.f:5.72:

      REAL*4    RPKK1K2 , RPKKCABR, RPKKMIX , RPKKUA1 , RPLHLOAD
                                                                        1
Error: Unexpected data declaration statement at (1)
LJP009SegFault.f:6.72:

      REAL*4    RPLTMIX , RPLUCABR
                                                                        1
Error: Unexpected data declaration statement at (1)
f951: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://bugzilla.redhat.com/bugzilla> for instructions.

Expected results:
The usual sensible line-defining error messages, thanks!

Additional info:
Dr. Larry J. Paden Larry

Comment 2 Jakub Jelinek 2014-07-02 11:09:59 UTC
This is just error recovery bug, you get correct errors printed and when you fix the bugs, the ICEs go away, so lowest priority.
In Fortran the declaration statements (declaration of variables, dummy arguments, etc.) have to come before the other statements, so don't insert write
statements before those.  Reproduced on GCC trunk too, will track it there.

Comment 4 Jeff Law 2015-02-10 13:35:54 UTC
Tracking via upstream BZ:

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=61669