pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

pkg/44249: Kaffe crashes on DragonFly/i386

>Number:         44249
>Category:       pkg
>Synopsis:       Kaffe crashes on DragonFly/i386
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Dec 17 21:05:00 +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

Home | Main Index | Thread Index | Old Index