Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 10 Jun 2003 08:18:22 -0700
From:      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:  <3EE5F6BE.5040108@acm.org>
In-Reply-To: <20030610100437.GJ72342@starjuice.net>
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>

next in thread | previous in thread | raw e-mail | index | archive | help
I tried ktrace/kdump on this, but I'm not smart enough to figure out the 
output.  Here's the relevant portions of a message I sent to Alexey 
directly a few weeks ago, for want of a better avenue (no one but 
Sheldon seemed to notice the original):

> 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. 


And here's a portion of a message I sent to IntelliJ, with essentially 
the same response as Sheldon:

> The error manifests itself in a couple of ways.
>
> First, when IDEA tries cacheing jar files in my project, it fails on 
> every copy.  The destination files are created in the right place, but 
> they all have zero length.  For each failure, a message window pops up 
> saying 'Bad file descriptor'.
>
> Second, I get the same error when I try rebuilding my project.  The 
> messages pane shows, the compilation begins, I see the errors, and 
> then the lines that referenced the errors all change to say 'Bad file 
> descriptor'.  This happens whether I use jikes or javac as my compiler.
>
> Finally, I tried rebuilding my project with IDEA running under Sun's 
> linux JDK using FreeBSD's linux compatibility mode.  Instead of 'Bad 
> file descriptor', I see 'Method not implemented' and get a number of 
> complaints in my logs about the linux compatibility not implementing 
> sendfile().
>
> Is it possible that some assumptions about FreeBSD's sendfile() 
> implementation would lead to these errors? 


Anyway.  If anyone has any new suggestions for tracking this down, I'm 
all ears.

- a.



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