Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 10 Jun 2003 17:23:34 +0200
From:      Sheldon Hearn <sheldonh@starjuice.net>
To:        Andrew Houghton <aah@acm.org>
Cc:        freebsd-java@FreeBSD.org
Subject:   Re: idea-3.0.4 w/ FreeBSD 5.1: "Bad file descriptor"
Message-ID:  <20030610152334.GJ1019@starjuice.net>
In-Reply-To: <3EE5F6BE.5040108@acm.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>

next in thread | previous in thread | raw e-mail | index | archive | help
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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030610152334.GJ1019>