public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/32290]  New: GCC crashes with OOM when compiling trivial source file (no endless loop)
@ 2007-06-11 18:03 aribrei at arcor dot de
  2007-06-11 18:05 ` [Bug c++/32290] " aribrei at arcor dot de
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: aribrei at arcor dot de @ 2007-06-11 18:03 UTC (permalink / raw)
  To: gcc-bugs

This is the output of a valid 60 line source file compile. The preprocessed
source is 30 KB in size and I know that there are no cycles in the code.

$ gcc -v -save-temps reduced-problem.cpp 
Using built-in specs.
Target: x86_64-linux-gnu
Configured with: ../src/configure -v
--enable-languages=c,c++,fortran,objc,obj-c++,treelang --prefix=/usr
--enable-shared --with-system-zlib --libexecdir=/usr/lib
--without-included-gettext --enable-threads=posix --enable-nls
--program-suffix=-4.1 --enable-__cxa_atexit --enable-clocale=gnu
--enable-libstdcxx-debug --enable-mpfr --enable-checking=release
x86_64-linux-gnu
Thread model: posix
gcc version 4.1.2 20060928 (prerelease) (Ubuntu 4.1.1-13ubuntu5)
 /usr/lib/gcc/x86_64-linux-gnu/4.1.2/cc1plus -E -quiet -v -D_GNU_SOURCE
reduced-problem.cpp -mtune=generic -fpch-preprocess -o reduced-problem.ii
ignoring nonexistent directory "/usr/local/include/x86_64-linux-gnu"
ignoring nonexistent directory
"/usr/lib/gcc/x86_64-linux-gnu/4.1.2/../../../../x86_64-linux-gnu/include"
ignoring nonexistent directory "/usr/include/x86_64-linux-gnu"
#include "..." search starts here:
#include <...> search starts here:
 /usr/lib/gcc/x86_64-linux-gnu/4.1.2/../../../../include/c++/4.1.2

/usr/lib/gcc/x86_64-linux-gnu/4.1.2/../../../../include/c++/4.1.2/x86_64-linux-gnu
 /usr/lib/gcc/x86_64-linux-gnu/4.1.2/../../../../include/c++/4.1.2/backward
 /usr/local/include
 /usr/lib/gcc/x86_64-linux-gnu/4.1.2/include
 /usr/include
End of search list.
 /usr/lib/gcc/x86_64-linux-gnu/4.1.2/cc1plus -fpreprocessed reduced-problem.ii
-quiet -dumpbase reduced-problem.cpp -mtune=generic -auxbase reduced-problem
-version -fstack-protector -fstack-protector -o reduced-problem.s
GNU C++ version 4.1.2 20060928 (prerelease) (Ubuntu 4.1.1-13ubuntu5)
(x86_64-linux-gnu)
        compiled by GNU C version 4.1.2 20060928 (prerelease) (Ubuntu
4.1.1-13ubuntu5).
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
Compiler executable checksum: cb8dbea25f87c7cd7562ef1cc3d1246e

cc1plus: out of memory allocating 770058242 bytes after a total of 1343488
bytes


-- 
           Summary: GCC crashes with OOM when compiling trivial source file
                    (no endless loop)
           Product: gcc
           Version: 4.1.2
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: aribrei at arcor dot de
 GCC build triplet: x86_64-linux-gnu
  GCC host triplet: x86_64-linux-gnu
GCC target triplet: x86_64-linux-gnu


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


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

* [Bug c++/32290] GCC crashes with OOM when compiling trivial source file (no endless loop)
  2007-06-11 18:03 [Bug c++/32290] New: GCC crashes with OOM when compiling trivial source file (no endless loop) aribrei at arcor dot de
@ 2007-06-11 18:05 ` aribrei at arcor dot de
  2007-06-11 18:06 ` aribrei at arcor dot de
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: aribrei at arcor dot de @ 2007-06-11 18:05 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from aribrei at arcor dot de  2007-06-11 18:05 -------
Created an attachment (id=13680)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=13680&action=view)
Unpreprocessed source file (informational)


-- 


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


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

* [Bug c++/32290] GCC crashes with OOM when compiling trivial source file (no endless loop)
  2007-06-11 18:03 [Bug c++/32290] New: GCC crashes with OOM when compiling trivial source file (no endless loop) aribrei at arcor dot de
  2007-06-11 18:05 ` [Bug c++/32290] " aribrei at arcor dot de
@ 2007-06-11 18:06 ` aribrei at arcor dot de
  2007-06-11 18:30 ` aribrei at arcor dot de
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: aribrei at arcor dot de @ 2007-06-11 18:06 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from aribrei at arcor dot de  2007-06-11 18:05 -------
Created an attachment (id=13681)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=13681&action=view)
Preprocessed source file


-- 


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


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

* [Bug c++/32290] GCC crashes with OOM when compiling trivial source file (no endless loop)
  2007-06-11 18:03 [Bug c++/32290] New: GCC crashes with OOM when compiling trivial source file (no endless loop) aribrei at arcor dot de
  2007-06-11 18:05 ` [Bug c++/32290] " aribrei at arcor dot de
  2007-06-11 18:06 ` aribrei at arcor dot de
@ 2007-06-11 18:30 ` aribrei at arcor dot de
  2007-06-11 20:40 ` [Bug c++/32290] GCC crashes with OOM when compiling relatively simple " aribrei at arcor dot de
  2007-06-12 11:30 ` rguenth at gcc dot gnu dot org
  4 siblings, 0 replies; 6+ messages in thread
From: aribrei at arcor dot de @ 2007-06-11 18:30 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from aribrei at arcor dot de  2007-06-11 18:30 -------
Created an attachment (id=13682)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=13682&action=view)
The same as #13681 but without those tons of empty lines

$ perl -ne 's/#.*$//; print if /\S/' reduced-problem.ii >
reduced-problem.ii.nocrap


-- 


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


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

* [Bug c++/32290] GCC crashes with OOM when compiling relatively simple source file (no endless loop)
  2007-06-11 18:03 [Bug c++/32290] New: GCC crashes with OOM when compiling trivial source file (no endless loop) aribrei at arcor dot de
                   ` (2 preceding siblings ...)
  2007-06-11 18:30 ` aribrei at arcor dot de
@ 2007-06-11 20:40 ` aribrei at arcor dot de
  2007-06-12 11:30 ` rguenth at gcc dot gnu dot org
  4 siblings, 0 replies; 6+ messages in thread
From: aribrei at arcor dot de @ 2007-06-11 20:40 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from aribrei at arcor dot de  2007-06-11 20:40 -------
Reported to crash as well on gcc 3.4 and 4.2, with a message like this:

gcc 4.2: cc1plus: out of memory allocating 385029117 bytes after a total of
155668480 bytes

Reported to compile fine on Microsoft Visual C++ 8.0


-- 


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


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

* [Bug c++/32290] GCC crashes with OOM when compiling relatively simple source file (no endless loop)
  2007-06-11 18:03 [Bug c++/32290] New: GCC crashes with OOM when compiling trivial source file (no endless loop) aribrei at arcor dot de
                   ` (3 preceding siblings ...)
  2007-06-11 20:40 ` [Bug c++/32290] GCC crashes with OOM when compiling relatively simple " aribrei at arcor dot de
@ 2007-06-12 11:30 ` rguenth at gcc dot gnu dot org
  4 siblings, 0 replies; 6+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2007-06-12 11:30 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #5 from rguenth at gcc dot gnu dot org  2007-06-12 11:29 -------
mainline uses 10MB to compile reduced-problem.ii.nocrap.  So this is actually
a dup of PR29433.

*** This bug has been marked as a duplicate of 29433 ***


-- 

rguenth at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |DUPLICATE


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


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

end of thread, other threads:[~2007-06-12 11:30 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-06-11 18:03 [Bug c++/32290] New: GCC crashes with OOM when compiling trivial source file (no endless loop) aribrei at arcor dot de
2007-06-11 18:05 ` [Bug c++/32290] " aribrei at arcor dot de
2007-06-11 18:06 ` aribrei at arcor dot de
2007-06-11 18:30 ` aribrei at arcor dot de
2007-06-11 20:40 ` [Bug c++/32290] GCC crashes with OOM when compiling relatively simple " aribrei at arcor dot de
2007-06-12 11:30 ` rguenth 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).