From owner-freebsd-java@FreeBSD.ORG Thu Sep 16 09:33:40 2004 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 537E216A4CE for ; Thu, 16 Sep 2004 09:33:40 +0000 (GMT) Received: from dirg.bris.ac.uk (dirg.bris.ac.uk [137.222.10.102]) by mx1.FreeBSD.org (Postfix) with ESMTP id D7BBD43D46 for ; Thu, 16 Sep 2004 09:33:39 +0000 (GMT) (envelope-from Jan.Grant@bristol.ac.uk) Received: from mail.ilrt.bris.ac.uk ([137.222.16.62]) by dirg.bris.ac.uk with esmtp (Exim 4.34) id 1C7se0-0004Ru-Ti; Thu, 16 Sep 2004 10:33:38 +0100 Received: from cmjg (helo=localhost) by mail.ilrt.bris.ac.uk with local-esmtp (Exim 4.34) id 1C7sdy-0000gA-Ia; Thu, 16 Sep 2004 10:33:35 +0100 Date: Thu, 16 Sep 2004 10:33:34 +0100 (BST) From: Jan Grant X-X-Sender: cmjg@mail.ilrt.bris.ac.uk To: Cameron C Thomson In-Reply-To: Message-ID: References: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: Jan Grant X-Spam-Score: 0.0 X-Spam-Level: / cc: freebsd-java@freebsd.org Subject: Re: Native JDK random # seed X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 16 Sep 2004 09:33:40 -0000 On Thu, 16 Sep 2004, Cameron C Thomson wrote: > > I'm running FreeBSD 4.10 with jdk 1.4.2p6. > Summary: The na= tive JDK should provide the same stack trace error as > the linux-sun-jdk whe= n it suffers from a lack of entropy, rather > than simply locking with n= o output. > I had a number of apps that locked solid with no debug out= put or > stack trace. I ran these apps using the linux-sun-jdk and reci= eved > an error relating to seeding random numbers (I can recreate and paste > = the stack trace if needed). I then switched back to the native jdk > an= d seeded /dev/random with 'rndcontrol -s 10' . Now the native JDK > gets past= the lockup. > P.S. My solution to this is to set rndcontro= l in a startup script -- > let me know if I'm missing something.. > Tha= nks, > - C. Colby Thomson > J.D. Edwards Design Studio > [1]cthomson@unlnotes.unl.edu= For what it's worth, this reminds me of a lack-of-entropy problem that I sorted out on -4-stable with the native jdk. In the end I turned on some more entropy harvesting using rndcontrol; but my problem with attempting to track down the issue was that attempts to use the java debugger to get a trace of the offending thread wedged solid. -- jan grant, ILRT, University of Bristol. http://www.ilrt.bris.ac.uk/ Tel +44(0)117 9287088 Fax +44 (0)117 9287112 http://ioctl.org/jan/ Not as randy or clumsom as a blaster.