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

assert(((((JfrTraceIdBits::load(klass)) & ((JfrTraceIdEpoch::this_epoch_method_and_class_bits()))) != 0))) failed: invariant

    Details

    • Subcomponent:
      jfr
    • CPU:
      x86_64
    • OS:
      linux, windows

      Description

      The following test failed in the JDK16 CI:

      applications/dacapo/Dacapo24H.java

      Here's a snippet from the log file:

      Stress process main method is started.
      #
      # A fatal error has been detected by the Java Runtime Environment:
      #
      # Internal Error (/opt/mach5/mesos/work_dir/slaves/4728e7c1-7e67-490e-be0f-6bbf2a2f33db-S176/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/aee6a73b-f084-4278-9f0c-ba9c4193ecaa/runs/38e347bf-7b52-44c9-9aa9-19ecd82f6dfb/workspace/open/src/hotspot/share/jfr/recorder/checkpoint/types/traceid/jfrTraceIdLoadBarrier.inline.hpp:112), pid=22205, tid=22295
      # assert(((((JfrTraceIdBits::load(klass)) & ((JfrTraceIdEpoch::this_epoch_method_and_class_bits()))) != 0))) failed: invariant
      #
      # JRE version: Java(TM) SE Runtime Environment (16.0+6) (fastdebug build 16-ea+6-181)
      # Java VM: Java HotSpot(TM) 64-Bit Server VM (fastdebug 16-ea+6-181, mixed mode, sharing, tiered, z gc, linux-amd64)
      # Problematic frame:
      # V [libjvm.so+0x139bd74] JfrTraceIdLoadBarrier::load_leakp(Klass const*, Method const*)+0x124
      #
      # Core dump will be written. Default location: Core dumps may be processed with "/opt/core.sh %p" (or dumping to /opt/mach5/mesos/work_dir/slaves/4728e7c1-7e67-490e-be0f-6bbf2a2f33db-S196/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/84072d92-4fac-4276-bdcd-29ca6087b64f/runs/918083e9-1538-4cdb-8fb3-a952ae65f609/testoutput/test-support/jtreg_closed_test_hotspot_jtreg_applications_dacapo_Dacapo24H_java/scratch/0/core.22205)
      #
      # JFR recording file will be written. Location: /opt/mach5/mesos/work_dir/slaves/4728e7c1-7e67-490e-be0f-6bbf2a2f33db-S196/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/84072d92-4fac-4276-bdcd-29ca6087b64f/runs/918083e9-1538-4cdb-8fb3-a952ae65f609/testoutput/test-support/jtreg_closed_test_hotspot_jtreg_applications_dacapo_Dacapo24H_java/scratch/0/hs_err_pid22205.jfr
      #
      Unsupported internal testing APIs have been used.

      # An error report file with more information is saved as:
      # /opt/mach5/mesos/work_dir/slaves/4728e7c1-7e67-490e-be0f-6bbf2a2f33db-S196/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/84072d92-4fac-4276-bdcd-29ca6087b64f/runs/918083e9-1538-4cdb-8fb3-a952ae65f609/testoutput/test-support/jtreg_closed_test_hotspot_jtreg_applications_dacapo_Dacapo24H_java/scratch/0/hs_err_pid22205.log
      [thread 22296 also had an error][thread 22290 also had an error]

      #
      # If you would like to submit a bug report, please visit:
      # https://bugreport.java.com/bugreport/crash.jsp
      #
      ----------System.err:(150/15347)----------


      Here's the crashing thread's stack:

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

      Current thread (0x00007f5800e3efc0): JavaThread "JFR Recorder Thread" daemon [_thread_in_vm, id=22295, stack(0x00007f58425e5000,0x00007f58426e6000)]

      Stack: [0x00007f58425e5000,0x00007f58426e6000], sp=0x00007f58426e4a20, free space=1022k
      Native frames: (J=compiled Java code, A=aot compiled Java code, j=interpreted, Vv=VM code, C=native code)
      V [libjvm.so+0x139bd74] JfrTraceIdLoadBarrier::load_leakp(Klass const*, Method const*)+0x124
      V [libjvm.so+0x139a3de] ObjectSampleCheckpoint::write_stacktrace(JfrStackTrace const*, JfrCheckpointWriter&)+0xfe
      V [libjvm.so+0x139ae2a] StackTraceBlobInstaller::install(ObjectSample*)+0x1ea
      V [libjvm.so+0x139b557] ObjectSampleCheckpoint::on_rotation(ObjectSampler const*, JfrStackTraceRepository&)+0x337
      V [libjvm.so+0xda2dc4] JfrRecorderService::pre_safepoint_write()+0xc4
      V [libjvm.so+0xda3315] JfrRecorderService::chunk_rotation()+0x75
      V [libjvm.so+0xda4da5] JfrRecorderService::rotate(int)+0x45
      V [libjvm.so+0xda8e4a] recorderthread_entry(JavaThread*, Thread*)+0x34a
      V [libjvm.so+0x16d3ebc] JavaThread::thread_main_inner()+0x21c
      V [libjvm.so+0x16d9c40] Thread::call_run()+0x100
      V [libjvm.so+0x13dda56] thread_native_entry(Thread*)+0x116

        Attachments

          Activity

            People

            • Assignee:
              mgronlun Markus Grönlund
              Reporter:
              dcubed Daniel Daugherty
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated: