From owner-freebsd-java@FreeBSD.ORG  Mon Nov 26 04:46:02 2007
Return-Path: <owner-freebsd-java@FreeBSD.ORG>
Delivered-To: freebsd-java@freebsd.org
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 5865716A418
	for <freebsd-java@freebsd.org>; Mon, 26 Nov 2007 04:46:02 +0000 (UTC)
	(envelope-from monksoft@gmail.com)
Received: from an-out-0708.google.com (an-out-0708.google.com [209.85.132.242])
	by mx1.freebsd.org (Postfix) with ESMTP id 1590313C457
	for <freebsd-java@freebsd.org>; Mon, 26 Nov 2007 04:46:01 +0000 (UTC)
	(envelope-from monksoft@gmail.com)
Received: by an-out-0708.google.com with SMTP id c14so104402anc
	for <freebsd-java@freebsd.org>; Sun, 25 Nov 2007 20:45:59 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma;
	h=domainkey-signature:received:received:message-id:date:from:to:subject:mime-version:content-type;
	bh=LzemWVARvJLDWVUYpskgbLqTdptj16EoSuvLe70aXTA=;
	b=VTcBHSUNiYKfHOtVdJFpvO03oz3sfsuc1t6B3fMmnsDwRFLcH8JseBujhj+Rg9O2TumG9gZZrEG6CY7quOylvU/rdQzGmPNkDzlr8PeJnTZvOFplKSsD1riVrs/nf9Jna495JU1w/iNwLNpRs/y0CqpzqHWwGDavl1LNQoez47o=
DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma;
	h=received:message-id:date:from:to:subject:mime-version:content-type;
	b=bDdWrHk1QJoYh3Ky51zFLJI6ij9qDoICtAIWiTDjcLWEFfwGsxD4L4vkWZnn59Gcc8k5ijfB7WJUcDGNoaJCl9HlT6BZR2z+auuZio+o2epF0FY2x1NtS10AOlrFNdzkedPKtojchuRch04BxaS/e5SFLK14hDROXJ6s9z2k3fw=
Received: by 10.142.211.10 with SMTP id j10mr185819wfg.1196050739068;
	Sun, 25 Nov 2007 20:18:59 -0800 (PST)
Received: by 10.142.101.2 with HTTP; Sun, 25 Nov 2007 20:18:59 -0800 (PST)
Message-ID: <4a383e3a0711252018p20a04db3k38fffd1d11c2f7cd@mail.gmail.com>
Date: Mon, 26 Nov 2007 15:18:59 +1100
From: "Tim Liddelow" <monksoft@gmail.com>
To: freebsd-java@freebsd.org
MIME-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
X-Content-Filtered-By: Mailman/MimeDel 2.1.5
Subject: mutex-bug in recent releng_[67]?
X-BeenThere: freebsd-java@freebsd.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: Porting Java to FreeBSD <freebsd-java.freebsd.org>
List-Unsubscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-java>,
	<mailto:freebsd-java-request@freebsd.org?subject=unsubscribe>
List-Archive: <http://lists.freebsd.org/pipermail/freebsd-java>
List-Post: <mailto:freebsd-java@freebsd.org>
List-Help: <mailto:freebsd-java-request@freebsd.org?subject=help>
List-Subscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-java>,
	<mailto:freebsd-java-request@freebsd.org?subject=subscribe>
X-List-Received-Date: Mon, 26 Nov 2007 04:46:02 -0000

Hi,

I saw this post after trawling the archives trying to find a solution to a
problem I'm having - and I can say that I'm seeing the same issue, in this
case with CruiseControl.

We've been running CruiseControl on 6.2-STABLE for a while without issues,
and about a week ago (after the box was rebooted into a new kernel) started
to see java processes consuming 100% CPU.  I have confirmed that the problem
doesn't occur when I use the Linux JDK.  So something has changed; what I
cannot tell (I've tried to find any kernel commits that may be related) is
exactly where.

I've seen the followup posts regarding reader/writer processes - I'm just
not sure this bug is limited to the Java exec(), but perhaps it is tickled
by it.  To reproduce, I've compiled CruiseControl (from sourceforge) and it
hangs during the running of unit tests, whereas with the Linux JVM it
doesn't.

I think we may have a real bug here.  Sorry I can't give more precise
information - I'm still investigating.

Cheers
Tim.