Bug 740078

Summary: g++: Internal error: Segmentation fault (program cc1plus)
Product: Red Hat Enterprise Linux 5 Reporter: harry.kantor
Component: gccAssignee: Jakub Jelinek <jakub>
Status: CLOSED NOTABUG QA Contact: qe-baseos-tools-bugs
Severity: high Docs Contact:
Priority: unspecified    
Version: 5.5CC: law
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: 2013-03-12 17:29:29 UTC Type: ---
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
Additional core dump none

Description harry.kantor 2011-09-20 20:50:08 UTC
Description of problem:

When attempting to compile cppunit tests, I receive a message:

g++: Internal error: Segmentation fault (program cc1plus)

The code I'm testing has worked before I placed a forward declaration in it.


Version-Release number of selected component (if applicable):
gcc-c++-4.1.2-51.el5.x86_64.rpmrp
cppunit-1.12.0-3.el5.rf


Additional info:
I have attached the core dump.

Comment 1 harry.kantor 2011-09-20 20:53:15 UTC
Created attachment 524092 [details]
Additional core dump

I've attached a core dump with the forward declaration removed.  The compiler is still crashing.

Comment 2 Jakub Jelinek 2011-10-21 12:22:09 UTC
Coredump isn't useful for debugging compiler problems, we need a preprocessed source on which it can be reproduced.  By any chance, aren't you using PCH?

Comment 3 harry.kantor 2011-10-24 13:52:48 UTC
Please cancel this issue.  There was a problem with my "depend" target, which caused one of the object files to not be rebuilt.

What is PCH?

Comment 4 Jeff Law 2013-03-12 17:29:29 UTC
Per c#3.