From owner-freebsd-java@FreeBSD.ORG Thu Feb 8 18:50:31 2007 Return-Path: X-Original-To: freebsd-java@freebsd.org Delivered-To: freebsd-java@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 7B03516A40A for ; Thu, 8 Feb 2007 18:50:31 +0000 (UTC) (envelope-from glewis@eyesbeyond.com) Received: from misty.eyesbeyond.com (gerbercreations.com [71.39.140.16]) by mx1.freebsd.org (Postfix) with ESMTP id 4418813C4B5 for ; Thu, 8 Feb 2007 18:50:31 +0000 (UTC) (envelope-from glewis@eyesbeyond.com) Received: from misty.eyesbeyond.com (localhost.eyesbeyond.com [127.0.0.1]) by misty.eyesbeyond.com (8.13.1/8.13.3) with ESMTP id l18Io94v031212; Thu, 8 Feb 2007 10:50:09 -0800 (PST) (envelope-from glewis@eyesbeyond.com) Received: (from glewis@localhost) by misty.eyesbeyond.com (8.13.1/8.13.3/Submit) id l18Io8lu031211; Thu, 8 Feb 2007 10:50:08 -0800 (PST) (envelope-from glewis@eyesbeyond.com) X-Authentication-Warning: misty.eyesbeyond.com: glewis set sender to glewis@eyesbeyond.com using -f Date: Thu, 8 Feb 2007 10:50:08 -0800 From: Greg Lewis To: Jan Grant Message-ID: <20070208185008.GB31177@misty.eyesbeyond.com> References: <20070207153528.H25702@tribble.ilrt.bris.ac.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20070207153528.H25702@tribble.ilrt.bris.ac.uk> User-Agent: Mutt/1.4.2.2i Cc: freebsd-java@freebsd.org Subject: Re: krb5 bug: Do any of the freebsd java folk (Greg?) have an upstream contact? X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 08 Feb 2007 18:50:31 -0000 Hi Jan, On Wed, Feb 07, 2007 at 03:44:01PM +0000, Jan Grant wrote: > I'm trying to raise a bug with Sun about the sun.security.krb5 > implementation. Unfortunately this is somewhat hampered by my suffering > from RSI at the moment. > > The problem is a straightforward resource leak, as you can see if you > look at this: > > http://java.sun.com/j2se/jrl_download.html > > in particular, at > > jdk_sec-1_5_0-src-scsl.zip > > You'll see that sun.security.krb5.internal.UDPClient has no close() > method; and the UDPClient-using code path in sun.security.krb5.KrbKdcReq > (which has a few other close-to-the-coalface errors) consequently leaks > FDs (unlike the TCP path, which has a try/finally that closes the socket > properly). > > We're seeing a krb5 client application (the Yale CAS SSO) keel over in > no time due to FD exhaustion. A trivial fix (the non-whitespace part of > the diff is 8 lines) sorts this out. > > Prepping a test case is somewhat difficult when this email represents > most of the typing I'm going to get done today :-( Can you please send me the diff? I can definitely get it into the port and will see what I can do with Sun. -- Greg Lewis Email : glewis@eyesbeyond.com Eyes Beyond Web : http://www.eyesbeyond.com Information Technology FreeBSD : glewis@FreeBSD.org