From owner-freebsd-java@FreeBSD.ORG Sat Sep 6 21:58:06 2008 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id DA42A106566B for ; Sat, 6 Sep 2008 21:58:06 +0000 (UTC) (envelope-from freebsd-java@m.gmane.org) Received: from ciao.gmane.org (main.gmane.org [80.91.229.2]) by mx1.freebsd.org (Postfix) with ESMTP id 674188FC18 for ; Sat, 6 Sep 2008 21:58:05 +0000 (UTC) (envelope-from freebsd-java@m.gmane.org) Received: from list by ciao.gmane.org with local (Exim 4.43) id 1Kc5n7-00041Y-0b for freebsd-java@freebsd.org; Sat, 06 Sep 2008 21:58:01 +0000 Received: from 81.210.229.80 ([81.210.229.80]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 06 Sep 2008 21:58:01 +0000 Received: from saper by 81.210.229.80 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 06 Sep 2008 21:58:01 +0000 X-Injected-Via-Gmane: http://gmane.org/ To: freebsd-java@freebsd.org From: Marcin Cieslak Date: Sat, 06 Sep 2008 23:57:44 +0200 Lines: 90 Message-ID: <48C2FCD8.5010005@system.pl> References: <24A133A6EE9DA04411B3CF04@ganymede.hub.org> <20080401161800.1c4ee021.cyb.@gmx.net> <20080402064543.GA30534@misty.eyesbeyond.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-ripemd160; protocol="application/pgp-signature"; boundary="------------enig284687ADA857B34375A8A090" X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 81.210.229.80 User-Agent: Mozilla/5.0 (X11; U; FreeBSD amd64; en-US; rv:1.8.1.16) Gecko/20080721 MultiZilla/1.8.3.4e SeaMonkey/1.1.11 In-Reply-To: <20080402064543.GA30534@misty.eyesbeyond.com> X-Enigmail-Version: 0.95.6 Sender: news Cc: "Marc G. Fournier" , Andreas Rudisch <"cyb."@gmx.net> Subject: Re: Azureus + 7-STABLE == Slow download + No Upload - some idea X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 06 Sep 2008 21:58:07 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig284687ADA857B34375A8A090 Content-Type: text/plain; charset=ISO-8859-2; format=flowed Content-Transfer-Encoding: quoted-printable Greg Lewis wrote: > On Tue, Apr 01, 2008 at 09:04:46PM -0300, Marc G. Fournier wrot >>> On FreeBSD 6.1/2/3 Azureus shows the same behaviour (at least on my P= C) >>> when _not_ using /etc/libmap.conf to map libthread to libc_r. >>> >>> Work-arounds like using other clients are one thing, but I would like= >>> to see a fix for this on FreeBSD 7. Is there anything that can be don= e >>> to help identify / solve the problem? > The reason that we've persisted with doing patchsets for Java is so tha= t > everybody can get at the source and investigate/fix things which are > important to them. I've persistently argued against switching solely t= o > binary releases, when that has come up, for just this reason. Greg and friends, I have taken the opportunity to look at the source and compile jdk16=20 with debug patches to investigate. Thanks for providing us possibility=20 to do this for years already. > None of this will even require getting your hands dirty with the code,= it > will just take some time commitment to do it and analyse the results. There was another, simple problem report on the freebsd-java: http://thread.gmane.org/gmane.os.freebsd.devel.java/10146 > If you wanted to go further you could start trying to mess around with > gdb and/or trace statements in the code. I have decided to go dirty anyway :) I have traced this a bit and came up with a testcase code to open a UDP=20 IPv4 connection via the IPv6 socket: http://www.freebsd.org/cgi/query-pr.cgi?pr=3Dkern/127057 This testcase is the way JDK16 does UDP connection translated to C code=20 (okay, Java sets first bytes of the sockaddr * structures to zero, but=20 this doesn't matter and doesn't change anything). Either: 1) something is wrong in this code and Java should be fixed (something=20 around: j2se/src/solaris/native/java/net/PlainDatagramSocketImpl.c=20 j2se/src/solaris/native/java/net/net_util_md.c 2) there is wrong in the UDP in the kernel. Even worse, EINVAL is not=20 documented in the manpage, but is returned by udp6_sendto and friends. I've had difficulty single-stepping the kernel but maybe there is=20 something in here. Can anyone replicate my results (I am running an amd64 machine, but this = code gives me the same result on a i386 machine installed from the same=20 codebase)? --Marcin --------------enig284687ADA857B34375A8A090 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- iQCVAwUBSML83j2W2v2wY27ZAQMcNwP+JiESyZMZYJJVQQAaCtR0Z/qvPpOjc1vG RWGETx+0CxVQXUva3YpAEH48H3UGoQr9d2DxRFnzcyvqzRIygxEJFh8jyaBYKCnT Kjjd6d4WdOOx37pqq4+RzekDIUQRrmLe2DtR5pwS268P4syDqj5fi/dUOxtm7Sgi bglTcIN2wkg= =wATK -----END PGP SIGNATURE----- --------------enig284687ADA857B34375A8A090--