From owner-freebsd-java Sun Mar 9 13:39: 9 2003 Delivered-To: freebsd-java@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4111037B401 for ; Sun, 9 Mar 2003 13:39:07 -0800 (PST) Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2D07043FDF for ; Sun, 9 Mar 2003 13:39:06 -0800 (PST) (envelope-from dan@dan.emsphone.com) Received: (from dan@localhost) by dan.emsphone.com (8.12.7/8.12.7) id h29LcqgG054475; Sun, 9 Mar 2003 15:38:52 -0600 (CST) (envelope-from dan) Date: Sun, 9 Mar 2003 15:38:52 -0600 From: Dan Nelson To: Khairil Yusof Cc: Alexey Zelkin , Greg Lewis , freebsd-java@FreeBSD.ORG Subject: Re: Error building jdk 1.4.1 on 5.0-p4 Message-ID: <20030309213852.GA47786@dan.emsphone.com> References: <1047079208.715.45.camel@daemon.home.net> <20030308172845.A61777@misty.eyesbeyond.com> <1047114557.32447.28.camel@daemon.home.net> <20030308120006.A75574@phantom.cris.net> <1047244951.683.8.camel@daemon.home.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1047244951.683.8.camel@daemon.home.net> X-OS: FreeBSD 5.0-CURRENT X-message-flag: Outlook Error User-Agent: Mutt/1.5.3i Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org In the last episode (Mar 10), Khairil Yusof said: > On Sat, 2003-03-08 at 18:00, Alexey Zelkin wrote: > > If you're using 5.0-RELEASE -- first question - did you apply > > libc_r patch and rebuily/reinstalled libc_r ? > > To make sure, I tried to rebuild with 5.0-CURRENT (9th March). I get > to this point before the linux javac fails. I have 1.6GB of swap left > and no limits on memory use. > > VM option 'ThreadStackSize=768' > Error occurred during initialization of VM > java.lang.OutOfMemoryError > Dumping core.... > gmake[4]: *** > [/usr/ports/java/jdk14/work/control/build/bsd-i586/tmp/sun/java.net/net/obj_g/.class.headers.i586] Abort trap (core dumped) I get the same error at the same place on my system. javah_g has allocated only 170MB at this point, according to top. I've got 1Gb of RAM, no ulimits, and lots of free swap. Here's the backtrace: (gdb) where #0 0x280db9c3 in kill () from /usr/lib/libc.so.5 #1 0x281409cd in abort () from /usr/lib/libc.so.5 #2 0x286c7fe2 in os::abort(int) (dump_core=1) at /usr/ports/java/jdk14/work/hotspot/src/os/bsd/vm/os_bsd.cpp:1039 #3 0x284e1871 in vm_abort() () at /usr/ports/java/jdk14/work/hotspot/src/share/vm/runtime/java.cpp:500 #4 0x284e1949 in vm_exit_during_initialization(Handle) () at /usr/ports/java/jdk14/work/hotspot/src/share/vm/runtime/java.cpp:509 #5 0x2846ebbf in ~ExceptionMark (this=0xbfbfdba0) at /usr/ports/java/jdk14/work/hotspot/src/share/vm/utilities/exceptions.cpp:231 #6 0x287676f2 in Threads::create_vm(JavaVMInitArgs*) (args=0x28c1dda4) at /usr/ports/java/jdk14/work/hotspot/src/share/vm/runtime/thread.cpp:2712 #7 0x285570e5 in JNI_CreateJavaVM (vm=0xbfbfe510, penv=0xbfbfe50c, args=0x0) at /usr/ports/java/jdk14/work/hotspot/src/share/vm/prims/jni.cpp:2318 #8 0x0804a7b8 in InitializeJVM (pvm=0xbfbfe510, penv=0xbfbfe50c, ifn=0xbfbfe4e4) at ../../../../src/share/bin/java.c:939 #9 0x08049015 in main (argc=31, argv=0x8065108) at ../../../../src/share/bin/java.c:234 #10 0x08048bf5 in _start ( ap=0xbfbfe7d8 "/usr/ports/java/jdk14/work/control/build/bsd-i586/bin/javah_g") at /usr/src/lib/csu/i386-elf/crt1.c:103 -- Dan Nelson dnelson@allantgroup.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message