Red Hat Bugzilla – Bug 249603
gcc segmentation fault.
Last modified: 2007-11-30 17:12:11 EST
Description of problem:
Internal compiler error with -g flag.
Version-Release number of selected component (if applicable):
# gcc --version
gcc (GCC) 4.1.2 20070502 (Red Hat 4.1.2-12)
# uname -r
Steps to Reproduce:
# cat > a.c
int main ()
# gcc a.c
# gcc -g a.c
a.c:4: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://bugzilla.redhat.com/bugzilla> for instructions.
Preprocessed source stored into /tmp/cc6QneJE.out file, please attach this to
internal compiler error
If such a trivial testcase doesn't compile, then it can be either a hardware
issue (bad RAM, overclocked CPU, ...) or you have corrupted binary
(you can e.g. run rpm -V gcc cpp to verify the latter).
It compiles with -g just fine here (and of course it couldn't make it
through the extensive testing that is done during each build).
Yes, it's true :(.
The problem was in cpp, so:
# rpm -e --nodeps cpp
# yum install cpp
Tnx a lot! :)