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

JVM crashed when application finished writting Registry

    XMLWordPrintable

    Details

    • Subcomponent:
    • CPU:
      x86_64
    • OS:
      windows_7
    • Verification:
      Verified

      Description

      FULL PRODUCT VERSION :
      java version "1.8.0_11"
      Java(TM) SE Runtime Environment (build 1.8.0_11-b12)
      Java HotSpot(TM) Client VM (build 25.11-b03, mixed mode)

      FULL OS VERSION :
      Windows 7 Service Pack 1 64 bit Build 7601

      EXTRA RELEVANT SYSTEM CONFIGURATION :
      Problematic frame:
       C [ntdll.dll+0x2e3be]
      Failed to write core dump. Minidumps are not enabled by default on client versions of Windows.
      IDE:Eclipse version 4.4.2

      A DESCRIPTION OF THE PROBLEM :
      RegistryKey newKey = new RegistryKey( RootKey.HKEY_CURRENT_USER, "Environment\\RecordUserDate1");
      newKey.create();
              RegistryValue value1 = new RegistryValue("first_time1",
      ValueType.REG_SZ, df.format(new Date()));
      newKey.setValue(value1);

      After running these code,JVM crashed.The crash happened outside the Java Virtual Machine in native code.

      THE PROBLEM WAS REPRODUCIBLE WITH -Xint FLAG: No

      THE PROBLEM WAS REPRODUCIBLE WITH -server FLAG: No

      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      0.Establish a Java project using Eclipse with JDK1.8.
      1.import jRegistryKey.jar.
      2.put jRegistryKey.dll into root floder of the project
      Run code:
      public void RecordDate() {

      RegistryKey current_user = new RegistryKey(RootKey.HKEY_CURRENT_USER,
      "Environment");
      if (current_user.hasSubkeys()) {
      ArrayList<String> Keylist = new ArrayList<String>();
      RegistryKey newKey = new RegistryKey(
      RootKey.HKEY_CURRENT_USER,
      "Environment\\RecordUserDate");
      newKey.create();
      RegistryValue value1 = new RegistryValue("first_time",
      ValueType.REG_SZ, "2015-06-10");
      newKey.setValue(value1);
      RegistryValue value2 = new RegistryValue("last_time",
      ValueType.REG_SZ, "2015-06-16");
      newKey.setValue(value2);
      }

      ERROR MESSAGES/STACK TRACES THAT OCCUR :
      # A fatal error has been detected by the Java Runtime Environment:
      #
      # EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x7776e3be, pid=13940, tid=15548
      #
      # JRE version: Java(TM) SE Runtime Environment (8.0_11-b12) (build 1.8.0_11-b12)
      # Java VM: Java HotSpot(TM) Client VM (25.11-b03 mixed mode windows-x86 )
      # Problematic frame:
      # C [ntdll.dll+0x2e3be]
      #
      # Failed to write core dump. Minidumps are not enabled by default on client versions of Windows
      #
      # If you would like to submit a bug report, please visit:
      # http://bugreport.sun.com/bugreport/crash.jsp
      # The crash happened outside the Java Virtual Machine in native code.
      # See problematic frame for where to report the bug.

      REPRODUCIBILITY :
      This bug can be reproduced rarely.

      ---------- BEGIN SOURCE ----------
      import ca.beq.util.win32.registry.RegistryKey;
      import ca.beq.util.win32.registry.RegistryValue;
      import ca.beq.util.win32.registry.RootKey;
      import ca.beq.util.win32.registry.ValueType;
      public class XValidate {
      public void RecordDate() {

      RegistryKey current_user = new RegistryKey(RootKey.HKEY_CURRENT_USER,
      "Environment");
      if (current_user.hasSubkeys()) {
      ArrayList<String> Keylist = new ArrayList<String>();
      RegistryKey newKey = new RegistryKey(
      RootKey.HKEY_CURRENT_USER,
      "Environment\\RecordUserDate");
      newKey.create();
      RegistryValue value1 = new RegistryValue("first_time",
      ValueType.REG_SZ, "2015-06-10");
      newKey.setValue(value1);
      RegistryValue value2 = new RegistryValue("last_time",
      ValueType.REG_SZ, "2015-06-16");
      newKey.setValue(value2);
      }
      public static void main(String args[]) {
      XValidate xv = new XValidate();
      xv.RecordDate();
      }
      }
      ---------- END SOURCE ----------

        Attachments

          Activity

            People

            Assignee:
            aroy Abhijit Roy (Inactive)
            Reporter:
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: