Red Hat Bugzilla – Bug 59346
cc1plus grows to fill all memory and swap
Last modified: 2007-04-18 12:39:48 EDT
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.7) Gecko/20011226
Description of problem:
When rebuilding the source RPM obtained from
The makefile gets as far as compiling makefile.cpp, then cc1plus
(gcc-c++-2.96-98) slowly grows to fill all available memory, consumes all swap
space, and thrashes for a while before finally terminating with an Internal
Error message. Compilation of the source file ceases after a short while (the
.s file in /var/tmp stops growing in size).
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Rpm rpm--rebuild <the rpm file>
2. Watch it die.
Actual Results: cc1plus grows to fill all available memory and swap space,
thrashes for some time, then halts with an internal error message.
Expected Results: Successful compilation of the source file, or at least an
This still happens in qt3-3.0.2-1.src.rpm. If you build makefile.cpp with no -O2
flag, qt3 will build fine. Building stock qt3 from the tarball, qmake is not
built with optimization and the problem doesn't show up.
gcc-2.96-106 still exhibits this problem.
GCC 2.96-RH is too old now, if you are able to reproduce this with
a newer GCC, please reopen.