NetBSD Problem Report #44249

From www@NetBSD.org  Fri Dec 17 21:01:50 2010
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
	by www.NetBSD.org (Postfix) with ESMTP id A432563B883
	for <gnats-bugs@gnats.NetBSD.org>; Fri, 17 Dec 2010 21:01:50 +0000 (UTC)
Message-Id: <20101217210150.7CA4D63B87A@www.NetBSD.org>
Date: Fri, 17 Dec 2010 21:01:50 +0000 (UTC)
From: ftigeot@wolfpond.org
Reply-To: ftigeot@wolfpond.org
To: gnats-bugs@NetBSD.org
Subject: Kaffe crashes on DragonFly/i386
X-Send-Pr-Version: www-1.0

>Number:         44249
>Category:       pkg
>Synopsis:       Kaffe crashes on DragonFly/i386
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    asau
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Dec 17 21:05:00 +0000 2010
>Closed-Date:    Sat Dec 18 04:09:21 +0000 2010
>Last-Modified:  Sat Dec 18 04:09:21 +0000 2010
>Originator:     Francois Tigeot
>Release:        DragonFly 2.6-RELEASE
>Organization:
>Environment:
DragonFly serenity.zefyris.com 2.6-RELEASE DragonFly v2.6.3.40.ged8f3-RELEASE
>Description:
Kaffe crashes on DragonFly/i386 with errors which don't really make any sense and vary from time to time.

This is only one example, made when trying to build wip/jdk15

cd ../generated;   /pkgsrc/wip/jdk15/work/bin/java -classpath . MakeDeps diffs UnixPlatform platform.current includeDB.current /pkgsrc/wip/jdk15/work/hotspot/build/bsd/platform_i486 includeDB
Internal error: caught an unexpected exception.
Please check your CLASSPATH and your installation.
java/lang/NullPointerException
   at gnu.classpath.SystemProperties.getProperty (SystemProperties.java:123)
   at java.lang.VMClassLoader.<clinit> (VMClassLoader.java:83)
   at java.lang.ClassLoader$StaticData.<clinit> (ClassLoader.java:154)
   at java.lang.ClassLoader.getSystemClassLoader (ClassLoader.java:797)
   at gnu.classpath.VMSystemProperties.postInit (VMSystemProperties.java:native)
   at gnu.classpath.SystemProperties.<clinit> (SystemProperties.java:114)
   at java.lang.Runtime.<init> (Runtime.java:100)
   at java.lang.Runtime.<clinit> (Runtime.java:88)
   at java.lang.System.loadLibrary (System.java:560)
   at gnu.java.nio.channels.FileChannelImpl.<clinit> (FileChannelImpl.java:86)
   at java.io.FileDescriptor.<clinit> (FileDescriptor.java:63)
   at java.lang.VMSystem.makeStandardInputStream (VMSystem.java:191)
   at java.lang.System.<clinit> (System.java:74)
   at java.lang.Object.hashCode (Object.java:174)
   at java.util.Hashtable.hash (Hashtable.java:816)
   at java.util.Hashtable.put (Hashtable.java:426)
   at java.security.Permissions.add (Permissions.java:112)
Abort trap (core dumped)


Kaffe may use different engines to execute java code
  - one interpretor (intr)
  - one just in time compiler among two (jit or jit3)

Its documentation says
  The jit3 just-in-time compiler is used to translate Java byte codes
  into native machine code, resulting in a significant speedup over the
  interpreter.  However, unlike the interpreter, the compiler must be
  ported by hand to new architectures and operating systems.

The default execution engine on DragonFly/i386 systems is jit3. Howewer, it hasn't been adapted to DragonFly and crashes.
On amd64/x86_64 systems, the only available engine is intr, which explains why Kaffe runs fine on DragonFly/x86_64.
>How-To-Repeat:
Try to build wip/jdk15 with kaffe from pkgsrc on DragonFly/i386
>Fix:
Force the choice of execution engine to be intr on DragonFly systems.
Add these lines to lang/kaffe/Makefile to do it:

+.if !empty(MACHINE_PLATFORM:MDragonFly*)
+CONFIGURE_ARGS+=       --with-engine=intrp
+.endif

>Release-Note:

>Audit-Trail:

Responsible-Changed-From-To: pkg-manager->asau
Responsible-Changed-By: asau@NetBSD.org
Responsible-Changed-When: Fri, 17 Dec 2010 22:04:15 +0000
Responsible-Changed-Why:
I'll handle it.


State-Changed-From-To: open->feedback
State-Changed-By: asau@NetBSD.org
State-Changed-When: Fri, 17 Dec 2010 22:15:40 +0000
State-Changed-Why:
Applied similar change to affect kaffe-x11 package.
Fixed?


From: "Aleksej Saushev" <asau@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/44249 CVS commit: pkgsrc/lang/kaffe
Date: Fri, 17 Dec 2010 22:13:16 +0000

 Module Name:	pkgsrc
 Committed By:	asau
 Date:		Fri Dec 17 22:13:16 UTC 2010

 Modified Files:
 	pkgsrc/lang/kaffe: Makefile.common

 Log Message:
 jit3 compiler doesn't work on DragonFly and causes crashes. PR pkg/44249
 Fold long line.


 To generate a diff of this commit:
 cvs rdiff -u -r1.22 -r1.23 pkgsrc/lang/kaffe/Makefile.common

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

From: Francois Tigeot <ftigeot@wolfpond.org>
To: gnats-bugs@NetBSD.org
Cc: asau@NetBSD.org, pkgsrc-bugs@NetBSD.org, gnats-admin@NetBSD.org,
        ftigeot@wolfpond.org
Subject: Re: pkg/44249 (Kaffe crashes on DragonFly/i386)
Date: Fri, 17 Dec 2010 23:38:13 +0100

 On Fri, Dec 17, 2010 at 10:15:43PM +0000, asau@NetBSD.org wrote:
 > Synopsis: Kaffe crashes on DragonFly/i386
 > 
 > State-Changed-From-To: open->feedback
 > State-Changed-By: asau@NetBSD.org
 > State-Changed-When: Fri, 17 Dec 2010 22:15:40 +0000
 > State-Changed-Why:
 > Applied similar change to affect kaffe-x11 package.
 > Fixed?

 Wow, that was fast.

 Kaffe from pkgsrc -head is fine.
 Kaffe-x11 is still building its dependencies. Unconfirmed for now.

 -- 
 Francois Tigeot

State-Changed-From-To: feedback->closed
State-Changed-By: asau@NetBSD.org
State-Changed-When: Sat, 18 Dec 2010 04:09:21 +0000
State-Changed-Why:
Assume fixed; if the problem still occurs, reply to reopen or file another PR.


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.