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

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

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P4
    • Resolution: Cannot Reproduce
    • Affects Version/s: 1.0
    • Fix Version/s: None
    • Component/s: hotspot
    • Labels:
    • Subcomponent:
    • CPU:
      x86
    • OS:
      windows_nt

      Description



      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)
      ======================================================================

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Imported:
                  Indexed: