From owner-freebsd-java@FreeBSD.ORG Mon May 19 18:35:11 2003 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 4BB4837B401 for ; Mon, 19 May 2003 18:35:11 -0700 (PDT) Received: from web40601.mail.yahoo.com (web40601.mail.yahoo.com [66.218.78.138]) by mx1.FreeBSD.org (Postfix) with SMTP id DA6C143FAF for ; Mon, 19 May 2003 18:35:10 -0700 (PDT) (envelope-from jmadynski@yahoo.com) Message-ID: <20030520013510.19064.qmail@web40601.mail.yahoo.com> Received: from [64.168.20.70] by web40601.mail.yahoo.com via HTTP; Mon, 19 May 2003 18:35:10 PDT Date: Mon, 19 May 2003 18:35:10 -0700 (PDT) From: James Hoffa To: freebsd-java@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Subject: possible bug with starvation 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: Tue, 20 May 2003 01:35:11 -0000 Hello-- 1. Thank you for all of your hard work on the FreeBSD java project. It is really great work. 2. I think I may have found a bug, but I am not sure. please see below. It may just be a consequence of the 4.8 threading model and is hopefully fixed in 5.X Details: My codebase uses Apache Ant to build. This works fine on WinXP, Win2K, Solaris, and Linux. Just check out of cvs, modify build.properties to reflect the environment and go. One of the Ant tasks consists of signing a jar. I compiled the 1.4 jvm for FreeBSD and tried to build my codebase. When I run the equivalent of make world (dist-all) from a bash prompt, it takes a long time to build everything on this K62-350, but finishes successfully. I set up a cron job to build the code a few times a day. Somehow, everything stops in the jarsigner task and the cpu goes idle. It is not a password/keystore prompt issue -- the job finishes OK when run from the command line. If I check back in a few hours, the same cron job is still running, waiting for jarsigner to finish. As soon as I type a command as simple as "ls" , the cpu maxes out with jarsigner and the cron job actually finishes. It is as if I awoke the sleeping/starving thread. below are some more details about my setup. If you need any additional information, I am happy to oblige. this bug is not critical to me, just trying to contribute a bit to the project. $ ant -version Apache Ant version 1.5.2 compiled on February 28 2003 $ java -version java version "1.4.1-p3" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.1-p3-root_15_may_2003_02_10) $ uname -a FreeBSD althea.thinlizard.com 4.8-STABLE FreeBSD 4.8-STABLE #0: Sat May 3 17:39:26 PDT 2003 root@althea.thinlizard.com:/usr/obj/usr/src/sys/ALTHEA i386