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 1091210 - gcc: Internal error: Killed (program cc1plus)
Summary: gcc: Internal error: Killed (program cc1plus)
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: gcc
Version: 6.4
Hardware: Unspecified
OS: Linux
unspecified
urgent
Target Milestone: rc
: ---
Assignee: Jakub Jelinek
QA Contact: qe-baseos-tools-bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-04-25 08:23 UTC by Xiong Zou
Modified: 2014-06-17 14:40 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-06-17 14:40:07 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Xiong Zou 2014-04-25 08:23:39 UTC
Description of problem:
when I compile my source code, gcc reported following error:

gcc: Internal error: Killed (program cc1plus)
Please submit a full bug report.
See <http://bugzilla.redhat.com/bugzilla> for instructions.
make: *** [CQuickFixProxy.o] Error 1

I have tried again and it seems to be ctrying to compile this source file for quite a long time.

Version-Release number of selected component (if applicable):
[ec2-user@ip-172-31-32-42 proxy]$ cat /etc/redhat-release
Red Hat Enterprise Linux Server release 6.4 (Santiago)

[ec2-user@ip-172-31-32-42 proxy]$ gcc -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=posix --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-multifile --enable-java-maintainer-mode --with-ecj-jar=/usr/share/java/eclipse-ecj.jar --disable-libjava-multilib --with-ppl --with-cloog --with-tune=generic --with-arch_32=i686 --build=x86_64-redhat-linux
Thread model: posix
gcc version 4.4.7 20120313 (Red Hat 4.4.7-4) (GCC)

[ec2-user@ip-172-31-32-42 proxy]$ uname -a
Linux ip-172-31-32-42.us-west-2.compute.internal 2.6.32-358.14.1.el6.x86_64 #1 SMP Mon Jun 17 15:54:20 EDT 2013 x86_64 x86_64 x86_64 GNU/Linux


How reproducible:
not sure how it can be reproduced by your environment without my source codes

Steps to Reproduce:
1.
2.
3.

Actual results:
gcc error

Expected results:
gcc compile successfully

Additional info:
I have the same source codes and compiled successfully in your RHEL 5.* releases

Anything else required for heloing your debug, please let me know.
Thanks

Comment 1 Jakub Jelinek 2014-04-25 08:29:58 UTC
This is not necessarily a GCC bug, the above message means that the kernel OOM killer has killed the compiler.  So, either you are trying to compile something large and just don't have enough memory, then it would not be a gcc bug, or the compiler needs unreasonable amount of memory for the complexity of the input, then we could look at what can be done about it.
In any case, there is nothing that can be done about it without a preprocessed testcase.  If that is proprietary, you could try to reduce it yourself and obfuscate, see e.g. http://gcc.gnu.org/wiki/A_guide_to_testcase_reduction , one can use e.g. delta or creduce as long as you write a testing script that will say use ulimit -v <somelimit>.

Comment 2 Xiong Zou 2014-04-25 08:42:29 UTC
Hi Jakub,

Thanks for getting back to me so promptly. I also hope that it is nothing related to gcc compiler. 

I will try the method suggested by you. And as I am using amazon web service t1.micro instance type, which has only 615MB RAM available. Maybe I can try to upgrade it to have more memory first.

Kind regards,
Xiong Zou

Comment 4 Marek Polacek 2014-06-17 14:40:07 UTC
Feedback not coming, closing out.


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