From owner-freebsd-java@FreeBSD.ORG Wed Apr 27 03:48:37 2005 Return-Path: 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 630E016A4CE for ; Wed, 27 Apr 2005 03:48:37 +0000 (GMT) Received: from pop-a065c10.pas.sa.earthlink.net (pop-a065c10.pas.sa.earthlink.net [207.217.121.184]) by mx1.FreeBSD.org (Postfix) with ESMTP id EFB7243D46 for ; Wed, 27 Apr 2005 03:48:36 +0000 (GMT) (envelope-from kwsn@earthlink.net) Received: from dialup-4.240.6.210.dial1.phoenix1.level3.net ([4.240.6.210] helo=jonnyv.kwsn.lan) by pop-a065c10.pas.sa.earthlink.net with esmtp (Exim 3.36 #10) id 1DQdXI-0000oL-00; Tue, 26 Apr 2005 20:48:29 -0700 From: Jon Kuster To: Greg Lewis In-Reply-To: <20050426231007.GA33227@misty.eyesbeyond.com> References: <324cec6d05041712065a3ff926@mail.gmail.com> <20050420145915.GC78133@misty.eyesbeyond.com> <1114063800.12807.17.camel@jonnyv.kwsn.lan> <20050426231007.GA33227@misty.eyesbeyond.com> Content-Type: text/plain Date: Tue, 26 Apr 2005 20:48:26 -0700 Message-Id: <1114573706.764.41.camel@jonnyv.kwsn.lan> Mime-Version: 1.0 X-Mailer: Evolution 2.2.2 FreeBSD GNOME Team Port Content-Transfer-Encoding: 7bit cc: Toby Murray cc: freebsd-java@freebsd.org Subject: Re: java crashing when load average is high X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: kwsn@earthlink.net List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 27 Apr 2005 03:48:37 -0000 Hi Greg, On Tue, 2005-04-26 at 17:10 -0600, Greg Lewis wrote: > Hi Jon, > > On Wed, Apr 20, 2005 at 11:10:00PM -0700, Jon Kuster wrote: > > Native x86 1.4 went straight into the loop. Native x86 1.5 immediately > > segfaulted - even on `java -version`. I removed all java-related ports > > and linux ports, then reinstalled linux_base-8 and linux-sun-jdk14 and > > tried to build jdk15 again. That build hung. I tried it again this > > afternoon and somehow, it succeeded (after manual intervention when the > > build craps out on a spectacularly long command, but I expected that). > > Just exactly what was that manual intervention? Did you split up the > command that failed? Yes, pretty much. I don't have a log of the build on this machine. I think I have one on our Dell, but it's currently being shipped to the colo, so I won't be able to get it to you for a few days (assuming it's still there). Here are the instructions Ernst Winter gave me that got me around this hurdle: -----------------------------Snip------------------------------------- i had the same problem and solved it executing the last command which caused the error manually. Looks like the error comes because it's a very long command. Just put the command that comes between 'then' and 'fi' in a shell file and execute it manually in the directory work/j2sre/make/java/java (I'm not seating now in my amd64 FreeBSD computer but I think that was the directory). The compilation will go on without any problem if you resume it afterwards with a 'make build'. -- J.V. Jordan Try 'make build |& tee build.out' (if your shell is csh or tcsh) or 'make build 2>&1 | tee build.out' (if sh or bash). After the error comes, edit build.out and you will see the command causing it (takes about two pages). -----------------------------Snip------------------------------------- I did just what that says. After the build died, I found the then, and the fi, and copied/pasted everything in between into a shell script and ran it, then restarted the build. IIRC, the pasting process broke it up into 4 lines or so. Three were fairly short, but the 4th was in the neighborhood of 25K or so, by ee's column count. Once I regain access to the machine, I'll send a copy of that shell script as well, if it's still there. -Jon