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 875472 - gcc crashes (segmentation fault)
Summary: gcc crashes (segmentation fault)
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: gcc
Version: 6.3
Hardware: x86_64
OS: Unspecified
unspecified
high
Target Milestone: rc
: 6.6
Assignee: Jakub Jelinek
QA Contact: Miroslav Franc
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-11-11 13:42 UTC by German Pulido
Modified: 2016-02-01 02:28 UTC (History)
4 users (show)

Fixed In Version: gcc-4.4.7-5.el6
Doc Type: Bug Fix
Doc Text:
Previously, GCC could crash when performing a loop vectorization optimization. This has been fixed by properly ignoring the debug statements when the vectorizer is looking for a loop-exit PHI node and now GCC compiles the code correctly.
Clone Of:
Environment:
Last Closed: 2014-10-14 05:01:23 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
Preprocessed source stored into /tmp/ccF1ddlI.out file, (189.45 KB, application/octet-stream)
2012-11-11 13:42 UTC, German Pulido
no flags Details
Patch needed to compile gngeo 0.8 (615 bytes, application/octet-stream)
2012-11-11 13:45 UTC, German Pulido
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2014:1377 0 normal SHIPPED_LIVE gcc bug fix and enhancement update 2014-10-14 01:06:11 UTC

Description German Pulido 2012-11-11 13:42:38 UTC
Created attachment 642828 [details]
Preprocessed source stored into /tmp/ccF1ddlI.out file,

Description of problem:
gcc crashes with segmentation fault while compiling some software on x86_64 (the same software compiles fine under i686)

Version-Release number of selected component (if applicable):
[gpulido@shockwave SPECS]$ rpm -qa | grep gcc
gcc-c++-4.4.6-4.el6.x86_64
gcc-4.4.6-4.el6.x86_64
gcc-java-4.4.6-4.el6.x86_64
libgcc-4.4.6-4.el6.x86_64
[gpulido@shockwave SPECS]$ 


How reproducible:
Always

Steps to Reproduce:
1. Get gngeo-0.8.tar.gz tarball
2. unpack it
3. patch it so it compiles (patch attached)
4. try to compile it
5. gcc crashes
  
Actual results:
...
gcc -DHAVE_CONFIG_H -I. -I..  -DDATA_DIRECTORY=\"/usr/share/gngeo\"   -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -O3 -fstrength-reduce -frerun-loop-opt -Wall -Wno-unused -funroll-loops                     -ffast-math  -fexpensive-optimizations                      -malign-double -fomit-frame-pointer -g 		    -fno-strict-aliasing -pipe -DCPU=x86_64 -MT neocrypt.o -MD -MP -MF .deps/neocrypt.Tpo -c -o neocrypt.o neocrypt.c
neocrypt.c: In function 'neogeo_cmc50_m1_decrypt':
neocrypt.c:954: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://bugzilla.redhat.com/bugzilla> for instructions.
Preprocessed source stored into /tmp/ccF1ddlI.out file, please attach this to your bugreport.
make[3]: *** [neocrypt.o] Error 1
make[3]: Leaving directory `/home/gpulido/packages/rpm/BUILD/gngeo-0.8/src'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/gpulido/packages/rpm/BUILD/gngeo-0.8/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/gpulido/packages/rpm/BUILD/gngeo-0.8'
make: *** [all] Error 2
error: Bad exit status from /var/tmp/rpm-tmp.OUZE7D (%build)


Expected results:
the program gets compiled fine, or compilation fails with some error related to the program being compiled

Additional info:

Comment 2 German Pulido 2012-11-11 13:45:30 UTC
Created attachment 642829 [details]
Patch needed to compile gngeo 0.8

To get the program's source code: http://gngeo.googlecode.com/files/gngeo-0.8.tar.gz

Comment 3 RHEL Program Management 2012-12-14 08:32:14 UTC
This request was not resolved in time for the current release.
Red Hat invites you to ask your support representative to
propose this request, if still desired, for consideration in
the next release of Red Hat Enterprise Linux.

Comment 4 Marek Polacek 2014-02-11 17:10:16 UTC
Reproduced using RH 4.4 branch, FSF 4.4 is fine.

(gdb) r
Starting program: /home/marek/rh/x/rh-gcc-44/gcc/cc1 -quiet -O3 -g x.i

Program received signal SIGSEGV, Segmentation fault.
vect_create_epilog_for_reduction (vect_def=<optimized out>, stmt=<optimized out>, ncopies=8, 
    reduc_code=17781664, reduction_phi=<optimized out>)
    at /home/marek/rh/src-svn/gcc/branches/redhat/gcc-4_4-branch/gcc/tree-vect-transform.c:2772
2772	      FOR_EACH_IMM_USE_STMT (use_stmt, imm_iter, orig_name)
(gdb) p orig_name
$1 = (tree) 0x0

Comment 5 Marek Polacek 2014-02-11 18:43:31 UTC
Can't reproduce this with any FSF version/revision, so nothing to backport.

Comment 6 Marek Polacek 2014-02-11 18:48:38 UTC
The workaround is -fno-tree-vectorize.

Comment 12 errata-xmlrpc 2014-10-14 05:01:23 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

http://rhn.redhat.com/errata/RHBA-2014-1377.html


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