Red Hat Bugzilla – Bug 244339
Compiler Segmentation Faults When Compiling DarkIce
Last modified: 2007-11-30 17:12:07 EST
Description of problem:
When trying to compile DarkIce 0.18.1, the compiler throws a segmentation fault
due to an "internal compiler error" and crashes.
Version-Release number of selected component (if applicable):
gcc version 4.1.2 20070502 (Red Hat 4.1.2-12)
Configure and compile DarkIce
Steps to Reproduce:
1. Install LAME
2. Install ALSA-LIB-DEVEL
3. Configure DarkIce (./configure)
4. Run Make (make)
Things go alright until the following occurs...
g++ -DHAVE_CONFIG_H -I. -I/usr/local/include -O2 -pedantic -Wall -g -O2
-MT aflibDebug.o -MD -MP -MF .deps/aflibDebug.Tpo -c -o aflibDebug.o aflibDebug.cc
aflibDebug.cc:163: internal compiler error: Segmentation fault
Program should compile cleanly, and then run.
The compiler generated a "Preprocessed source" and asked me to attach it to the
bug report - I have done so.
This computer is registered via smolt. I updated the profile prior to sending
I don't compile very much, so although I am willing to do whatever I can to
assist, I should be probably considered a "compiler newbie" experience wise.
Created attachment 157061 [details]
Compiler Preprocessed Source
Just a small update. I totally misinterpreted the "How reproducible" question.
Bad bug reporter *SMACK* :)
This bug is reproducible 100% of the time.
Sorry, can't reproduce this on the attached preprocessed source.
gcc-c++-4.1.2-12's cc1plus compiles this just fine, many times in a row.
What you actually could do if you can reproduce it all the time would be
and then run
gdb --args /usr/libexec/gcc/i386-redhat-linux/4.1.2/cc1plus -fpreprocessed
244339.ii -quiet -dumpbase 244339.ii -mtune=generic -auxbase-strip 244339.o -g
-O2 -O2 -pedantic -Wall -o 244339.s -frandom-seed=0
and under gdb
and if it segfaults, do bt, info regs etc.
But as it is not reproduceable here, it will be certainly much harder to debug.
After you replied you could not reproduce the error, I tried to compile the
program again. The same error continued to occur each time.
When you sent the gdb instructions, I decided to give it a go. I installed the
gcc-debuginfo package via yum, ran gdb with your parameters, and then executed
the make again. The software built successfully!
I then removed the gcc-debuginfo package, extracted a fresh copy of the software
source, and tried to rebuild without gdb again. Success!
Could installing/removing the gcc-debuginfo package have knocked something back
into line? Its the only thing I have changed since the initial report - the
hardware hasn't even been rebooted or anything.
P.S. - Thank you for your quite speedy and helpful responses.