java/72151: JVM crash on 5.2.1-R

Dan Nelson dnelson at allantgroup.com
Tue Sep 28 15:40:32 PDT 2004


The following reply was made to PR java/72151; it has been noted by GNATS.

From: Dan Nelson <dnelson at allantgroup.com>
To: Andrzej Bialecki <ab at getopt.org>
Cc: freebsd-gnats-submit at FreeBSD.org
Subject: Re: java/72151: JVM crash on 5.2.1-R
Date: Tue, 28 Sep 2004 17:39:29 -0500

 In the last episode (Sep 28), Dan Nelson said:
 > In the last episode (Sep 28), Andrzej Bialecki said:
 > > An unexpected exception has been detected in native code outside the VM.
 > > Unexpected Signal : 11 occurred at PC=0x28151624
 > > Function=flockfile+0x24
 > > Library=/lib/libc.so.5
 > > 
 > > Current Java thread:
 > >         at java.net.Inet4AddressImpl.lookupAllHostAddr(Native Method)
 > 
 > almost certainly trash each other.  My quick hack is this, which
 > returns a DNS error if hostf ends up NULL.  A better fix would be to
 > add a mutex around the DNS routines in
 > Inet4AddressImpl.lookupAllHostAddr.
 
 I'm wrong; the best fix would be thread-safe resolver routines in libc :)
 
 -- 
 	Dan Nelson
 	dnelson at allantgroup.com


More information about the freebsd-java mailing list