idea-3.0.4 w/ FreeBSD 5.1: "Bad file descriptor"
Andrew Houghton
aah at acm.org
Tue Jun 10 08:18:23 PDT 2003
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.
More information about the freebsd-java
mailing list