From owner-freebsd-java@FreeBSD.ORG Thu Feb 9 09:01:58 2006 Return-Path: X-Original-To: java@freebsd.org Delivered-To: freebsd-java@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BF85D16A420 for ; Thu, 9 Feb 2006 09:01:58 +0000 (GMT) (envelope-from past@ebs.gr) Received: from fly.ebs.gr (dslcustomer-239-113.vivodi.gr [83.171.239.113]) by mx1.FreeBSD.org (Postfix) with ESMTP id 41F1C43D7C for ; Thu, 9 Feb 2006 09:01:28 +0000 (GMT) (envelope-from past@ebs.gr) Received: from ebs.gr (root@hal.ebs.gr [10.1.1.2]) by fly.ebs.gr (8.12.9p1/8.12.9) with ESMTP id k1991ISg053387; Thu, 9 Feb 2006 11:01:18 +0200 (EET) (envelope-from past@ebs.gr) Received: from [10.1.1.158] (ajax.ebs.gr [10.1.1.158]) by ebs.gr (8.13.3/8.12.11) with ESMTP id k1991DFu032640; Thu, 9 Feb 2006 11:01:18 +0200 (EET) (envelope-from past@ebs.gr) Message-ID: <43EB04D8.5060008@ebs.gr> Date: Thu, 09 Feb 2006 11:01:12 +0200 From: Panagiotis Astithas Organization: EBS Ltd. User-Agent: Thunderbird 1.5 (X11/20060203) MIME-Version: 1.0 To: Sean McNeil References: <1139010212.56353.7.camel@triton.mcneil.com> <43E76A23.4030704@ebs.gr> <1139446721.83646.2.camel@triton.mcneil.com> In-Reply-To: <1139446721.83646.2.camel@triton.mcneil.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: java@freebsd.org Subject: Re: java crash on amd64 when switching to java perspective in eclipse 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: Thu, 09 Feb 2006 09:01:58 -0000 Sean McNeil wrote: > On Mon, 2006-02-06 at 17:24 +0200, Panagiotis Astithas wrote: >> Sean McNeil wrote: >>> Got the following: >>> >>> # >>> # An unexpected error has been detected by HotSpot Virtual Machine: >>> # >>> # SIGSEGV (0xb) at pc=0x00000008055aa9df, pid=56131, tid=0x133d000 >>> # >>> # Java VM: Java HotSpot(TM) 64-Bit Server VM >>> (1.5.0-p2-root_02_feb_2006_13_05 mixed mode) >>> # Problematic frame: >>> # J >>> org.eclipse.jdt.internal.compiler.parser.Scanner.jumpOverMethodBody()V >>> # >>> # An error report file with more information is saved as >>> hs_err_pid56131.log >>> # >>> # If you would like to submit a bug report, please write >>> # a letter to freebsd-java@FreeBSD.org mailing list >> I did some research. There is a comment with a workaround at the bottom >> of this page: >> >> http://wbeaton.blogspot.com/2005/09/eclipse-in-64-bits.html >> >> A more thorough discussion is here: >> >> https://bugs.eclipse.org/bugs/show_bug.cgi?id=71987 >> >> The relevant JDK bug entry is here: >> >> http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=5060628 >> >> The Sun engineer's fix is described here: >> >> http://blogs.sun.com/roller/page/javawithjiva/20051031 >> >> It is reported to be fixed in jdk 1.5 update 6 and jdk 1.6 build 59. > > Great! I've read this information and guess-timated where the issue > with REX and NEGL happens to be. With a simple little patch I've > managed to eliminate my repeatable crashes. The system seems much much > more stable now. > > --- hotspot/src/cpu/amd64/vm/amd64.ad.orig Wed Feb 8 15:18:24 2006 > +++ hotspot/src/cpu/amd64/vm/amd64.ad Wed Feb 8 15:17:35 2006 > @@ -7246,7 +7246,7 @@ > > format %{ "negl $dst\t# int" %} > opcode(0xF7, 0x03); // Opcode F7 /3 > - ins_encode(REX_reg(dst), OpcP, RM_opc_mem(secondary, dst)); > + ins_encode(REX_mem(dst), OpcP, RM_opc_mem(secondary, dst)); > ins_pipe(ialu_reg); > %} > > Awesome! Thanks, Panagiotis