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
>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



Home | Main Index | Thread Index | Old Index