NetBSD Problem Report #44249

From  Fri Dec 17 21:01:50 2010
Return-Path: <>
Received: from ( [])
	by (Postfix) with ESMTP id A432563B883
	for <>; Fri, 17 Dec 2010 21:01:50 +0000 (UTC)
Message-Id: <>
Date: Fri, 17 Dec 2010 21:01:50 +0000 (UTC)
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
DragonFly 2.6-RELEASE DragonFly v2.6.3.40.ged8f3-RELEASE
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.
   at gnu.classpath.SystemProperties.getProperty (
   at java.lang.VMClassLoader.<clinit> (
   at java.lang.ClassLoader$StaticData.<clinit> (
   at java.lang.ClassLoader.getSystemClassLoader (
   at gnu.classpath.VMSystemProperties.postInit (
   at gnu.classpath.SystemProperties.<clinit> (
   at java.lang.Runtime.<init> (
   at java.lang.Runtime.<clinit> (
   at java.lang.System.loadLibrary (
   at<clinit> (
   at<clinit> (
   at java.lang.VMSystem.makeStandardInputStream (
   at java.lang.System.<clinit> (
   at java.lang.Object.hashCode (
   at java.util.Hashtable.hash (
   at java.util.Hashtable.put (
   at (
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.
Try to build wip/jdk15 with kaffe from pkgsrc on DragonFly/i386
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



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

State-Changed-From-To: open->feedback
State-Changed-When: Fri, 17 Dec 2010 22:15:40 +0000
Applied similar change to affect kaffe-x11 package.

From: "Aleksej Saushev" <>
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 <>
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, wrote:
 > Synopsis: Kaffe crashes on DragonFly/i386
 > State-Changed-From-To: open->feedback
 > State-Changed-By:
 > 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-When: Sat, 18 Dec 2010 04:09:21 +0000
Assume fixed; if the problem still occurs, reply to reopen or file another PR.


NetBSD Home
NetBSD PR Database Search

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