Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4378674

Hotspot does not support JNI_CreateJavaVM with exit hook

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P4 P4
    • None
    • 2.0
    • hotspot
    • x86
    • windows_98



      Name: yyT116575 Date: 10/12/2000


      Hotspot Version 2 build E


      1) From Native Code Call the Java Engine thru JNI using JNI_CreateJavaVM. In the
      JavaVMInitArgs set the "exit" option. Thus instructing the Java engine to
      perform a callback to a native function during exit.

      2) Call some java method which will finally issue a "System.Exit(0)".

      3) The Hotspot enginge will call the callback function.

      4) Upon return from the callback routine, the hotspot enginge crashes with the
      message:
      #
      # HotSpot Virtual Machine Error, Internal Error
      # Please report this error at
      # http://java.sun.com/cgi-bin/bugreport.cgi
      #
      # Error ID: 4A4156410E4350500149
      #
      # Problematic Thread: prio=5 tid=0xff1230 nid=0xffc80391 initialized
      #
      (Review ID: 110594)
      ======================================================================

            Unassigned Unassigned
            yyoungsunw Yung-ching Young (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: