public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/12245] New: Crashes when compiling large initialized arrays
@ 2003-09-11 14:50 gccBug dot 9 dot OkianWarrior at SpamGourmet dot com
  2005-07-22 18:45 ` [Bug c/12245] [3.4/4.0/4.1 regression] Uses lots of memory " pinskia at gcc dot gnu dot org
                   ` (5 more replies)
  0 siblings, 6 replies; 32+ messages in thread
From: gccBug dot 9 dot OkianWarrior at SpamGourmet dot com @ 2003-09-11 14:50 UTC (permalink / raw)
  To: gcc-bugs

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

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

           Summary: Crashes when compiling large initialized arrays
           Product: gcc
           Version: 3.3.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: c
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: gccBug dot 9 dot OkianWarrior at SpamGourmet dot com
                CC: gcc-bugs at gcc dot gnu dot org
 GCC build triplet: 3.3.1
  GCC host triplet: Linux 2.4.19-16mdk (Mandrake)
GCC target triplet: Linux 2.4.19-16mdk (Mandrake)

This is a simple program with large initialized static arrays (20 arrays of
200,000 elements each, plus a single array with 500,000 elements.

Compiling crashes the compiler after about an hour (900 MHZ system).
Reproduce by typing "Make" (Makefile included).
Actual results are listed below.
Compiling with -Wall shows no warnings.

I really hate to do this to you, but I believe that the problem is related to
initializing very large arrays. Consequently, I cannot generate a small program
which illustrates the problem (and it takes an hour for each experiment, which
doesn't help either). My minimal solution is a C source file of 152 lines
(inconsequential), and two include files of 200,000 lines and 500,000 lines
each. The include files contain initialization data for 21 arrays, and are
nothing more than a list of numbers and commas.

The total source and intermediate files are so BIG that I have not included them
here. I know I'm not supposed to send archives and I'm *really* not supposed to
ask you to download the test cases from the net, but in this instance I think
it's appropriate.

You can get the complete test set (1 source, 2 includes, Makefile, and saved
intermediate file) at www.OkianWarrior.com/gccBug.tar.gz

/home/kibaro/tmp: make
gcc -v -save-temps -o CSolv CSolv.c
Reading specs from /usr/local/lib/gcc-lib/i686-pc-linux-gnu/3.3.1/specs
Configured with: ./configure
Thread model: posix
gcc version 3.3.1
 /usr/local/lib/gcc-lib/i686-pc-linux-gnu/3.3.1/cc1 -E -quiet -v -D__GNUC__=3
-D__GNUC_MINOR__=3 -D__GNUC_PATCHLEVEL__=1 CSolv.c CSolv.i
ignoring nonexistent directory "NONE/include"
ignoring nonexistent directory "/usr/local/i686-pc-linux-gnu/include"
#include "..." search starts here:
#include <...> search starts here:
 /usr/local/include
 /usr/local/lib/gcc-lib/i686-pc-linux-gnu/3.3.1/include
 /usr/include
End of search list.
 /usr/local/lib/gcc-lib/i686-pc-linux-gnu/3.3.1/cc1 -fpreprocessed CSolv.i
-quiet -dumpbase CSolv.c -auxbase CSolv -version -o CSolv.s
GNU C version 3.3.1 (i686-pc-linux-gnu)
        compiled by GNU C version 3.2 (Mandrake Linux 9.0 3.2-1mdk).
GGC heuristics: --param ggc-min-expand=47 --param ggc-min-heapsize=32119
gcc: Internal error: Killed (program cc1)
Please submit a full bug report.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
make: *** [CSolv] Error 1


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

end of thread, other threads:[~2010-05-22 18:11 UTC | newest]

Thread overview: 32+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-12245-6931@http.gcc.gnu.org/bugzilla/>
2005-10-03 17:54 ` [Bug c/12245] [3.4/4.0/4.1 regression] Uses lots of memory when compiling large initialized arrays rguenth at gcc dot gnu dot org
2005-10-11 19:24 ` rth at gcc dot gnu dot org
2005-10-11 19:30 ` ian at airs dot com
2006-12-13 11:37 ` [Bug c/12245] [4.0/4.1/4.2/4.3 " niemayer at isg dot de
2007-05-14 21:26 ` mmitchel at gcc dot gnu dot org
2007-05-15 15:54 ` niemayer at isg dot de
2007-05-15 16:05 ` pluto at agmk dot net
2007-07-20  3:50 ` mmitchel at gcc dot gnu dot org
2007-10-09 19:25 ` mmitchel at gcc dot gnu dot org
2008-01-05 16:02 ` rguenth at gcc dot gnu dot org
2008-01-17 17:00 ` jsm28 at gcc dot gnu dot org
2008-01-17 17:45 ` niemayer at isg dot de
2008-01-18  8:46 ` ian at airs dot com
2008-02-01 16:53 ` jsm28 at gcc dot gnu dot org
2008-05-19 20:23 ` [Bug c/12245] [4.1/4.2/4.3/4.4 " jsm28 at gcc dot gnu dot org
2008-07-04 22:44 ` [Bug c/12245] [4.2/4.3/4.4 " jsm28 at gcc dot gnu dot org
2009-02-10 10:12 ` rguenth at gcc dot gnu dot org
2009-02-21 12:40 ` hubicka at gcc dot gnu dot org
2009-02-21 12:50 ` rguenther at suse dot de
2009-02-22 11:21 ` hubicka at gcc dot gnu dot org
2009-02-22 19:04 ` rguenther at suse dot de
2009-02-23 13:42 ` hubicka at gcc dot gnu dot org
2009-02-23 16:47 ` hubicka at gcc dot gnu dot org
2009-03-31 16:13 ` [Bug c/12245] [4.3/4.4/4.5 " jsm28 at gcc dot gnu dot org
2009-08-04 12:27 ` rguenth at gcc dot gnu dot org
2010-05-22 18:11 ` [Bug c/12245] [4.3/4.4/4.5/4.6 " rguenth at gcc dot gnu dot org
2003-09-11 14:50 [Bug c/12245] New: Crashes " gccBug dot 9 dot OkianWarrior at SpamGourmet dot com
2005-07-22 18:45 ` [Bug c/12245] [3.4/4.0/4.1 regression] Uses lots of memory " pinskia at gcc dot gnu dot org
2005-07-25  1:30 ` pinskia at gcc dot gnu dot org
2005-07-25  1:34 ` pinskia at gcc dot gnu dot org
2005-09-12  8:55 ` rguenth at gcc dot gnu dot org
2005-09-12 10:03 ` rguenth at gcc dot gnu dot org
2005-09-12 10:10 ` giovannibajo at libero dot it

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).