public inbox for java-prs@sourceware.org
help / color / mirror / Atom feed
From: "dave at hiauly1 dot hia dot nrc dot ca" <gcc-bugzilla@gcc.gnu.org>
To: java-prs@gcc.gnu.org
Subject: [Bug java/29587] jc1: out of memory allocating 4072 bytes after a total of 708630224 bytes
Date: Sat, 04 Nov 2006 22:07:00 -0000	[thread overview]
Message-ID: <20061104220735.18410.qmail@sourceware.org> (raw)
In-Reply-To: <bug-29587-276@http.gcc.gnu.org/bugzilla/>



------- Comment #5 from dave at hiauly1 dot hia dot nrc dot ca  2006-11-04 22:07 -------
Subject: Re:  jc1: out of memory allocating 4072 bytes after a total of
708630224 bytes

> Except that all of these were fixed in the followup patch and a later
> typo fix, *including* the memory usage (see honza's tester).

I may have been wrong above as to which java compilation caused the build
failure because make -j 4 was used.  In any case, the compilation fails
with the gnu-xml.list.  The backtrace is shown below.  Seems to indicate
a problem with alias analysis.

Breakpoint 1, xmalloc_failed (size=1073885996)
    at ../../gcc/libiberty/xmalloc.c:123
123       if (first_break != NULL)
(gdb) bt
#0  xmalloc_failed (size=1073885996) at ../../gcc/libiberty/xmalloc.c:123
#1  0x003da3ec in xmalloc (size=4072) at ../../gcc/libiberty/xmalloc.c:149
#2  0x003d8c0c in _obstack_newchunk (h=0x4002332c, length=2062413872)
    at ../../gcc/libiberty/obstack.c:253
#3  0x000b1ff4 in bitmap_elt_insert_after (head=0x42631088, elt=0x6a2c7e38,
    indx=426) at ../../gcc/gcc/bitmap.c:122
#4  0x000b215c in bitmap_ior_into (a=0x42631088, b=0x7aedf030)
    at ../../gcc/gcc/bitmap.c:1170
#5  0x0018d408 in set_union_with_increment (to=0x42631088, from=0x40ea8c40,
    inc=0) at ../../gcc/gcc/tree-ssa-structalias.c:715
#6  0x0019089c in solve_graph (graph=0x40044f28)
    at ../../gcc/gcc/tree-ssa-structalias.c:2084
#7  0x00191d48 in compute_points_to_sets (ai=0x40ea8c40)
    at ../../gcc/gcc/tree-ssa-structalias.c:4840
#8  0x001f2638 in compute_may_aliases () at ../../gcc/gcc/tree-ssa-alias.c:948
#9  0x00185e50 in execute_one_pass (pass=0x4000c158)
    at ../../gcc/gcc/passes.c:870
#10 0x00185fcc in execute_pass_list (pass=0x4000c158)
    at ../../gcc/gcc/passes.c:917
#11 0x00185fe0 in execute_pass_list (pass=0x40002b60)
    at ../../gcc/gcc/passes.c:918
#12 0x0008abc4 in tree_rest_of_compilation (fndecl=0x77b85c40)
    at ../../gcc/gcc/tree-optimize.c:463
#13 0x0005a1b4 in java_expand_body (fndecl=0xfe8)
    at ../../gcc/gcc/java/decl.c:2079
#14 0x001aa4ec in cgraph_expand_function (node=0x77b85cb0)
    at ../../gcc/gcc/cgraphunit.c:1241
#15 0x001abfb8 in cgraph_assemble_pending_functions ()
    at ../../gcc/gcc/cgraphunit.c:374
#16 0x001aba9c in cgraph_finalize_function (decl=0x77b85c40, nested=0 '\0')
    at ../../gcc/gcc/cgraphunit.c:503
#17 0x001abee0 in cgraph_build_static_cdtor (which=73 'I', body=0x788fc978,
    priority=1113788552) at ../../gcc/gcc/cgraphunit.c:1727
#18 0x000789d8 in java_parse_file (set_yydebug=4072)
    at ../../gcc/gcc/java/jcf-parse.c:1065
#19 0x00166c6c in toplev_main (argc=1074028328, argv=0x0)
    at ../../gcc/gcc/toplev.c:1033
#20 0x0008741c in main (argc=4072, argv=0x7aedf030) at ../../gcc/gcc/main.c:35

When solve_graph is called the last time, the size of jc1 stands at
about 321M.  This jumps rapidly to 968M.

Up to this point, the java library had been building without problems
for a number of months.

Dave


-- 


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


  parent reply	other threads:[~2006-11-04 22:07 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-10-24 23:06 [Bug java/29587] New: " danglin at gcc dot gnu dot org
2006-10-31 11:06 ` [Bug java/29587] " r dot emrich at de dot tecosim dot com
2006-10-31 15:39 ` dave at hiauly1 dot hia dot nrc dot ca
2006-11-04 15:47 ` dave at hiauly1 dot hia dot nrc dot ca
2006-11-04 17:45 ` dberlin at dberlin dot org
2006-11-04 22:07 ` dave at hiauly1 dot hia dot nrc dot ca [this message]
2006-11-05 19:16 ` dberlin at gcc dot gnu dot org
2006-11-05 21:22 ` dave at hiauly1 dot hia dot nrc dot ca
2006-11-05 21:48 ` dberlin at dberlin dot org
2006-11-06  0:43 ` dave at hiauly1 dot hia dot nrc dot ca
2006-11-07 17:40 ` dberlin at dberlin dot org
2006-11-09 17:24 ` dberlin at dberlin dot org
2006-11-10 15:20 ` dave at hiauly1 dot hia dot nrc dot ca
2006-11-13  2:18 ` dberlin at gcc dot gnu dot org
2006-11-13  2:22 ` dberlin at gcc dot gnu dot org
2006-11-13  2:22 ` dberlin at gcc dot gnu dot org
2006-11-13  2:31 ` dave at hiauly1 dot hia dot nrc dot ca
2006-12-01  1:04 ` chaoyingfu at gcc dot gnu dot org
2007-02-22  3:26 ` van at wdv dot com
2007-10-12  9:56 ` cnstar9988 at gmail dot com

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20061104220735.18410.qmail@sourceware.org \
    --to=gcc-bugzilla@gcc.gnu.org \
    --cc=java-prs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).