From owner-freebsd-java@FreeBSD.ORG Mon Jun 26 11:03:01 2006 Return-Path: X-Original-To: freebsd-java@freebsd.org 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 C074016A405 for ; Mon, 26 Jun 2006 11:03:01 +0000 (UTC) (envelope-from owner-bugmaster@freebsd.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 65F3B43D68 for ; Mon, 26 Jun 2006 11:02:58 +0000 (GMT) (envelope-from owner-bugmaster@freebsd.org) Received: from freefall.freebsd.org (peter@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id k5QB2wgh042431 for ; Mon, 26 Jun 2006 11:02:58 GMT (envelope-from owner-bugmaster@freebsd.org) Received: (from peter@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id k5QB2usL042427 for freebsd-java@freebsd.org; Mon, 26 Jun 2006 11:02:56 GMT (envelope-from owner-bugmaster@freebsd.org) Date: Mon, 26 Jun 2006 11:02:56 GMT Message-Id: <200606261102.k5QB2usL042427@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: peter set sender to owner-bugmaster@freebsd.org using -f From: FreeBSD bugmaster To: freebsd-java@FreeBSD.org Cc: Subject: Current problem reports assigned to you 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: Mon, 26 Jun 2006 11:03:01 -0000 Current FreeBSD problem reports Critical problems Serious problems S Submitted Tracker Resp. Description ------------------------------------------------------------------------------- s [2003/12/09] ports/60083 java Unsafe use of getaddrinfo in jvm 1.4.2-p5 o [2004/05/01] java/66151 java JBuilderX (sun jvm 1.4.1 builtin) crashes f [2004/09/28] java/72151 java JVM crash on 5.2.1-R f [2004/10/29] ports/73279 java www/firefox + java crash o [2005/01/24] java/76631 java any port linux-*-jdk12 will core dump if 5 problems total. Non-critical problems S Submitted Tracker Resp. Description ------------------------------------------------------------------------------- f [2003/09/16] ports/56928 java jce-aba port should install to $JAVA_HOME f [2004/02/14] java/62837 java linux-sun-jdk14 executables hang with COM o [2005/08/10] ports/84742 java make ports/java/jdk14 use dynamic Motif l f [2006/01/03] ports/91244 java Bad instruction on making process of jdk1 o [2006/05/18] java/97461 java Diablo JDK does not report Update level i 5 problems total. From owner-freebsd-java@FreeBSD.ORG Tue Jun 27 00:38:11 2006 Return-Path: X-Original-To: java@freebsd.org 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 0E61616A409 for ; Tue, 27 Jun 2006 00:38:11 +0000 (UTC) (envelope-from arnej@yahoo-inc.com) Received: from dev-arnej.trondheim.corp.yahoo.com (pat-gw.trondheim.corp.yahoo.com [217.144.236.4]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0B9A843D60 for ; Tue, 27 Jun 2006 00:38:07 +0000 (GMT) (envelope-from arnej@yahoo-inc.com) Received: (from arnej@localhost) by dev-arnej.trondheim.corp.yahoo.com (8.12.11/8.12.11) id k5R0c6F4083788; Mon, 26 Jun 2006 17:38:06 -0700 (PDT) (envelope-from arnej) Date: Mon, 26 Jun 2006 17:38:06 -0700 (PDT) From: Arne Juul X-X-Sender: arnej@dev-arnej.trondheim.corp.yahoo.com To: java@freebsd.org Message-ID: <20060626172546.P80831@dev-arnej.trondheim.corp.yahoo.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Cc: Subject: non-threadsafe InetAddress.getHostName() 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: Tue, 27 Jun 2006 00:38:11 -0000 We've found a problem where calls to the getHostName() method in the java.net.InetAddress class seems to have thread-safety problems. When two threads call this method at the same time this may happen: 1) the first call sends a DNS query to a nameserver from port A 2) the second call sends a DNS query to a nameserver from port B 3) the answer from 1) arrives, but there isn't anything listening on port A anymore, icmp port unreachable is generated back 4) the answer from 2) arrives on port B, second call completes 5) 5 seconds later, the query from 1) times out 6) the first call resends its DNS query from port C 7) the first call gets its answer on port C and everything looks good (but with an extra unneeded 5 seconds delay). This happens on FreeBSD with jdk 1.4.2p8_2 at least. tcpdump goes approximately like this: 54.700 x.x.x.x.34683 > y.y.y.y.53: 5359+ PTR? x.x.x.x.in-addr.arpa. 54.701 x.x.x.x.34684 > y.y.y.y.53: 43030+ PTR? x.x.x.x.in-addr.arpa. 54.730 y.y.y.y.53 > x.x.x.x.34683: 5359 1/5/5 PTR foo.bar.com. 54.730 x.x.x.x > y.y.y.y: icmp: x.x.x.x udp port 34683 unreachable 54.731 y.y.y.y.53 > x.x.x.x.34684: 43030 1/5/5 PTR foo.bar.com. 59.712 x.x.x.x.34685 > y.y.y.y.53: 5359+ PTR? x.x.x.x.in-addr.arpa. 59.762 y.y.y.y.53 > x.x.x.x.34685: 5359 1/5/5 PTR foo.bar.com. here's a test program for reproducing: import java.net.InetAddress; import java.lang.Thread; import java.lang.Runnable; class GetMyHostName { private static class Loop implements Runnable { long maxcnt; Loop(long maxc) { this.maxcnt = maxc; } public void run() { for (long l = 0; l < maxcnt; l++) { try { long before = System.currentTimeMillis(); String s = InetAddress.getLocalHost().getHostName(); long after = System.currentTimeMillis(); if (after > before + 100) { System.out.println("loop iteration " +l +" of " +maxcnt +" gethostname took: " +(after-before) +" milliseconds, returned: " +s); } } catch (java.net.UnknownHostException e) { } } } } public static void main(String[] args) { try { Loop l1 = new Loop(10001); Loop l2 = new Loop(10002); Loop l3 = new Loop(10003); Thread t1 = new Thread(l1); Thread t2 = new Thread(l2); Thread t3 = new Thread(l3); t1.start(); t2.start(); t3.start(); t1.join(); t2.join(); t3.join(); } catch (Exception e) { System.out.println("exception: "+e); } } } From owner-freebsd-java@FreeBSD.ORG Tue Jun 27 09:40:07 2006 Return-Path: X-Original-To: java@freebsd.org 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 B0CB416A402 for ; Tue, 27 Jun 2006 09:40:07 +0000 (UTC) (envelope-from info@rakeback.gr) Received: from deliver.hol.gr (deliver.hol.gr [194.30.193.32]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2860C43D72 for ; Tue, 27 Jun 2006 09:40:01 +0000 (GMT) (envelope-from info@rakeback.gr) Received: from auth-smtp.hol.gr (takeit02.mail.dc.hol.net [192.168.20.72]) by deliver.hol.gr (8.12.11/8.11.6) with ESMTP id k5R9dL4L020538 (using TLSv1/SSLv3 with cipher DHE-RSA-AES256-SHA (256 bits) verified OK) for ; Tue, 27 Jun 2006 12:39:21 +0300 Received: from Ivan (ppp115-141.dsl.hol.gr [89.210.115.141]) by auth-smtp.hol.gr (8.13.1/8.12.11) with SMTP id k5R9dwO6001016 for ; Tue, 27 Jun 2006 12:39:59 +0300 Message-ID: From: "rakeback" To: Date: Tue, 27 Jun 2006 11:59:38 +0300 MIME-Version: 1.0 X-Virus-Scanned: ClamAV 0.87/1458/Thu May 11 21:37:19 2006 on takeit02.mail.dc.hol.net X-Virus-Status: Clean Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: Subject: www.rakeback.gr 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: Tue, 27 Jun 2006 09:40:07 -0000 This week opportunity FREE $50 If you're new to SunPoker, we'll match your first deposit up to $50 with=20 a 100% deposit bonus. See details at: www.rakeback.gr If you are interesting about how to play and how to win, please=20 contact us on e-mail: info@rakeback.gr and we will send you book with=20 tip and tricks. Sincerely yours www.rakeback.gr From owner-freebsd-java@FreeBSD.ORG Thu Jun 29 12:14:21 2006 Return-Path: X-Original-To: freebsd-java@freebsd.org 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 815A216A403 for ; Thu, 29 Jun 2006 12:14:21 +0000 (UTC) (envelope-from mccrobie2000@yahoo.com) Received: from web54208.mail.yahoo.com (web54208.mail.yahoo.com [206.190.39.250]) by mx1.FreeBSD.org (Postfix) with SMTP id CD94543D46 for ; Thu, 29 Jun 2006 12:14:20 +0000 (GMT) (envelope-from mccrobie2000@yahoo.com) Received: (qmail 50849 invoked by uid 60001); 29 Jun 2006 12:14:20 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:Received:Date:From:Subject:To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=jpoEpnV6paGXueOx4ts+kv6cbOkCPbOxnRR7IgG3/mMiKOELQRja/gEYcJ6EpOaokKyQW/JkxvWwoLhL0J6wuwGNZjSz16PDZ+phARjg09u2hRdK9qEg192jwUNh6qLynD8Z8hFNjh9jHN2fJ3OxKfzrha5I2n3Wn+aGdgzB14Y= ; Message-ID: <20060629121420.50847.qmail@web54208.mail.yahoo.com> Received: from [68.33.120.44] by web54208.mail.yahoo.com via HTTP; Thu, 29 Jun 2006 05:14:20 PDT Date: Thu, 29 Jun 2006 05:14:20 -0700 (PDT) From: Chuck McCrobie To: freebsd-java@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Subject: Redistribution of Official FreeBSD JRE 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: Thu, 29 Jun 2006 12:14:21 -0000 Okay, I´ve read the OEM re-distribution terms and the end-user license agreement for the official FreeBSD java binaries. I'm confused. I would like to develop a Java application and support it on FreeBSD. Eventually, I would like to sell a FreeBSD box with my application pre-bundled. 1. For distributing JUST my application, I'm okay in terms of JRE licensing. The customer has the responsibility of downloading and installing the JRE. 2. For bundling the JRE WITH my application, it seems that for FreeBSD, I must sign various forms and such with Sun as an OEM and pay money. Does the simple fact that I bundle the JRE with my application make me an OEM and therefore subject to OEM license agreements? 3. For bundling the JRE WITH my application on hardware with FreeBSD and selling the box, I also must sign an OEM agreement and pay Sun some money. 4. For LINUX, it seems I can bundle the JRE with my application AND NOT pay money to Sun nor sign OEM agreements, etc. Therefore, I'm NOT considered an OEM because the Linux JRE allows bundling with an application. Are the above understandings correct? If true, then Linux and the Linux JRE from Sun is more Free than FreeBSD - ironic. Thank you, Chuck McCrobie mccrobie2000@yahoo.com __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com From owner-freebsd-java@FreeBSD.ORG Fri Jun 30 07:03:19 2006 Return-Path: X-Original-To: freebsd-java@freebsd.org 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 44D0116A403 for ; Fri, 30 Jun 2006 07:03:19 +0000 (UTC) (envelope-from achill@matrix.gatewaynet.com) Received: from matrix.gatewaynet.com (host2.dynacom.ondsl.gr [62.103.35.210]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6E49443D62 for ; Fri, 30 Jun 2006 07:03:17 +0000 (GMT) (envelope-from achill@matrix.gatewaynet.com) Received: from matrix.gatewaynet.com (localhost.localdomain [127.0.0.1]) by matrix.gatewaynet.com (8.12.8/8.12.8) with ESMTP id k5U7GhVa014658; Fri, 30 Jun 2006 10:16:43 +0300 Received: from localhost (achill@localhost) by matrix.gatewaynet.com (8.12.8/8.12.8/Submit) with ESMTP id k5U7GfV0014654; Fri, 30 Jun 2006 10:16:42 +0300 Date: Fri, 30 Jun 2006 10:16:41 +0300 (EEST) From: Achilleus Mantzios To: Chuck McCrobie In-Reply-To: <20060629121420.50847.qmail@web54208.mail.yahoo.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=ISO-8859-7 Content-Transfer-Encoding: 8BIT Cc: freebsd-java@freebsd.org Subject: Re: Redistribution of Official FreeBSD JRE 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: Fri, 30 Jun 2006 07:03:19 -0000 O Chuck McCrobie Ýãñáøå óôéò Jun 29, 2006 : Some people here i assume are very well aware of the legal issues involved in the "SUN","java","BSD" arena, but anyway its vacation time, so some members of the community might not have access to their email. > Okay, I´ve read the OEM re-distribution terms and the > end-user license agreement for the official FreeBSD > java binaries. I'm confused. > > I would like to develop a Java application and support > it on FreeBSD. Eventually, I would like to sell a > FreeBSD box with my application pre-bundled. > > 1. For distributing JUST my application, I'm okay in > terms of JRE licensing. The customer has the > responsibility of downloading and installing the JRE. > > 2. For bundling the JRE WITH my application, it seems > that for FreeBSD, I must sign various forms and such > with Sun as an OEM and pay money. Does the simple > fact that I bundle the JRE with my application make me > an OEM and therefore subject to OEM license > agreements? > > 3. For bundling the JRE WITH my application on > hardware with FreeBSD and selling the box, I also must > sign an OEM agreement and pay Sun some money. > > 4. For LINUX, it seems I can bundle the JRE with my > application AND NOT pay money to Sun nor sign OEM > agreements, etc. Therefore, I'm NOT considered an OEM > because the Linux JRE allows bundling with an > application. > > Are the above understandings correct? > > > If true, then Linux and the Linux JRE from Sun is more > Free than FreeBSD - ironic. > > > Thank you, > > Chuck McCrobie > mccrobie2000@yahoo.com > > __________________________________________________ > Do You Yahoo!? > Tired of spam? Yahoo! Mail has the best spam protection around > http://mail.yahoo.com > _______________________________________________ > freebsd-java@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-java > To unsubscribe, send any mail to "freebsd-java-unsubscribe@freebsd.org" > -- -Achilleus From owner-freebsd-java@FreeBSD.ORG Fri Jun 30 09:13:20 2006 Return-Path: X-Original-To: freebsd-java@freebsd.org 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 473E116A514 for ; Fri, 30 Jun 2006 09:13:20 +0000 (UTC) (envelope-from jshevland@rowantreesoftware.com.au) Received: from www.rowantreesoftware.com.au (218-214-142-195.people.net.au [218.214.142.195]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1635744611 for ; Fri, 30 Jun 2006 08:47:35 +0000 (GMT) (envelope-from jshevland@rowantreesoftware.com.au) Received: from [127.0.0.1] (unknown [10.10.0.250]) by www.rowantreesoftware.com.au (Postfix) with ESMTP id 6C43611411; Fri, 30 Jun 2006 18:47:33 +1000 (EST) Message-ID: <44A4E4E1.40907@rowantreesoftware.com.au> Date: Fri, 30 Jun 2006 18:46:25 +1000 From: Joe Shevland Organization: Rowantree Software Pty. Ltd. User-Agent: Thunderbird 1.5.0.4 (Windows/20060516) MIME-Version: 1.0 To: Achilleus Mantzios References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-7; format=flowed Content-Transfer-Encoding: 8bit Cc: Chuck McCrobie , freebsd-java@freebsd.org Subject: Re: Redistribution of Official FreeBSD JRE 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: Fri, 30 Jun 2006 09:13:20 -0000 Achilleus Mantzios wrote: > O Chuck McCrobie Ýãñáøå óôéò Jun 29, 2006 : > > Some people here i assume are very well aware of the > legal issues involved in the "SUN","java","BSD" arena, > but anyway its vacation time, so some members of the > community might not have access to their email. > > >> Okay, I´ve read the OEM re-distribution terms and the >> end-user license agreement for the official FreeBSD >> java binaries. I'm confused. I just had a quick read of the LICENSE (where's the OEM one?), and I got the impression its OK to bundle the JRE with software/hardware, so long as you present the EULA to the user and they accept/reject it. If they reject it, well, your only recourse then is to have the machine self-implode, or similar. To my mind, its the spirit/intent of the JRE to do exactly what you're after, and any licenses etc that seem to go against this are probably just the lawyers getting in the way and going overboard, so if you are right, there may be some wiggle room to get things amended if they've hobbled things so badly. If I'm wrong on the latter, I can't see why they'd restrict further penetration of the JRE. If I had to do this commercially though I'd find a greedy scumbag^W^W lawyer and have it review it to be sure. Cheers Joe From owner-freebsd-java@FreeBSD.ORG Fri Jun 30 16:28:54 2006 Return-Path: X-Original-To: java@freebsd.org 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 19C0D16A403 for ; Fri, 30 Jun 2006 16:28:54 +0000 (UTC) (envelope-from landonf@opendarwin.org) Received: from goldfish.bikemonkey.org (goldfish.bikemonkey.org [64.81.64.61]) by mx1.FreeBSD.org (Postfix) with ESMTP id D0D5F43D9C for ; Fri, 30 Jun 2006 16:28:31 +0000 (GMT) (envelope-from landonf@opendarwin.org) Received: from [192.168.54.11] (nat.earth.threerings.net [64.127.109.100]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client certificate requested) by goldfish.bikemonkey.org (Postfix) with ESMTP id 211BDAF601A; Fri, 30 Jun 2006 09:28:29 -0700 (PDT) In-Reply-To: <20060626172546.P80831@dev-arnej.trondheim.corp.yahoo.com> References: <20060626172546.P80831@dev-arnej.trondheim.corp.yahoo.com> Mime-Version: 1.0 (Apple Message framework v752.2) Content-Type: multipart/signed; protocol="application/pgp-signature"; micalg=pgp-sha1; boundary="Apple-Mail-3--568468169" Message-Id: <6E6948AF-73E6-4CFE-AA43-CD3508C009AA@opendarwin.org> Content-Transfer-Encoding: 7bit From: Landon Fuller Date: Fri, 30 Jun 2006 09:28:27 -0700 To: Arne Juul X-Pgp-Agent: GPGMail 1.1.2 (Tiger) X-Mailer: Apple Mail (2.752.2) Cc: java@freebsd.org Subject: Re: non-threadsafe InetAddress.getHostName() 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: Fri, 30 Jun 2006 16:28:54 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --Apple-Mail-3--568468169 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII; format=flowed On Jun 26, 2006, at 17:38, Arne Juul wrote: > This happens on FreeBSD with jdk 1.4.2p8_2 at least. What release of FreeBSD? --Apple-Mail-3--568468169 content-type: application/pgp-signature; x-mac-type=70674453; name=PGP.sig content-description: This is a digitally signed message part content-disposition: inline; filename=PGP.sig content-transfer-encoding: 7bit -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.3 (Darwin) iD8DBQFEpVErlplZCE/15mMRAlfDAJ4vJrYdGM7EN01KTcXTS1A+r0EGywCdEKAr iOi8DoP/NX1N86lWCO+evkI= =L+oe -----END PGP SIGNATURE----- --Apple-Mail-3--568468169--