From owner-freebsd-java@FreeBSD.ORG Tue Jun 10 08:23:40 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 76E7037B401 for ; Tue, 10 Jun 2003 08:23:40 -0700 (PDT) Received: from axl.seasidesoftware.co.za (axl.seasidesoftware.co.za [196.31.7.201]) by mx1.FreeBSD.org (Postfix) with ESMTP id E675843FDF for ; Tue, 10 Jun 2003 08:23:38 -0700 (PDT) (envelope-from sheldonh@starjuice.net) Received: from sheldonh by axl.seasidesoftware.co.za with local (Exim 4.20) id 19PkyE-0003rz-5p; Tue, 10 Jun 2003 17:23:34 +0200 Date: Tue, 10 Jun 2003 17:23:34 +0200 From: Sheldon Hearn To: Andrew Houghton Message-ID: <20030610152334.GJ1019@starjuice.net> Mail-Followup-To: Andrew Houghton , freebsd-java@FreeBSD.org References: <20030610090536.GD72342@starjuice.net> <20030610090954.GA7687@chihiro.leafy.idv.tw> <20030610091642.GE72342@starjuice.net> <20030610093422.GA7957@chihiro.leafy.idv.tw> <20030610100437.GJ72342@starjuice.net> <3EE5F6BE.5040108@acm.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3EE5F6BE.5040108@acm.org> User-Agent: Mutt/1.5.4i Sender: Sheldon Hearn cc: freebsd-java@FreeBSD.org Subject: Re: idea-3.0.4 w/ FreeBSD 5.1: "Bad file descriptor" 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, 10 Jun 2003 15:23:40 -0000 On (2003/06/10 08:18), Andrew Houghton wrote: > >The problem may be related to FreeBSD's implementation of sendfile(), > >but that's just a guess. Basically, the first thing that goes wrong > >is IDEA tries copying jar files to a local cache directory of it's > >own, and they all get copied with zero length, causing (I think) all > >the later problems. While IDEA tries copying the files, it gets many > >'Bad file descriptor' errors. It occurs to me this all may be related > >to NIO, which I think you said on the freebsd-java list wasn't yet done. I wouldn't use the jar failure as a way to track this down, because the problem doesn't always occur. The problem where a non-java file in a directory causes "Bad file descriptor" when you try to compile the directory is 100% reproducible. I tried to truss it today, but somewhere between Java, truss and profcs(5) on -CURRENT, my box locked solid. I was in X, so I couldn't drop to DDB. And anyway, that's a different problem. Ciao, Sheldon.