Date: Sat, 28 May 2005 21:13:32 -0700 From: Landon Fuller <landonf@threerings.net> To: freebsd-java@freebsd.org Subject: jdk1.4.2 & Inet4Address resolver thread-safety Message-ID: <94DBA6D4-8B4E-41ED-9297-7EEA7EE9571D@threerings.net>
next in thread | raw e-mail | index | archive | help
-----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-----
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?94DBA6D4-8B4E-41ED-9297-7EEA7EE9571D>