<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=windows-1255">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.5.7226.0">
<TITLE>hello 1.1.5 failure on xscale-be - maybe GC deamon?..</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/rtf format -->
<P DIR=LTR><FONT SIZE=2 FACE="Arial">Hi</FONT></P>
<P DIR=LTR><FONT SIZE=2 FACE="Arial">I have been trying to run a simple hello on an MVL3.1/Xscale BE.</FONT></P>
<P DIR=LTR><FONT SIZE=2 FACE="Arial">The config was:</FONT></P>
<P DIR=LTR><FONT SIZE=2 FACE="Arial">KAFFE_CFG="--target=armv5teb-hardhat-linux --host=armv5teb-hardhat-linux --build=i686-pc-linux-gnu --prefix=$XSCALE_TARGET_ROOT/usr/local/kaffe --with-includes=$XSCALE_TARGET_ROOT/usr/include --with-libraries=$XSCALE_TARGET_ROOT/lib:$XSCALE_TARGET_ROOT/usr/lib --enable-debug --without-gmp --with-engine=intrp --enable-xscale --with-threads=unix-pthreads --enable-pure-java-math --disable-native-awt --without-x --without-kaffe-qt-awt --without-kaffe-x-awt -without-classpath-gtk-awt --disable-gcj --disable-sound --enable-classpath-load-library --without-alsa --without-esd"</FONT></P>
<P DIR=LTR><FONT SIZE=2 FACE="Arial">Since failed and frozen without any information, I have recompiled with debug, to find out WWW (what-went-wrong).</FONT></P>
<P DIR=LTR><FONT SIZE=2 FACE="Arial">Running with:</FONT></P>
<P DIR=LTR><FONT SIZE=2 FACE="Arial">VMDEBUGOPTS="-vmdebug ALL"</FONT></P>
<P DIR=LTR><FONT SIZE=2 FACE="Arial">got a seg-fault (!).</FONT></P>
<P DIR=LTR><FONT SIZE=2 FACE="Arial">ending with the message:</FONT></P>
<P DIR=LTR><FONT SIZE=2 FACE="Arial">>> START LOG</FONT></P>
<P DIR=LTR><FONT SIZE=2 FACE="Arial">exit crit section (0)</FONT></P>
<P DIR=LTR><FONT SIZE=2 FACE="Arial">exit crit</FONT></P>
<P DIR=LTR><FONT SIZE=2 FACE="Arial">======================== thread dump =========================</FONT></P>
<P DIR=LTR><FONT SIZE=2 FACE="Arial">thread list lock owner: (nil)</FONT></P>
<P DIR=LTR><FONT SIZE=2 FACE="Arial">Segmentation fault</FONT></P>
<P DIR=LTR><FONT SIZE=2 FACE="Arial">>> LOG END</FONT></P>
<P DIR=LTR><FONT SIZE=2 FACE="Arial">Where first error is:</FONT></P>
<P DIR=LTR><FONT SIZE=2 FACE="Arial">>> START LOG</FONT></P>
<P DIR=LTR><FONT SIZE=2 FACE="Arial">got lpath /usr/local/kaffe/jre/lib/arm:/usr/local/kaffe/lib:/usr/local/kaffe/jre</FONT></P>
<P DIR=LTR><FONT SIZE=2 FACE="Arial">/lib and libraryPath /usr/local/kaffe/jre/lib/arm:/usr/local/kaffe/lib:/usr/loca</FONT></P>
<P DIR=LTR><FONT SIZE=2 FACE="Arial">l/kaffe/jre/lib</FONT></P>
<P DIR=LTR><FONT SIZE=2 FACE="Arial">trying to load /usr/local/kaffe/jre/lib/arm/libnative</FONT></P>
<P DIR=LTR><FONT SIZE=2 FACE="Arial">enter crit section[0] from: 0xbd018 [tid:16384, java:(nil))</FONT></P>
<P DIR=LTR><FONT SIZE=2 FACE="Arial">critical section (1) established</FONT></P>
<P DIR=LTR><FONT SIZE=2 FACE="Arial">exit crit section (0)</FONT></P>
<P DIR=LTR><FONT SIZE=2 FACE="Arial">enter crit section[0] from: 0xbd018 [tid:16384, java:(nil))</FONT></P>
<P DIR=LTR><FONT SIZE=2 FACE="Arial">critical section (1) established</FONT></P>
<P DIR=LTR><FONT SIZE=2 FACE="Arial">exit crit section (0)</FONT></P>
<P DIR=LTR><FONT SIZE=2 FACE="Arial">enter crit section[0] from: 0xbd018 [tid:16384, java:(nil))</FONT></P>
<P DIR=LTR><FONT SIZE=2 FACE="Arial">critical section (1) established</FONT></P>
<P DIR=LTR><FONT SIZE=2 FACE="Arial">exit crit section (0)</FONT></P>
<P DIR=LTR><FONT SIZE=2 FACE="Arial">gc_heap_malloc: freelist 47 at 0x17c00 free 0xc50d4</FONT></P>
<P DIR=LTR><FONT SIZE=2 FACE="Arial">enter crit section[0] from: 0xbd018 [tid:16384, java:(nil))</FONT></P>
<P DIR=LTR><FONT SIZE=2 FACE="Arial">critical section (1) established</FONT></P>
<P DIR=LTR><FONT SIZE=2 FACE="Arial">exit crit section (0)</FONT></P>
<P DIR=LTR><FONT SIZE=2 FACE="Arial">enter crit section[0] from: 0xbd018 [tid:16384, java:(nil))</FONT></P>
<P DIR=LTR><FONT SIZE=2 FACE="Arial">critical section (1) established</FONT></P>
<P DIR=LTR><FONT SIZE=2 FACE="Arial">exit crit section (0)</FONT></P>
<P DIR=LTR><FONT SIZE=2 FACE="Arial">enter crit section[0] from: 0xbd018 [tid:16384, java:(nil))</FONT></P>
<P DIR=LTR><FONT SIZE=2 FACE="Arial">critical section (1) established</FONT></P>
<P DIR=LTR><FONT SIZE=2 FACE="Arial">exit crit section (0)</FONT></P>
<P DIR=LTR><FONT SIZE=2 FACE="Arial">Native lib /usr/local/kaffe/jre/lib/arm/libnative</FONT></P>
<P DIR=LTR><FONT SIZE=2 FACE="Arial"> LOAD desc=0xb7f90 index=0 loader=(nil)</FONT></P>
<P DIR=LTR><FONT SIZE=2 FACE="Arial">enter crit section[0] from: 0xbd018 [tid:16384, java:(nil))</FONT></P>
<P DIR=LTR><FONT SIZE=2 FACE="Arial">critical section (1) established</FONT></P>
<P DIR=LTR><FONT SIZE=2 FACE="Arial">exit crit section (0)</FONT></P>
<P DIR=LTR><FONT SIZE=2 FACE="Arial">Couldn't find JNI_OnLoad in library handle 0 == /usr/local/kaffe/jre/lib/arm/lib</FONT></P>
<P DIR=LTR><FONT SIZE=2 FACE="Arial">native.</FONT></P>
<P DIR=LTR><FONT SIZE=2 FACE="Arial">Error message is /usr/local/kaffe/jre/lib/arm/libkaffevm-1.1.5.so: undefined sym</FONT></P>
<P DIR=LTR><FONT SIZE=2 FACE="Arial">bol: JNI_OnLoad.</FONT></P>
<P DIR=LTR><FONT SIZE=2 FACE="Arial">>> LOG END</FONT></P>
<P DIR=LTR><FONT SIZE=2 FACE="Arial">>> BUT OH BUT <<</FONT></P>
<P DIR=LTR><FONT SIZE=2 FACE="Arial">- running with VMDEBUGOPTS="-vmdebug INIT,VMCONDS,VMTHREAD,EXCEPTION,JARFILES,INT_NATIVE,CLASSFILE,VMCLASSLOADER"</FONT></P>
<P DIR=LTR><FONT SIZE=2 FACE="Arial">gave another output:</FONT></P>
<P DIR=LTR><FONT SIZE=2 FACE="Arial"><< LOG START</FONT></P>
<P DIR=LTR><FONT SIZE=2 FACE="Arial">Calling internal class loader for java/security/AllPermission$AllPermissionColle</FONT></P>
<P DIR=LTR><FONT SIZE=2 FACE="Arial">ction</FONT></P>
<P DIR=LTR><FONT SIZE=2 FACE="Arial">Loading java/security/AllPermission$AllPermissionCollection.class</FONT></P>
<P DIR=LTR><FONT SIZE=2 FACE="Arial">Adding field java/security/AllPermission$AllPermissionCollection:serialVersionUI</FONT></P>
<P DIR=LTR><FONT SIZE=2 FACE="Arial">D</FONT></P>
<P DIR=LTR><FONT SIZE=2 FACE="Arial">Adding field java/security/AllPermission$AllPermissionCollection:all_allowed</FONT></P>
<P DIR=LTR><FONT SIZE=2 FACE="Arial">Adding method java/security/AllPermission$AllPermissionCollection:add(Ljava/secu</FONT></P>
<P DIR=LTR><FONT SIZE=2 FACE="Arial">rity/Permission;)V (11)</FONT></P>
<P DIR=LTR><FONT SIZE=2 FACE="Arial">Adding method java/security/AllPermission$AllPermissionCollection:implies(Ljava/</FONT></P>
<P DIR=LTR><FONT SIZE=2 FACE="Arial">security/Permission;)Z (11)</FONT></P>
<P DIR=LTR><FONT SIZE=2 FACE="Arial">Adding method java/security/AllPermission$AllPermissionCollection:elements()Ljav</FONT></P>
<P DIR=LTR><FONT SIZE=2 FACE="Arial">a/util/Enumeration; (11)</FONT></P>
<P DIR=LTR><FONT SIZE=2 FACE="Arial">Adding method java/security/AllPermission$AllPermissionCollection:<init>()V (2)</FONT></P>
<P DIR=LTR><FONT SIZE=2 FACE="Arial">Adding method java/security/AllPermission$AllPermissionCollection:<init>(Ljava/s</FONT></P>
<P DIR=LTR><FONT SIZE=2 FACE="Arial">ecurity/AllPermission$1;)V (0)</FONT></P>
<P DIR=LTR><FONT SIZE=2 FACE="Arial">Call to native java/lang/Object.getClass()Ljava/lang/Class;.</FONT></P>
<P DIR=LTR><FONT SIZE=2 FACE="Arial">Call to native java/lang/System.identityHashCode(Ljava/lang/Object;)I.</FONT></P>
<P DIR=LTR><FONT SIZE=2 FACE="Arial">Calling internal class loader for java/security/Principal</FONT></P>
<P DIR=LTR><FONT SIZE=2 FACE="Arial">Loading java/security/Principal.class</FONT></P>
<P DIR=LTR><FONT SIZE=2 FACE="Arial">Adding method java/security/Principal:equals(Ljava/lang/Object;)Z (401)</FONT></P>
<P DIR=LTR><FONT SIZE=2 FACE="Arial">Adding method java/security/Principal:toString()Ljava/lang/String; (401)</FONT></P>
<P DIR=LTR><FONT SIZE=2 FACE="Arial">Adding method java/security/Principal:hashCode()I (401)</FONT></P>
<P DIR=LTR><FONT SIZE=2 FACE="Arial">Adding method java/security/Principal:getName()Ljava/lang/String; (401)</FONT></P>
<P DIR=LTR><FONT SIZE=2 FACE="Arial">Calling internal class loader for java/lang/IllegalThreadStateException</FONT></P>
<P DIR=LTR><FONT SIZE=2 FACE="Arial">Loading java/lang/IllegalThreadStateException.class</FONT></P>
<P DIR=LTR><FONT SIZE=2 FACE="Arial">Adding field java/lang/IllegalThreadStateException:serialVersionUID</FONT></P>
<P DIR=LTR><FONT SIZE=2 FACE="Arial">Adding method java/lang/IllegalThreadStateException:<init>()V (1)</FONT></P>
<P DIR=LTR><FONT SIZE=2 FACE="Arial">Adding method java/lang/IllegalThreadStateException:<init>(Ljava/lang/String;)V</FONT></P>
<P DIR=LTR><FONT SIZE=2 FACE="Arial">(1)</FONT></P>
<P DIR=LTR><FONT SIZE=2 FACE="Arial">attachFakedThreadInstance(main)=0x112484 done</FONT></P>
<P DIR=LTR><FONT SIZE=2 FACE="Arial">initThreads() done</FONT></P>
<P DIR=LTR><FONT SIZE=2 FACE="Arial">createDaemon finaliser</FONT></P>
<P DIR=LTR><FONT SIZE=2 FACE="Arial">createDaemon gc</FONT></P>
<P DIR=LTR><FONT SIZE=2 FACE="Arial">>> LOG END</FONT></P>
<P DIR=LTR><FONT SIZE=2 FACE="Arial">this is the freeze point.</FONT></P>
<P DIR=LTR><FONT SIZE=2 FACE="Arial">looks like no deamon threads for us GC....</FONT></P>
<P DIR=LTR><FONT SIZE=2 FACE="Arial">Then trying just "java --help" yielded the same error and froze at the same point.</FONT></P>
<P DIR=LTR><FONT SIZE=2 FACE="Arial">NOTES:</FONT></P>
<P DIR=LTR><FONT SIZE=2 FACE="Arial"> - I did not use LIBFFI</FONT></P>
<P DIR=LTR><FONT SIZE=2 FACE="Arial"> - I am not sure the seg-fault is directly related to original problem (just seems to freeze rather than a seg-fault). seems like linkage is broken for some reason (wrong LD..PATH ?). maybe then some other problem still (as may be deduced by the log snippet ahead), and then hell embarks...</FONT></P>
<P DIR=LTR><FONT SIZE=2 FACE="Arial">- complete log files are available, problem is reproducible.</FONT></P>
<BR>
<P DIR=LTR><FONT SIZE=2 FACE="Arial">"Trinity.... Help"</FONT></P>
<P DIR=LTR><SPAN LANG="en-us"><FONT SIZE=2 FACE="AvantGarde">Shlomi</FONT></SPAN></P>
</BODY>
</HTML>