From owner-freebsd-java@FreeBSD.ORG Sun May 29 04:13:44 2005 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 80DC916A41F for ; Sun, 29 May 2005 04:13:44 +0000 (GMT) (envelope-from landonf@threerings.net) Received: from mail.earth.threerings.net (mail.earth.threerings.net [64.81.51.57]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5538243D1F for ; Sun, 29 May 2005 04:13:44 +0000 (GMT) (envelope-from landonf@threerings.net) Received: from [192.168.201.250] (unknown [192.168.201.250]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client certificate requested) by mail.earth.threerings.net (Postfix) with ESMTP id EE49A6177 for ; Sat, 28 May 2005 21:14:35 -0700 (PDT) Mime-Version: 1.0 (Apple Message framework v730) Content-Transfer-Encoding: 7bit Message-Id: <94DBA6D4-8B4E-41ED-9297-7EEA7EE9571D@threerings.net> Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed To: freebsd-java@freebsd.org From: Landon Fuller Date: Sat, 28 May 2005 21:13:32 -0700 X-Pgp-Agent: GPGMail 1.1 (Tiger) X-Mailer: Apple Mail (2.730) Subject: jdk1.4.2 & Inet4Address resolver thread-safety 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: Sun, 29 May 2005 04:13:44 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 I've been tracking down and fixing a few bugs we've witnessed in production. The first involves a lack of thread-safety in j2se/src/solaris/native/ java/net/Inet4AddressImpl.c due to the use of gethostbyname()/ gethostbyaddr() on BSD systems: An unexpected exception has been detected in native code outside the VM. Unexpected Signal : 11 occurred at PC=0x481328DB Function=strcasecmp+0x33 Library=/lib/libc.so.5 Current Java thread: at java.net.Inet4AddressImpl.getLocalHostName(Native Method) at java.net.InetAddress.getLocalHost(InetAddress.java:1178) at javax.mail.internet.InternetAddress.getLocalAddress (InternetAddress.java:477) I have further details and a patch to fix the issue. In light of the Java license requirements, is this the correct forum for such discussion? Thanks, Landon Fuller -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (Darwin) iD8DBQFCmUFxlplZCE/15mMRArwzAJkBoC1gkVPTALZxsuo2s2wfrvoM9gCfWnDL y3GbrmWK6U1BS5bDI/wDppM= =KEfA -----END PGP SIGNATURE-----