Bug 1091210

Summary: gcc: Internal error: Killed (program cc1plus)
Product: Red Hat Enterprise Linux 6 Reporter: Xiong Zou <zouxiong>
Component: gccAssignee: Jakub Jelinek <jakub>
Status: CLOSED NOTABUG QA Contact: qe-baseos-tools-bugs
Severity: urgent Docs Contact:
Priority: unspecified    
Version: 6.4CC: mpolacek, zouxiong
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-06-17 14:40:07 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:

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.