Bug 753925 - internal compiler error: Segmentation fault
Summary: internal compiler error: Segmentation fault
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: gcc
Version: 5.7
Hardware: i686
OS: Linux
unspecified
high
Target Milestone: rc
: ---
Assignee: Jakub Jelinek
QA Contact: qe-baseos-tools-bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-11-14 21:23 UTC by Ivailo Petrov
Modified: 2011-12-21 07:15 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-12-21 07:15:48 UTC
Target Upstream Version:


Attachments (Terms of Use)

Description Ivailo Petrov 2011-11-14 21:23:07 UTC
Description of problem:

After updating to the latest gcc 4.1.2 our *debug* build started failing:

g++  -O0 -g3 -D_DEBUG -D STRIDEDB_STATIC -D GCC_IS_GENERATED_CODE_TARGET=1 -D SUN_IS_GENERATED_CODE_TARGET=0 -D MSVC_IS_GENERATED_CODE_TARGET=0 -D MICROSOFT_DIALECT_IS_GENERATED_CODE_TARGET=0 -I./ -I./include -I./Source/DT -I../ILReader -I../EDGFront -I../inc -I../Common/include -I../SDK/Runtime -I"/mnt/build_tools/OpenSource/boost/1.45.0" -I"/mnt/build_tools/OpenSource/apache/xerces-c/3.1.1/src" -I"/mnt/build_tools/OpenSource/log4cplus/1.0.4/include" -Wall -c -fmessage-length=0 -fPIC -oDebug/CdtCompilationUnit.o Source/DT/CdtCompilationUnit.cpp
/usr/lib/gcc/i386-redhat-linux/4.1.2/../../../../include/c++/4.1.2/iomanip: In function ‘std::_Setw std::setw(int)’:
/usr/lib/gcc/i386-redhat-linux/4.1.2/../../../../include/c++/4.1.2/iomanip:247: internal compiler error: Segmentation fault
 

Version-Release number of selected component (if applicable):

gcc version 4.1.2 20080704 (Red Hat 4.1.2-51)
Linux 2.6.18-274.7.1.el5.centos.plusPAE i686 i686 i386 GNU/Linux


How reproducible:

Will try to preprocess and provide the output.


Additional info:

The problem happens consistantly in the *debug* build (as mentioned above). We haven't had any issue with the *release* so far. FYI, here is the release command line:

g++  -O3 -DNDEBUG -D STRIDEDB_STATIC -D GCC_IS_GENERATED_CODE_TARGET=1 -D SUN_IS_GENERATED_CODE_TARGET=0 -D MSVC_IS_GENERATED_CODE_TARGET=0 -D MICROSOFT_DIALECT_IS_GENERATED_CODE_TARGET=0 -I./ -I./include -I./Source/DT -I../ILReader -I../EDGFront -I../inc -I../Common/include -I../SDK/Runtime -I"/mnt/build_tools/OpenSource/boost/1.45.0" -I"/mnt/build_tools/OpenSource/apache/xerces-c/3.1.1/src" -I"/mnt/build_tools/OpenSource/log4cplus/1.0.4/include" -Wall -c -fmessage-length=0 -fPIC -oRelease/CdtCompilationUnit.o Source/DT/CdtCompilationUnit.cpp
 

Also, I don't know if this has anything to do with the problem, but we use a precompiled header, compiled as:

g++  -O0 -g3 -D_DEBUG -D STRIDEDB_STATIC -D GCC_IS_GENERATED_CODE_TARGET=1 -D SUN_IS_GENERATED_CODE_TARGET=0 -D MSVC_IS_GENERATED_CODE_TARGET=0 -D MICROSOFT_DIALECT_IS_GENERATED_CODE_TARGET=0 -I./ -I./include -I./Source/DT -I../ILReader -I../EDGFront -I../inc -I../Common/include -I../SDK/Runtime -I"/mnt/build_tools/OpenSource/boost/1.45.0" -I"/mnt/build_tools/OpenSource/apache/xerces-c/3.1.1/src" -I"/mnt/build_tools/OpenSource/log4cplus/1.0.4/include" -Wall -c -fmessage-length=0 -fPIC -ostdafx.h.gch stdafx.h

Comment 1 Jakub Jelinek 2011-11-24 11:29:09 UTC
You haven't provided anything to reproduce it, but most likely this is already fixed dup of #735304, just retry with gcc-4.1.2-52.el5 or in the mean time disable PCH.

Comment 2 Ivailo Petrov 2011-12-21 00:42:37 UTC
Yes, the problem appears to be related to PCH. I'm not able to reproduce without that.
I'm sorry it took me that long to respond.

Comment 3 Jakub Jelinek 2011-12-21 07:15:48 UTC
Assuming this is fixed in gc-4.1.2-52.el5 then, please reopen if not.


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