Name: asR10013 Date: 05/17/2000
The following sample code hangs linux jvm.
--------------------------------- test.java --------------------------
import java.awt.*;
import java.awt.event.*;
class test {
public static void main(String args[]) {
Frame f = new Frame();
f.setSize(400,400);
f.pack();
f.show();
System.out.println(Toolkit.getDefaultToolkit().getLockingKeyState(KeyEvent.VK_KANA_LOCK));
}
}
--------------------------------- output -----------------------------
$ java -hotspot -version
java version "1.3.0beta"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.0beta-b05)
Java HotSpot(TM) Client VM (build 1.3.0beta-b03, mixed mode)
$ java -hotspot test
# # An unexpected exception has been detected in native code outside the VM.# Program counter=0x4008fe96
#
# Problematic Thread: prio=1 tid=0x804e8f0 nid=0x400 runnable
#
$java -version
java version "1.3.0beta"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.0beta-b05)
Classic VM (build 1.3.0beta-b05, green threads, nojit)
$ java test
OUCH: nested memory code, to 1 levels.
SIGABRT 6* abort (generated by abort(3) routine, also SIGIOT)
si_signo [6]: SIGABRT 6* abort (generated by abort(3) routine, also SIGIOT)
OUCH: nested memory code, to 1 levels.
OUCH: nested memory code, to 1 levels.
si_errno [0]: Success
si_code [0]: SI_USER [pid: 0, uid: 0]
stackpointer=0xbfffd744
======================================================================
======================================================================