From owner-freebsd-java@FreeBSD.ORG Thu Feb 23 11:53:39 2006 Return-Path: X-Original-To: freebsd-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 0C32316A420 for ; Thu, 23 Feb 2006 11:53:39 +0000 (GMT) (envelope-from work@ashleymoran.me.uk) Received: from mail.dc-servers.com (mail.dc-servers.com [83.243.101.206]) by mx1.FreeBSD.org (Postfix) with SMTP id 3DC6343D49 for ; Thu, 23 Feb 2006 11:53:38 +0000 (GMT) (envelope-from work@ashleymoran.me.uk) Received: (qmail 11330 invoked by uid 399); 23 Feb 2006 11:53:39 -0000 Received: from unknown (HELO alfie.jigsawhq.com) (work@ashleymoran.me.uk@213.106.224.113) by mail.dc-servers.com with SMTP; 23 Feb 2006 11:53:39 -0000 From: Ashley Moran Organization: Codeweavers Ltd To: freebsd-java@freebsd.org Date: Thu, 23 Feb 2006 11:52:18 +0000 User-Agent: KMail/1.9.1 References: <200602221524.35585.work@ashleymoran.me.uk> In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200602231152.18159.work@ashleymoran.me.uk> Subject: Re: i386 java binaries causing 100% cpu on amd64 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, 23 Feb 2006 11:53:39 -0000 On Thursday 23 February 2006 09:57, Arne H. Juul wrote: > this sounds like the problem I saw where the jdk tries to execute code > from the data segment, and the amd64 CPU actually honors the execute > protection (i386 traditionally has no notion of execute protection). Arne Do you know why this happens? Is it a bug in the way (FreeBSD and Linux) i386 binaries are compiled? > I think you can use an i386 version of jdk 1.5 to bootstrap, or > recompile your i386 jdk 1.4 with the patches below. I tried that too, which is why I thought it was bizarre. Here is my "result matrix" for java -version Athlon 64 Sempron 64 linux_base fails runs linux_base-rh-9 runs not tested FreeBSD/i386 jdk4 fails fails The FreeBSD package was actually compiled on 6-STABLE dated a few weeks after 6-REL, whereas the two amd64 machines are running 6-RELEASE. If that is not the issue, it was fubarred from the start. Ashley