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

Internal error with Hotspot VM when a HashMap is inserted into itself

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: P4 P4
    • None
    • 1.0
    • hotspot
    • x86
    • windows_nt



      Name: mc57594 Date: 07/15/99


      The following program fails with an internal error when run under HotSpot VM:

      import java.util.*;
      public class t {
          public static void main(String[] args) throws Throwable {
              HashMap hm = new HashMap();
              for (int i = 0; i < 10; i++) hm.put(new Integer(i), new Integer(i));
              hm.put(hm, hm);
              for (int i = 0; i < 10; i++) hm.get(new Integer(i));
              System.out.println(hm.get(hm));
          }
      }

      The error is:
      #
      # HotSpot Virtual Machine Error, Internal Error
      #
      # Error ID: 53484152454432554E54494D450E4350500110
      #

      If java -Xint or java -classic is used, the same program gets a stack overflow exception which is understandable if not very robust. Therefore I assume that the problem happens only if HashMap methods are compiled by HotSpot.
      (Review ID: 85056)
      ======================================================================

            Unassigned Unassigned
            mchamnessunw Mark Chamness (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: