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

SIGSEGV (duplicated predicate failed) in java.util.GregorianCalendar.computeTime

XMLWordPrintable

    • x86_64
    • linux

      ADDITIONAL SYSTEM INFORMATION :
      $ uname -a
      Linux ***REDACTED*** 4.18.0-425.19.2.el8_7.x86_64 #1 SMP Fri Mar 17 01:52:38 EDT 2023 x86_64 x86_64 x86_64 GNU/Linux

      $ cat /etc/redhat-release
      Red Hat Enterprise Linux release 8.7 (Ootpa)

      $ java -version
      openjdk version "11.0.19" 2023-04-18
      OpenJDK Runtime Environment Temurin-11.0.19+7 (build 11.0.19+7)
      OpenJDK 64-Bit Server VM Temurin-11.0.19+7 (build 11.0.19+7, mixed mode)

      A DESCRIPTION OF THE PROBLEM :
      Sporadically (in 50% of app executions), the compiled code of java.util.GregorianCalendar.computeTime() leads to a crash. It seems like a predicate check fails and the HLT instruction causes a SIGSEGV. Disassembly and field values are included in the attached hs_err file.

      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      It happens sporadically (in 50% of app executions) in a proprietary application. We were not able to reproduce the problem in an isolated environment.

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      No crash.
      ACTUAL -
      =============== DEBUG MESSAGE: duplicated predicate failed which is impossible ================

      #
      # A fatal error has been detected by the Java Runtime Environment:
      #
      # SIGSEGV (0xb) at pc=0x00007f1ed866ad77, pid=71279, tid=71280
      #
      # JRE version: OpenJDK Runtime Environment Temurin-11.0.19+7 (11.0.19+7) (build 11.0.19+7)
      # Java VM: OpenJDK 64-Bit Server VM Temurin-11.0.19+7 (11.0.19+7, mixed mode, tiered, compressed oops, g1 gc, linux-amd64)
      # Problematic frame:
      # J 7559 c2 java.util.GregorianCalendar.computeTime()V java.base@11.0.19 (970 bytes) @ 0x00007f1ed866ad77 [0x00007f1ed866a2c0+0x0000000000000ab7]
      #
      # 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 /home/***REDACTED***)
      #
      # An error report file with more information is saved as:
      # /home/***REDACTED***/hs_err_pid71279.log
      Compiled method (c2) 7216 7559 4 java.util.GregorianCalendar::computeTime (970 bytes)
       total in heap [0x00007f1ed866a090,0x00007f1ed866bba8] = 6936
       relocation [0x00007f1ed866a208,0x00007f1ed866a2b0] = 168
       main code [0x00007f1ed866a2c0,0x00007f1ed866b120] = 3680
       stub code [0x00007f1ed866b120,0x00007f1ed866b170] = 80
       metadata [0x00007f1ed866b170,0x00007f1ed866b208] = 152
       scopes data [0x00007f1ed866b208,0x00007f1ed866b7e8] = 1504
       scopes pcs [0x00007f1ed866b7e8,0x00007f1ed866ba88] = 672
       dependencies [0x00007f1ed866ba88,0x00007f1ed866baa0] = 24
       handler table [0x00007f1ed866baa0,0x00007f1ed866bb30] = 144
       nul chk table [0x00007f1ed866bb30,0x00007f1ed866bba8] = 120
      Loaded disassembler from /usr/lib/jvm/kup-java-11/jdk-11.0.19+7/lib/server/hsdis-amd64.so
      #
      # If you would like to submit a bug report, please visit:
      # https://github.com/adoptium/adoptium-support/issues
      #

      FREQUENCY : often

            sswsharm swati sharma (Inactive)
            pnarayanaswa Praveen Narayanaswamy
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: