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

C2: fatal error: DEBUG MESSAGE: duplicated predicate failed which is impossible

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P4 P4
    • None
    • 22
    • hotspot
    • x86_64
    • linux

      The following test failed in the JDK22 CI:

      applications/javafuzzer/BigTest.java

      Here's a snippet from the log file:

      #section:driver
      ----------messages:(7/309)----------
      command: driver applications.javafuzzer.JavaFuzzerRunner -NT 300
      reason: User specified action: run driver/timeout=100000 applications.javafuzzer.JavaFuzzerRunner -NT 300
      started: Tue Nov 28 09:05:23 UTC 2023
      Mode: agentvm
      Agent id: 2
      finished: Tue Nov 28 17:31:40 UTC 2023
      elapsed time (seconds): 30376.471
      ----------configuration:(16/2430)----------

      <snip>

      Summary of the JavaFuzzer run:
      ------------------------------
      Host: ol7-x64-199228
      Tests: 12 x 300
      Args: -conf config.yml

      Started at: Tue Nov 28 09:05:29 UTC 2023


      r3- 300: 187 passed, 1 crashes, 0 fails, 0 hangs, 0 incorrect tests, 112 Reference Java failures
      r5- 300: 180 passed, 0 crashes, 0 fails, 0 hangs, 0 incorrect tests, 120 Reference Java failures
      r12- 300: 171 passed, 0 crashes, 0 fails, 0 hangs, 0 incorrect tests, 129 Reference Java failures
      r9- 300: 188 passed, 0 crashes, 0 fails, 0 hangs, 0 incorrect tests, 112 Reference Java failures
      r6- 300: 206 passed, 0 crashes, 0 fails, 0 hangs, 0 incorrect tests, 94 Reference Java failures
      r10- 300: 188 passed, 0 crashes, 0 fails, 0 hangs, 0 incorrect tests, 112 Reference Java failures
      r7- 300: 176 passed, 0 crashes, 0 fails, 0 hangs, 0 incorrect tests, 124 Reference Java failures
      r4- 300: 186 passed, 0 crashes, 0 fails, 0 hangs, 0 incorrect tests, 114 Reference Java failures
      r1- 300: 185 passed, 0 crashes, 0 fails, 0 hangs, 0 incorrect tests, 115 Reference Java failures
      r8- 300: 179 passed, 0 crashes, 0 fails, 0 hangs, 0 incorrect tests, 121 Reference Java failures
      r11- 300: 197 passed, 0 crashes, 0 fails, 0 hangs, 0 incorrect tests, 103 Reference Java failures
      r2- 300: 180 passed, 0 crashes, 0 fails, 0 hangs, 0 incorrect tests, 120 Reference Java failures

      Finished at: Tue Nov 28 17:31:39 UTC 2023


      #
      # A fatal error has been detected by the Java Runtime Environment:
      #
      # Internal Error (/opt/mach5/mesos/work_dir/slaves/0db9c48f-6638-40d0-9a4b-bd9cc7533eb8-S9821/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/021433c6-bd8c-4791-8e7c-f98c8f5f21cd/runs/0e79d5ff-50c7-4233-9dd3-c8e2ac4588ac/workspace/open/src/hotspot/cpu/x86/macroAssembler_x86.cpp:831), pid=14480, tid=14483
      # fatal error: DEBUG MESSAGE: duplicated predicate failed which is impossible
      #
      # JRE version: Java(TM) SE Runtime Environment (22.0+26) (fastdebug build 22-ea+26-2044)
      # Java VM: Java HotSpot(TM) 64-Bit Server VM (fastdebug 22-ea+26-2044, mixed mode, sharing, compressed oops, compressed class ptrs, g1 gc, linux-amd64)
      # Problematic frame:
      # V [libjvm.so+0x12d80c5] MacroAssembler::debug64(char*, long, long*)+0x45
      #
      # Core dump will be written. Default location: Core dumps may be processed with "/opt/core.sh %p" (or dumping to /tmp/fuzzer.tmp.82Ryxi1xRz/core.14480)
      #
      # If you would like to submit a bug report, please visit:
      # https://bugreport.java.com/bugreport/crash.jsp
      #

      [2023-11-28T17:31:40.110173905Z] Waiting for completion for process 20190
      [2023-11-28T17:31:40.110353571Z] Waiting for completion finished for process 20190
      ----------System.err:(15/908)----------
      java.lang.RuntimeException: assertEquals: expected 1 to equal 2
      at jdk.test.lib.Asserts.fail(Asserts.java:634)
      at jdk.test.lib.Asserts.assertEquals(Asserts.java:205)
      at jdk.test.lib.Asserts.assertEquals(Asserts.java:189)
      at applications.javafuzzer.JavaFuzzerRunner.reportResults(JavaFuzzerRunner.java:264)
      at applications.javafuzzer.JavaFuzzerRunner.runWithConfigurations(JavaFuzzerRunner.java:285)
      at applications.javafuzzer.JavaFuzzerRunner.main(JavaFuzzerRunner.java:307)
      at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
      at java.base/java.lang.reflect.Method.invoke(Method.java:580)
      at com.sun.javatest.regtest.agent.MainActionHelper$AgentVMRunnable.run(MainActionHelper.java:333)
      at java.base/java.lang.Thread.run(Thread.java:1570)

      JavaTest Message: Test threw exception: java.lang.RuntimeException
      JavaTest Message: shutting down test

      result: Failed. Execution failed: `main' threw exception: java.lang.RuntimeException: assertEquals: expected 1 to equal 2

      Here's the crashing thread's stack:

      --------------- T H R E A D ---------------

      Current thread (0x00007febac02ade0): JavaThread "main" [_thread_in_Java, id=14483, stack(0x00007febb42d7000,0x00007febb43d8000) (1028K)]

      Stack: [0x00007febb42d7000,0x00007febb43d8000], sp=0x00007febb43d68e0, free space=1022k
      Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
      V [libjvm.so+0x12d80c5] MacroAssembler::debug64(char*, long, long*)+0x45 (macroAssembler_x86.cpp:831)
      Registers:
      RAX=0x00007febb43fa000, RBX=0x00007febb32800e0, RCX=0x00007febb313aa81, RDX=0x000000000000033f
      RSP=0x00007febb43d68e0, RBP=0x00007febb43d6910, RSI=0x00007febb3288450, RDI=0x00000000e0000000
      R8 =0x00007febb32800e0, R9 =0x0000000000000001, R10=0x0000000000000190, R11=0x0000000000000006
      R12=0x0000000000000000, R13=0x00007feba0de0fcc, R14=0x00007febb43d6910, R15=0x00007febac02ade0
      RIP=0x00007febb29950c5, EFLAGS=0x0000000000010246, CSGSFS=0x002b000000000033, ERR=0x0000000000000006
        TRAPNO=0x000000000000000e

            chagedorn Christian Hagedorn
            dcubed Daniel Daugherty
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: