From owner-freebsd-java@FreeBSD.ORG Mon Oct 13 14:47:31 2008 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 509E51065691 for ; Mon, 13 Oct 2008 14:47:31 +0000 (UTC) (envelope-from ndenev@gmail.com) Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.168]) by mx1.freebsd.org (Postfix) with ESMTP id CFB968FC1C for ; Mon, 13 Oct 2008 14:47:30 +0000 (UTC) (envelope-from ndenev@gmail.com) Received: by ug-out-1314.google.com with SMTP id m2so474384uge.39 for ; Mon, 13 Oct 2008 07:47:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:cc:message-id:from:to :in-reply-to:content-type:content-transfer-encoding:mime-version :subject:date:references:x-mailer; bh=C4qj+Y9OVaRGn5tU7qnFptCcnXC9nqhcvouVLmAxgEE=; b=j/iiks2daqkX7pi535z7dodHWQo+RGHx4P4ZIamMqcKJLS18LwJyOGyFEiT4emYh18 lsnE/Z3Y4/Ens9ySwxcGf25fYVqRYgEKE5Pa0GR4MX6VsKmKzcu1aPVqJVOoO3TL9elx qSY7E3bZXSKL8fB2O/W8hPnDlN2Azwd8A9gk4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=cc:message-id:from:to:in-reply-to:content-type :content-transfer-encoding:mime-version:subject:date:references :x-mailer; b=VPz5p+9bQukt7NQBZ1otVxCOBiABuroyAgEgO67NBdcLu80JoYfXt8W84Qxf24B08x XU8qboG1xN6f+C9oI8vu/DKahdFx+KPqPVLtR874QC1EMN9FOD8Gd++hFo+lLHxGXQz+ vbVPmmYnm4xC/dQIpaDgkySCqTslRorVg91pw= Received: by 10.67.92.17 with SMTP id u17mr3246602ugl.75.1223909249503; Mon, 13 Oct 2008 07:47:29 -0700 (PDT) Received: from ?192.168.2.105? (blah.sun-fish.com [217.18.249.150]) by mx.google.com with ESMTPS id a1sm5763216ugf.37.2008.10.13.07.47.24 (version=TLSv1/SSLv3 cipher=RC4-MD5); Mon, 13 Oct 2008 07:47:25 -0700 (PDT) Message-Id: <7F26DA41-FF97-4DBB-ADAC-F7E6707B868D@gmail.com> From: Nikolay Denev To: freebsd-java@freebsd.org In-Reply-To: Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v929.2) Date: Mon, 13 Oct 2008 17:47:22 +0300 References: X-Mailer: Apple Mail (2.929.2) Cc: Anders Nordby Subject: Re: Serious problem with RMI on jdk15 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: Mon, 13 Oct 2008 14:47:31 -0000 On Oct 9, 2008, at 4:35 PM, Nikolay Denev wrote: > Hi All, > > I have the following problem : when I connect to a jmxremote enabled > application with jconsole the whole VM crashes with segmentation > fault. > [...snip...] > > I'm running amd64 7.1-PRE from yesterday, and the jdk is > jdk-1.5.0.14p8_3,1 > > Any help is greatly appreciated! > > Thanks, > Nikolay Denev > > > I think I've tracked down the problem. The JVM crashes when one requests the TotalPhysicalMemory from the OperatingSystem bean. The strange thing is that Sun specifies this value as "long", but how this can work on 64bit machines with many gigabytes of memory? What BSD patchset does is read the hw.physmem sysctl, which returns unsigned long, and then cast it to jlong and probably this is where the problem is. I've tried disabling the sysctl and hardcoding the result and my JVM does not crash anymore. Jconsole still does not show anything though.... and the same test program produces info when used with the diablo-jdk15... Regards, Nikolay Denev