public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/21085] New: Virtual memory exhausted with g++
@ 2005-04-18 13:16 strieder at informatik dot uni-kl dot de
  2005-04-18 19:18 ` [Bug middle-end/21085] [4.0/4.1 Regression] " pinskia at gcc dot gnu dot org
                   ` (16 more replies)
  0 siblings, 17 replies; 18+ messages in thread
From: strieder at informatik dot uni-kl dot de @ 2005-04-18 13:16 UTC (permalink / raw)
  To: gcc-bugs

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


^ permalink raw reply	[flat|nested] 18+ messages in thread

end of thread, other threads:[~2005-05-11 12:50 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-04-18 13:16 [Bug c++/21085] New: Virtual memory exhausted with g++ strieder at informatik dot uni-kl dot de
2005-04-18 19:18 ` [Bug middle-end/21085] [4.0/4.1 Regression] " pinskia at gcc dot gnu dot org
2005-04-18 19:18 ` pinskia at gcc dot gnu dot org
2005-04-18 19:24 ` pinskia at gcc dot gnu dot org
2005-04-18 19:25 ` pinskia at gcc dot gnu dot org
2005-04-18 19:38 ` pinskia at gcc dot gnu dot org
2005-04-18 20:15 ` phython at gcc dot gnu dot org
2005-04-18 20:47 ` roger at eyesopen dot com
2005-04-18 22:02 ` ja2morri at csclub dot uwaterloo dot ca
2005-04-19  2:36 ` cvs-commit at gcc dot gnu dot org
2005-04-19  2:43 ` [Bug middle-end/21085] [4.0 only " phython at gcc dot gnu dot org
2005-04-19  6:11 ` [Bug middle-end/21085] [4.0 " pinskia at gcc dot gnu dot org
2005-04-20  3:31 ` pinskia at gcc dot gnu dot org
2005-04-20  4:32 ` phython at gcc dot gnu dot org
2005-04-20 13:52 ` pinskia at gcc dot gnu dot org
2005-05-11 12:46 ` cvs-commit at gcc dot gnu dot org
2005-05-11 12:50 ` pinskia at gcc dot gnu dot org
2005-05-11 12:50 ` cvs-commit at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).