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

KafkaStressTest.java failed JFR assertion

    XMLWordPrintable

    Details

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

      Description

      The following test failed in the JDK17 CI:

      applications/kafkastress/KafkaStressTest.java

      Here's a snippet from the log file:

      [2021-01-05 15:49:57,360] INFO [GroupCoordinator 1001]: Preparing to rebalance group perf-consumer-75956 in state PreparingRebalance with old generation 1 (__consumer_offsets-3) (reason: removing member consumer-perf-consumer-75956-1-8b5711a4-5df0-4c6b-b218-d1ae51674f61 on LeaveGroup) (kafka.coordinator.group.GroupCoordinator)
      [2021-01-05 15:49:57,360] INFO [GroupCoordinator 1001]: Group perf-consumer-75956 with generation 2 is now empty (__consumer_offsets-3) (kafka.coordinator.group.GroupCoordinator)
      #
      # A fatal error has been detected by the Java Runtime Environment:
      #
      # Internal Error (/opt/mach5/mesos/work_dir/slaves/983c483a-6907-44e0-ad29-98c7183575e2-S14650/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/a54ebfba-8395-4064-a3f5-ca421f0afdf3/runs/4a1cab60-10cb-4163-b5ed-43c785b8df18/workspace/open/src/hotspot/share/jfr/recorder/checkpoint/types/jfrTypeSet.cpp:222), pid=9391, tid=9447
      # assert(_flushpoint ? ((((JfrTraceIdBits::load(klass)) & (((1 << 3) << 8) | (JfrTraceIdEpoch::this_epoch_bit()))) != 0)) : ((((JfrTraceIdBits::load(klass)) & (((1 << 3) << 8) | (JfrTraceIdEpoch::previous_epoch_bit()))) != 0))) failed: invariant
      #
      # JRE version: Java(TM) SE Runtime Environment (17.0+4) (fastdebug build 17-ea+4-LTS-147)
      # Java VM: Java HotSpot(TM) 64-Bit Server VM (fastdebug 17-ea+4-LTS-147, mixed mode, sharing, tiered, compressed oops, g1 gc, linux-amd64)
      # Problematic frame:
      # V [libjvm.so+0xf50bb9] do_klass(Klass*)+0xa9
      #
      # 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/983c483a-6907-44e0-ad29-98c7183575e2-S14883/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/7dfea53d-eddb-4906-84e7-b402832b7328/runs/5a66921f-03fd-404b-88ff-4a7ac7aa818e/testoutput/test-support/jtreg_closed_test_hotspot_jtreg_applications_kafkastress_KafkaStressTest_java/scratch/0/core.9391)
      #
      # JFR recording file will be written. Location: /opt/mach5/mesos/work_dir/slaves/983c483a-6907-44e0-ad29-98c7183575e2-S14883/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/7dfea53d-eddb-4906-84e7-b402832b7328/runs/5a66921f-03fd-404b-88ff-4a7ac7aa818e/testoutput/test-support/jtreg_closed_test_hotspot_jtreg_applications_kafkastress_KafkaStressTest_java/scratch/0/hs_err_pid9391.jfr
      #
      Unsupported internal testing APIs have been used.

      # An error report file with more information is saved as:
      # /opt/mach5/mesos/work_dir/slaves/983c483a-6907-44e0-ad29-98c7183575e2-S14883/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/7dfea53d-eddb-4906-84e7-b402832b7328/runs/5a66921f-03fd-404b-88ff-4a7ac7aa818e/testoutput/test-support/jtreg_closed_test_hotspot_jtreg_applications_kafkastress_KafkaStressTest_java/scratch/0/hs_err_pid9391.log
      #
      # If you would like to submit a bug report, please visit:
      # https://bugreport.java.com/bugreport/crash.jsp
      #
      ----------System.err:(130/27473)----------

      Here's snippets from the hs_err_pid file:

      # Internal Error (/opt/mach5/mesos/work_dir/slaves/983c483a-6907-44e0-ad29-98c7183575e2-S14650/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/a54ebfba-8395-4064-a3f5-ca421f0afdf3/runs/4a1cab60-10cb-4163-b5ed-43c785b8df18/workspace/open/src/hotspot/share/jfr/recorder/checkpoint/types/jfrTypeSet.cpp:222), pid=9391, tid=9447
      # assert(_flushpoint ? ((((JfrTraceIdBits::load(klass)) & (((1 << 3) << 8) | (JfrTraceIdEpoch::this_epoch_bit()))) != 0)) : ((((JfrTraceIdBits::load(klass)) & (((1 << 3) << 8) | (JfrTraceIdEpoch::previous_epoch_bit()))) != 0))) failed: invariant
      #
      # JRE version: Java(TM) SE Runtime Environment (17.0+4) (fastdebug build 17-ea+4-LTS-147)
      # Java VM: Java HotSpot(TM) 64-Bit Server VM (fastdebug 17-ea+4-LTS-147, mixed mode, sharing, tiered, compressed oops, g1 gc, linux-amd64)
      # Problematic frame:
      # V [libjvm.so+0xf50bb9] do_klass(Klass*)+0xa9

      <snip>

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

      Current thread (0x00007f48440cfd60): JavaThread "JFR Recorder Thread" daemon [_thread_in_vm, id=9447, stack(0x00007f4879cdb000,0x00007f4879ddc000)]

      Stack: [0x00007f4879cdb000,0x00007f4879ddc000], sp=0x00007f4879dda6e0, free space=1021k
      Native frames: (J=compiled Java code, A=aot compiled Java code, j=interpreted, Vv=VM code, C=native code)
      V [libjvm.so+0xf50bb9] do_klass(Klass*)+0xa9
      V [libjvm.so+0xf4a88e] EpochDispatchOp<JfrEpochQueue<JfrEpochQueueKlassPolicy>::ElementDispatch<KlassFunctor> >::dispatch(bool, unsigned char const*, unsigned long)+0xee
      V [libjvm.so+0xf4acaa] void JfrEpochQueue<JfrEpochQueueKlassPolicy>::iterate<KlassFunctor>(KlassFunctor&, bool)+0x1ba
      V [libjvm.so+0xf48d99] JfrTraceIdKlassQueue::iterate(void (*)(Klass*), bool)+0x39
      V [libjvm.so+0xf5561f] do_klasses()+0x3f
      V [libjvm.so+0xf57436] JfrTypeSet::serialize(JfrCheckpointWriter*, JfrCheckpointWriter*, bool, bool)+0x18d6
      V [libjvm.so+0xe9acff] JfrCheckpointManager::write_type_set()+0x46f
      V [libjvm.so+0xf14995] JfrRecorderService::post_safepoint_write()+0x25
      V [libjvm.so+0xf16395] JfrRecorderService::chunk_rotation()+0x85
      V [libjvm.so+0xf17dc5] JfrRecorderService::rotate(int)+0x45
      V [libjvm.so+0xf1970a] recorderthread_entry(JavaThread*, Thread*)+0x34a
      V [libjvm.so+0x18be226] JavaThread::thread_main_inner()+0x256
      V [libjvm.so+0x18c4c30] Thread::call_run()+0x100
      V [libjvm.so+0x15a7436] thread_native_entry(Thread*)+0x116

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            dcubed Daniel Daugherty
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated: