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

JDK-8316337 causes double-free in Cleaner code

XMLWordPrintable

    • generic
    • generic

      ADDITIONAL SYSTEM INFORMATION :
      Tested: MacOS, Linux, Windows

      A DESCRIPTION OF THE PROBLEM :
      I work for Eclipse Store. In JDK 21.0.2 we have problem, after several start of our framework crash whole JVM with exit code 134

      All JVM from 8 to 21.0.1 works.

      REGRESSION : Last worked in version 20

      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      package test.microstream.handler;

      import org.eclipse.store.storage.embedded.types.EmbeddedStorage;
      import org.eclipse.store.storage.embedded.types.EmbeddedStorageManager;
      import org.junit.jupiter.api.RepeatedTest;
      import org.junit.jupiter.api.Test;

      public class MoreRestartTest
      {

          String value = "asjdjflkdsj";

          @RepeatedTest(300)
          void name()
          {

              try (EmbeddedStorageManager storage = EmbeddedStorage.start(value))
              {
                  storage.root();
              }
          }
      }

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      Test works
      ACTUAL -
      JVM crash:

      Process finished with exit code 134 (interrupted by signal 6:SIGABRT)

      ---------- BEGIN SOURCE ----------
      package test.microstream.handler;

      import org.eclipse.store.storage.embedded.types.EmbeddedStorage;
      import org.eclipse.store.storage.embedded.types.EmbeddedStorageManager;
      import org.junit.jupiter.api.RepeatedTest;
      import org.junit.jupiter.api.Test;

      public class MoreRestartTest
      {

          String value = "asjdjflkdsj";

          @RepeatedTest(300)
          void name()
          {

              try (EmbeddedStorageManager storage = EmbeddedStorage.start(value))
              {
                  storage.root();
              }
          }
      }
      ---------- END SOURCE ----------

      CUSTOMER SUBMITTED WORKAROUND :
      no workaround

      FREQUENCY : always


        1. hs_err_pid61524.log
          68 kB
          Andrew Wang
        2. MoreRestartTest.java
          0.5 kB
          Andrew Wang
        3. replay_pid61524.log
          466 kB
          Andrew Wang

            Unassigned Unassigned
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated:
              Resolved: