------- Comment #12 from alex dot d at bugmenot dot com 2007-09-19 14:38
-------
I've a similar problem when building SDL library (1.2.12), when using -O3
compilation flag. I'll try to attach an .i file that triggers the bug. After
starting the compilation, the memory starts getting consumed seemingly
indefinitely, eating all physical then swap, making system very unresponsive.
When ulimit-ing it to some sane values it crashes with messages like this:
cc1: out of memory allocating 4064 bytes after a total of 57159680 bytes
The command line:
gcc -O3 SDL_x11dyn.i
gcc -v output:
Target: i686-pc-linux-gnu
Configured with: ../configure --prefix=/usr --enable-shared
--enable-languages=c,c++,objc --enable-threads=posix --enable-__cxa_atexit
--disable-multilib --libdir=/usr/lib --libexecdir=/usr/lib --enable-clocale=gnu
--disable-libstdcxx-pch --with-tune=generic
Thread model: posix
gcc version 4.2.1
[..]
GNU C version 4.2.1 (i686-pc-linux-gnu)
compiled by GNU C version 4.2.1.
GGC heuristics: --param ggc-min-expand=36 --param ggc-min-heapsize=27924
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32199