From owner-freebsd-java@FreeBSD.ORG Thu Feb 9 00:58:44 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 EAB1216A420 for ; Thu, 9 Feb 2006 00:58:44 +0000 (GMT) (envelope-from sean@mcneil.com) Received: from mail.mcneil.com (mcneil.com [24.199.45.54]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3D46D43D48 for ; Thu, 9 Feb 2006 00:58:44 +0000 (GMT) (envelope-from sean@mcneil.com) Received: from localhost (localhost.mcneil.com [127.0.0.1]) by mail.mcneil.com (Postfix) with ESMTP id C81ABF270B; Wed, 8 Feb 2006 16:58:43 -0800 (PST) Received: from mail.mcneil.com ([127.0.0.1]) by localhost (triton.mcneil.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 61258-02; Wed, 8 Feb 2006 16:58:42 -0800 (PST) Received: from mcneil.com (mcneil.com [24.199.45.54]) by mail.mcneil.com (Postfix) with ESMTP id D554BF1ABC; Wed, 8 Feb 2006 16:58:41 -0800 (PST) From: Sean McNeil To: Panagiotis Astithas In-Reply-To: <43E76A23.4030704@ebs.gr> References: <1139010212.56353.7.camel@triton.mcneil.com> <43E76A23.4030704@ebs.gr> Content-Type: text/plain Date: Wed, 08 Feb 2006 16:58:41 -0800 Message-Id: <1139446721.83646.2.camel@triton.mcneil.com> Mime-Version: 1.0 X-Mailer: Evolution 2.4.2.1 FreeBSD GNOME Team Port Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at mcneil.com 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 00:58:45 -0000 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); %}