Hi,

My AWT HelloWorldAwt.java invoked thru C++/JNI is crashing my Linux box!

My first Linux crash after 3 years :-(
It eats up all my memory 128MB + swap  128MB in a few seconds.

The same HelloWorldAwt.java works well with JDK 1.1.x - JNI (C++
invoked)
and invoked with JDK 1.2 Pre2 directly (java HelloWorldAwt)
A none AWT HelloWorld.java works fine if invoked thru C++ - JNI on 1.2
Pre2.


The environment:
-----------
Linux Intel glibc 2.0x
echo $RTLD_NOW
    true
echo $LD_BIND_NOW
   true
echo $LD_PRELOAD                  (i played around  with this setting,
but it didnt help)
  libpthread.so libjava.so
echo $LD_LIBRARY_PATH

/usr/local/jdk/jre/lib/i386:/usr/local/jdk/jre/lib/i386/native_threads:/usr/local/jdk/jre/lib/i386/classic:.



The properties in the C++ main program for JNI_CreateJavaVM() (which is
invoking the Java HelloWorld using JNI)
---------------------------------------------------------------------------

     options[ii++].optionString = "-Djava.compiler=";
     options[ii++].optionString = "-Djava.class.path=.";
     options[ii++].optionString = "-Djava.library.path=.";
     options[ii++].optionString = "-verbose:gc,class,gc";

The output:
-------
    bin> HelloWorldAwt             (my C++ programm)
    .....      ( many debugging infos from JVM)
    [Loaded java.awt.Insets from /usr/local/jdk1.2Pre2/jre/lib/rt.jar]
    [Loaded sun.security.action.GetIntegerAction from
/usr/local/jdk1.2Pre2/jre/lib/rt.jar]
    [Loaded sun.awt.motif.MEmbeddedFrame from
/usr/local/jdk1.2Pre2/jre/lib/rt.jar]
    [Loaded sun.awt.EmbeddedFrame from
/usr/local/jdk1.2Pre2/jre/lib/rt.jar]

     ->  here it hangs and eats up all my memory!!!!    (its during the
call to  java.awt.Window - show()


Any idea?

thanks, Marcel













----------------------------------------------------------------------
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to