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

EXCEPTION_ACCESS_VIOLATION/assertion while creating many threads, -Xint

XMLWordPrintable

    • x86
    • windows_nt



      Name: dkC59003 Date: 11/29/99



      HotSpot 2.0rc1-F (JDK 1.2.2) crashes while executing nsk/regression/b4189870.
      In debug mode, the VM crashes with assertion failure "sanity check".
      This is easy to reproduce on my machine: Pentium II, 1 CPU, 350 MHz, 128 M RAM.
      Classic passes the test.
      Similar bug was filed against Kestrel: #4293788 (but it is not the same)

      Logs and test source follow:

      $ java b4189870

      #
      # HotSpot Virtual Machine Error, EXCEPTION_ACCESS_VIOLATION
      #
      # Error ID: 4F533F57494E13120E43505002D9
      #

      Error ID = os_win32.cpp, 729

      $ java_g b4189870

      #
      # HotSpot Virtual Machine Error, assertion failure
      #
      # assert(area == Thread::current()->handle_area(), "sanity check")
      #
      # Error ID: C:/hotspot\src\share\vm\runtime\handles.cpp, 105
      #

      ----------------------------------------------------------- b4189870.java
      import java.io.PrintStream;

      public class b4189870 extends Thread {

          // intended to cause OutOfMemoryError:
          static final int threadCount = 2000;

          static boolean flag = false;

          public static void main(String argv[]) {
              System.exit(run(argv, System.out) + 95/*STATUS_TEMP*/);
          }

          public static int run(String args[], PrintStream out) {
      int i = 0;
      try {
      for (i = 0; i < threadCount; i++)
      (new b4189870()).start();
      } catch(OutOfMemoryError e) {
      System.out.println("OutOfMemoryError thrown");
      } finally {
      System.out.println("Threads started: " + i);
      flag = true;
      }
      return 0/*STATUS_PASSED*/;
          }

          public void run() {
      while (! flag) {
      try {
      sleep(100);
      } catch (InterruptedException x) {}
      }
          }
      }

      ======================================================================

            mpalecznsunw Michael Paleczny (Inactive)
            dkhukhrosunw Dmitry Khukhro (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: