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

ciReplay: crash in CompileReplay::unescape_string

XMLWordPrintable

    • Fix Understood

      Several replay files generated by java/lang/String/CompactString/OffsetByCodePoints.java and java/lang/String/CompactString/CodePointBefore.java
      tests crash with

      # A fatal error has been detected by the Java Runtime Environment:
      #
      # Internal Error (/home/katya/work/JavaSE/Hotspot/ws/git/jdk.jdk.master/open/src/hotspot/share/ci/ciReplay.cpp:1307), pid=22375, tid=22376
      # Error: ShouldNotReachHere()
      #
      # JRE version: Java(TM) SE Runtime Environment (18.0) (fastdebug build 18-internal+0-2021-11-08-2032029.katya...)
      # Java VM: Java HotSpot(TM) 64-Bit Server VM (fastdebug 18-internal+0-2021-11-08-2032029.katya..., mixed mode, sharing, tiered, compressed oops, compressed class ptrs, g1 gc, linux-amd64)
      # Problematic frame:
      # V [libjvm.so+0x915aa6] CompileReplay::unescape_string(char*)+0x96
      #
      --------------- S U M M A R Y ------------

      Command Line: -XX:+CompactStrings -XX:+ReplayCompiles -XX:ReplayDataFile=replay_bug.log

      Host: olegbox, Intel(R) Xeon(R) CPU E5-2630 0 @ 2.30GHz, 24 cores, 15G, Ubuntu 16.04.6 LTS
      Time: Wed Nov 10 09:28:39 2021 PST elapsed time: 0.642130 seconds (0d 0h 0m 0s)

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

      Current thread (0x00007f95a402a5e0): JavaThread "main" [_thread_in_vm, id=22376, stack(0x00007f95ac3e4000,0x00007f95ac4e5000)]

      Stack: [0x00007f95ac3e4000,0x00007f95ac4e5000], sp=0x00007f95ac4e3ad0, free space=1022k
      Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
      V [libjvm.so+0x915aa6] CompileReplay::unescape_string(char*)+0x96
      V [libjvm.so+0x918898] CompileReplay::process_staticfield(JavaThread*)+0x3a8
      V [libjvm.so+0x91151a] ciReplay::replay_impl(JavaThread*)+0xb9a
      V [libjvm.so+0x9116cf] ciReplay::replay(JavaThread*)+0xf
      V [libjvm.so+0xfb1c58] JNI_CreateJavaVM+0x5c8
      C [libjli.so+0x3aef] JavaMain+0x8f
      C [libjli.so+0x7aa9] ThreadJavaMain+0x9

      The flag -XX:+CompactStrings actually doesn't matter, the crash happens with and without it.

            dlong Dean Long
            epavlova Ekaterina Pavlova
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: