jdk1.4.2 & Inet4Address resolver thread-safety
Landon Fuller
landonf at threerings.net
Sat May 28 21:13:44 PDT 2005
-----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-----
More information about the freebsd-java
mailing list