From owner-freebsd-java@FreeBSD.ORG Tue Sep 28 22:40:32 2004 Return-Path: Delivered-To: freebsd-java@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5978416A4CE for ; Tue, 28 Sep 2004 22:40:32 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4A69E43D60 for ; Tue, 28 Sep 2004 22:40:32 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.11/8.12.11) with ESMTP id i8SMeVp8020320 for ; Tue, 28 Sep 2004 22:40:31 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.11/8.12.11/Submit) id i8SMeV2Q020319; Tue, 28 Sep 2004 22:40:31 GMT (envelope-from gnats) Date: Tue, 28 Sep 2004 22:40:31 GMT Message-Id: <200409282240.i8SMeV2Q020319@freefall.freebsd.org> To: freebsd-java@FreeBSD.org From: Dan Nelson Subject: Re: java/72151: JVM crash on 5.2.1-R X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Dan Nelson List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 28 Sep 2004 22:40:32 -0000 The following reply was made to PR java/72151; it has been noted by GNATS. From: Dan Nelson To: Andrzej Bialecki Cc: freebsd-gnats-submit@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@allantgroup.com