[lworld] JVM crash when Value Class is declared 'static' and 'strict'

XMLWordPrintable

      A JVM core-dump occurs if a value class field is declared as both static and strict. This combination is invalid according to JVMS §4.5, which mandates that ACC_STRICT fields must be non-static (!ACC_STATIC) and final (ACC_FINAL).

      #
      # A fatal error has been detected by the Java Runtime Environment:
      #
      # SIGSEGV (0xb) at pc=0x00007f9745033340, pid=2029592, tid=2029593
      #
      # JRE version: Java(TM) SE Runtime Environment (26.0+1) (build 26-valhalla+1-118)
      # Java VM: Java HotSpot(TM) 64-Bit Server VM (26-valhalla+1-118, mixed mode, sharing, tiered, compressed oops, compressed class ptrs, g1 gc, linux-amd64)
      # Problematic frame:
      # V [libjvm.so+0x11d3340] VerificationType::print_on(outputStream*) const+0x0
      #
      # Core dump will be written. Default location: Core dumps may be processed with "/usr/lib/systemd/systemd-coredump %P %u %g %s %t %c %h %e" (or dumping to /.../core.2029592)
      #
      # An error report file with more information is saved as:
      # /.../hs_err_pid2029592.log
      #
      # If you would like to submit a bug report, please visit:
      # https://bugreport.java.com/bugreport/crash.jsp
      #
      Aborted (core dumped)


      Attaching the jasm file that compiles to such a class.

        1. core-dump.jasm
          0.6 kB
          Prabushankar Chinnasamy

            Assignee:
            Matias Saavedra Silva
            Reporter:
            Prabushankar Chinnasamy
            Votes:
            0 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated: