From owner-freebsd-java Fri Aug 31 10:42:57 2001 Delivered-To: freebsd-java@freebsd.org Received: from mgr1.xmission.com (mgr1.xmission.com [198.60.22.201]) by hub.freebsd.org (Postfix) with ESMTP id 4E69737B407 for ; Fri, 31 Aug 2001 10:42:50 -0700 (PDT) Received: from [166.70.7.81] (helo=misty.eyesbeyond.com) by mgr1.xmission.com with esmtp (Exim 3.22 #1) id 15csJb-0003sO-00; Fri, 31 Aug 2001 11:42:48 -0600 Received: (from glewis@localhost) by misty.eyesbeyond.com (8.11.3/8.11.3) id f7VHghY70994; Sat, 1 Sep 2001 03:12:43 +0930 (CST) (envelope-from glewis) Date: Sat, 1 Sep 2001 03:12:42 +0930 From: Greg Lewis To: Bill Huey Cc: Mikhail Kruk , java@FreeBSD.ORG, glewis@eyesbeyond.com Subject: Re: jdk1.3.1 socket problem Message-ID: <20010901031241.A70927@misty.eyesbeyond.com> References: <55lmk5czi0.wl@tripper.private> <20010831023820.A20158@gnuppy> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20010831023820.A20158@gnuppy>; from billh@gnuppy.monkey.org on Fri, Aug 31, 2001 at 02:38:20AM -0700 Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org On Fri, Aug 31, 2001 at 02:38:20AM -0700, Bill Huey wrote: > Check this out: > > [billh@finfin]$ ../../../bin/appletviewer example1.html > _X11TransOpenCOTSClient(tcp/gnuppy:0) > _X11TransOpen(1,tcp/gnuppy:0) > _X11TransParseAddress(tcp/gnuppy:0) > _X11TransSelectTransport(tcp) > _X11TransSocketOpenCOTSClient(tcp,gnuppy,0) > _X11TransSocketSelectFamily(tcp) > _X11TransSocketOpen(1,1) > _X11TransConnect(5,tcp/gnuppy:0) > _X11TransParseAddress(tcp/gnuppy:0) > _X11TransSocketINETConnect(5,gnuppy,0) > _X11TransSocketINETConnect: inet_addr(gnuppy) = ffffffff > _X11TransSocketINETConnect: sockname.sin_port = 6000 > _X11TransSocketINETConnect: Can't connect: errno = 56 > _X11TransClose(5) > _X11TransSocketINETClose(81ad580,5) > > It's the debug log from XOpenDisplay and it's attempt at doing a connect(). > > /usr/include/sys/errno.h:#define EISCONN 56 /* Socket is already connected */ This is probably the same problem, given its the same errno :). > The problem with X remote display and connect() in that example are definitely related. > > IP address value of 0xffffffff ? what hell ? > > What do you think Greg ? > > This could be a race of some sort. More investigation needed. ;-) Try appletviewer_g. I expect it will be the same as using java_g on the previous example. Basically you get an assertion failure about flags being set on the file descriptor, which is an earlier symptom of the same problem we're seeing here. Haven't had time to track it down yet, I'm going to try both a 1.2.2 and a 1.3.1 debugging version with logging enabled and see if that gives any clues. -- Greg Lewis Email : glewis@eyesbeyond.com Eyes Beyond Phone : (801) 765 1887 Information Technology Web : http://www.eyesbeyond.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message