From owner-freebsd-java@FreeBSD.ORG Tue Jun 10 08:18:23 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 9AD7237B401 for ; Tue, 10 Jun 2003 08:18:23 -0700 (PDT) Received: from mail.speakeasy.net (mail15.speakeasy.net [216.254.0.215]) by mx1.FreeBSD.org (Postfix) with ESMTP id DBFE043FE0 for ; Tue, 10 Jun 2003 08:18:22 -0700 (PDT) (envelope-from aah@acm.org) Received: (qmail 13075 invoked from network); 10 Jun 2003 15:18:22 -0000 Received: from unknown (HELO acm.org) (aah@[216.27.178.67]) (envelope-sender ) by mail15.speakeasy.net (qmail-ldap-1.03) with SMTP for ; 10 Jun 2003 15:18:22 -0000 Message-ID: <3EE5F6BE.5040108@acm.org> Date: Tue, 10 Jun 2003 08:18:22 -0700 From: Andrew Houghton User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.4a) Gecko/20030428 X-Accept-Language: en-us, en MIME-Version: 1.0 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> In-Reply-To: <20030610100437.GJ72342@starjuice.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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:18:23 -0000 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.