Hello,   
   
there  must be a serious problem in   
   
 GNU C++ version 4.0.0 20050410 (prerelease) (i686-pc-linux-gnu)   
        compiled by GNU C version 3.3.4 (pre 3.3.5 20040809) (SuSE Linux 9.2).  
 
  
The same happens with  GNU C++ version 4.0.0 20050410 when built with itself.  
  
On a Pentium III 1GHz with enough RAM to avoid swapping, cc1plus will eat 
memory at  
about 200MB/sec until the OS kills it, as observable with top at a sub-second 
interval.  
   
The .ii file produced by the issued command has bzipped 131128 bytes. I have 
not found   
a sensible way to include that file here, you will find it under   
   
http://www-madlener.informatik.uni-kl.de/staff/strieder/triedriver.t.ii.bz2   
   
or I will send it on request.   
   
The code used to compile under gcc-2.95, gcc-3.3.x, on i386 ans SPARCs and 
gcc-3.4.[23] on  
i386.  
  
How the .ii was produced:  
  
g++ -v --save-temps -gdwarf-2   -Wall  -W -Winline -Woverloaded-virtual -I.    
-I/home/strieder/xssr/sys -I/home/strieder/xssr/sys/xssr-gui   
-DINLINE='inline' -DDO_INLINE       
-c -o triedriver.t.o /home/strieder/xssr/sys/testdrivers/triedriver.t.cc    
Using built-in specs.    
Target: i686-pc-linux-gnu    
Configured with: ../gcc-4.0.0-20050410/configure --enable-threads=posix    
--prefix=/net/opt/gcc-4.0.0-20050410 --enable-languages=c,c++ 
--with-system-zlib    
--enable-shared --enable-__cxa_atexit    
Thread model: posix    
gcc version 4.0.0 20050410 (prerelease)    
 /net/opt/gcc-4.0.0-20050410/libexec/gcc/i686-pc-linux-gnu/4.0.0/cc1plus -E 
-quiet -v -I.    
-I/home/strieder/xssr/sys -I/home/strieder/xssr/sys/xssr-gui -D_GNU_SOURCE    
-DINLINE=inline -DDO_INLINE /home/strieder/xssr/sys/testdrivers/triedriver.t.cc 
   
-mtune=pentiumpro -Wall -W -Winline -Woverloaded-virtual -fworking-directory    
-fpch-preprocess -o triedriver.t.ii    
ignoring nonexistent directory    
"/net/opt/gcc-4.0.0-20050410/lib/gcc/i686-pc-linux-gnu/4.0.0/../../../../i686-pc-linux-gnu/include"
    
#include "..." search starts here:    
#include <...> search starts here:    
 .    
 /home/strieder/xssr/sys    
 /home/strieder/xssr/sys/xssr-gui    
 
/net/opt/gcc-4.0.0-20050410/lib/gcc/i686-pc-linux-gnu/4.0.0/../../../../include/c++/4.0.0
    
 
/net/opt/gcc-4.0.0-20050410/lib/gcc/i686-pc-linux-gnu/4.0.0/../../../../include/c++/4.0.0/i686-pc-linux-gnu
    
 
/net/opt/gcc-4.0.0-20050410/lib/gcc/i686-pc-linux-gnu/4.0.0/../../../../include/c++/4.0.0/backward
    
 /usr/local/include    
 /net/opt/gcc-4.0.0-20050410/include    
 /net/opt/gcc-4.0.0-20050410/lib/gcc/i686-pc-linux-gnu/4.0.0/include    
 /usr/include    
End of search list.    
 /net/opt/gcc-4.0.0-20050410/libexec/gcc/i686-pc-linux-gnu/4.0.0/cc1plus 
-fpreprocessed    
triedriver.t.ii -quiet -dumpbase triedriver.t.cc -mtune=pentiumpro 
-auxbase-strip triedriver.t.o    
-gdwarf-2 -Wall -W -Winline -Woverloaded-virtual -version -o triedriver.t.s    
GNU C++ version 4.0.0 20050410 (prerelease) (i686-pc-linux-gnu)    
        compiled by GNU C version 3.3.4 (pre 3.3.5 20040809).    
GGC heuristics: --param ggc-min-expand=64 --param ggc-min-heapsize=64454    
g++: Internal error: Segmentation fault (program cc1plus)    
Please submit a full bug report.    
    
How to reproduce:  
  
g++ -Wall  -W -Winline -Woverloaded-virtual -I. -I/home/strieder/xssr/sys  
-I/home/strieder/xssr/sys/xssr-gui   -DINLINE='inline' -DDO_INLINE    -c -o 
triedriver.t.o  
triedriver.t.ii  
 
or 
 
g++ -c triedriver.t.ii  
  
or 
 
g++ -O2 -c triedriver.t.ii  
  
Regards,   
   
Bernd Strieder

-- 
           Summary: Virtual memory exhausted with g++
           Product: gcc
           Version: 4.0.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: strieder at informatik dot uni-kl dot de
                CC: gcc-bugs at gcc dot gnu dot org
  GCC host triplet: i686-pc-linux-gnu
GCC target triplet: i686-pc-linux-gnu


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21085

Reply via email to