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

Segfault with CDS

XMLWordPrintable

    • x86_64
    • linux

      ADDITIONAL SYSTEM INFORMATION :
      Spring Boot 3.3.3 with Spring Boot Maven Plugin, JRE version: OpenJDK Runtime Environment (21.0.4+9) (build 21.0.4+9-LTS)

      A DESCRIPTION OF THE PROBLEM :
      We use Spring Boot's Maven Plugin (version 3.3.3) to generate a Docker image. We enabled CDS, which leads to the plugin (more precisely the Buildpack) running the application once during the build and then collecting class metadata.

      This crashes with

      [creator] #
      [creator] # A fatal error has been detected by the Java Runtime Environment:
      [creator] #
      [creator] # SIGSEGV (0xb) at pc=0x0000784ab3adf86d, pid=479, tid=480
      [creator] #
      [creator] # JRE version: OpenJDK Runtime Environment (21.0.4+9) (build 21.0.4+9-LTS)
      [creator] # Java VM: OpenJDK 64-Bit Server VM (21.0.4+9-LTS, mixed mode, sharing, tiered, compressed oops, compressed class ptrs, g1 gc, linux-amd64)
      [creator] # Problematic frame:
      [creator] # V [libjvm.so+0x8df86d] InstanceKlass::can_be_verified_at_dumptime() const+0x6d
      [creator] #
      [creator] # Core dump will be written. Default location: /core.%e.479.%t
      [creator] #
      [creator] # An error report file with more information is saved as:
      [creator] # /workspace/hs_err_pid479.log
      [creator] #
      [creator] # If you would like to submit a bug report, please visit:
      [creator] # https://bell-sw.com/support
      [creator] #

      This occurs on our CI system. As this runs inside of the build pack, I am unable to retrieve the hs_err file.

      Unfortunately, this crash occurs not every time, but only sometimes. This seems to be random.

      REGRESSION : Last worked in version 21.0.4

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      The build works
      ACTUAL -
      [creator] #
      [creator] # A fatal error has been detected by the Java Runtime Environment:
      [creator] #
      [creator] # SIGSEGV (0xb) at pc=0x0000784ab3adf86d, pid=479, tid=480
      [creator] #
      [creator] # JRE version: OpenJDK Runtime Environment (21.0.4+9) (build 21.0.4+9-LTS)
      [creator] # Java VM: OpenJDK 64-Bit Server VM (21.0.4+9-LTS, mixed mode, sharing, tiered, compressed oops, compressed class ptrs, g1 gc, linux-amd64)
      [creator] # Problematic frame:
      [creator] # V [libjvm.so+0x8df86d] InstanceKlass::can_be_verified_at_dumptime() const+0x6d
      [creator] #
      [creator] # Core dump will be written. Default location: /core.%e.479.%t
      [creator] #
      [creator] # An error report file with more information is saved as:
      [creator] # /workspace/hs_err_pid479.log
      [creator] #
      [creator] # If you would like to submit a bug report, please visit:
      [creator] # https://bell-sw.com/support
      [creator] #

      CUSTOMER SUBMITTED WORKAROUND :
      Disable CDS

      FREQUENCY : occasionally


            Unassigned Unassigned
            pnarayanaswa Praveen Narayanaswamy
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: