<div>Hi everybody,</div>
<div> </div>
<div>I am trying to run an application on Linux <font face="Calibri">Kernel 2.6.19, gcc version 3.4.6 and glibc 2.3.6 with Kaffe 1.1.7.</font></div>
<div><font face="Calibri">I am building the kaffe with following parameters:</font></div>
<div><font face="Calibri">
<p>CURDIR=/home/spasova/project/java-vm/kaffe-1.1.7/bin<br>export PKG_CONFIG_PATH=/opt/gnome/lib/pkgconfig/</p>
<p><br>mkdir -p $CURDIR/jnilib</p>
<p>make clean all<br>./configure --prefix=$CURDIR --disable-dependency-tracking --enable-shared --enable-fast-install --enable-portable-native-sync --disable-alsa --disable-dssi --disable-gtk-peer --disable-boehm-gc-configuration --disable-mips2 --disable-native-awt --disable-xawt-xi18n --disable-alsatest --disable-esdtest --disable-sound --enable-binreloc --enable-binreloc-threads --without-libiconv-prefix --without-libintl-prefix --with-engine=intrp --with-threads=unix-pthreads--without-alsa --without-esd --with-system-zlib --with-extensions=all,comm,microsoft
<br></p>
<p>My application is running O.K with this kaffe build till I should use the method AttacheCurrentThread(). Then I recieve the following error:</p>
<p>Internal error: caught an unexpected exception.<br>Please check your CLASSPATH and your installation.<br>java/lang/StackOverflowError<br>This error may occur because the stack size is not sufficient.<br>Try to increase the stack size using 'ulimit -s' or with the '-ss'
<br>option on kaffe.<br>Internal error: caught an unexpected exception.<br>Please check your CLASSPATH and your installation.<br>java/lang/NullPointerException<br>./run.sh: line 23: 22148 Aborted </p>
<p>After additional debugging I have found that there is a problem in setspecific() methode</p>
<p>I am shure that i make an error by building the kaffe VM. Could somebody help me ant tell me the right parameters. I need and use in my application jni and pthreads</p>
<p>Thanks</p>
<p>With best regards</p>
<p>Vela Spasova</p></font></div>