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

RunThese30M fails "assert((!(((((JfrTraceIdBits::load(value)) & ((1 << 4) << 8)) != 0))))) failed: invariant"

    XMLWordPrintable

Details

    • jfr
    • b04

    Description

      The following test failed in the JDK17 CI:

      applications/runthese/RunThese30M.java

      Here's a snippet from the log file:

      [stress.process.err] runnable: Passed. OK
      [stress.process.err] runnable_multiDimArray: Passed. OK
      [stress.process.err] STATUS:Passed.test cases: 60; all passed
      [stress.process.err] # To suppress the following error report, specify this argument
      [stress.process.err] # after -XX: or in .hotspotrc: SuppressErrorAt=\\jfrTypeSet.cpp:455
      java.lang.NullPointerException: Cannot invoke "String.trim()" because the return value of "java.util.Map.get(Object)" is null
      at applications.kitchensink.process.picker.modules.Toolkit$WindowsToolkit.setMetrics(MonitorPickerModule.java:444)
      at applications.kitchensink.process.picker.modules.Toolkit.getSystemMetrics(MonitorPickerModule.java:123)
      at applications.kitchensink.process.picker.modules.MonitorPickerModule.execute(MonitorPickerModule.java:64)
      at applications.kitchensink.process.picker.modules.PickerModule.run(PickerModule.java:140)
      at java.base/java.lang.Thread.run(Thread.java:831)

      Just two lines of the crash banner showed for some reason.

      Here are snippets from hs_err_pid:

      # Internal Error (t:\workspace\open\src\hotspot\share\jfr\recorder\checkpoint\types\jfrTypeSet.cpp:455), pid=42260, tid=27136
      # assert((!(((((JfrTraceIdBits::load(value)) & ((1 << 4) << 8)) != 0))))) failed: invariant
      #
      # JRE version: Java(TM) SE Runtime Environment (17.0+20) (fastdebug build 17-ea+20-LTS-1676)
      # Java VM: Java HotSpot(TM) 64-Bit Server VM (fastdebug 17-ea+20-LTS-1676, compiled mode, sharing, compressed oops, compressed class ptrs, g1 gc, windows-amd64)
      # Core dump will be written. Default location: T:\testoutput\test-support\jtreg_closed_test_hotspot_jtreg_applications_runthese_RunThese30M_java\scratch\0\hs_err_pid42260.mdmp

      <snip>

      --------------- S U M M A R Y ------------

      Command Line: -Xbootclasspath/a:T:\testoutput\test-support\jtreg_closed_test_hotspot_jtreg_applications_runthese_RunThese30M_java\scratch\0\wb.jar -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI -XX:MaxRAMPercentage=4 -Djava.io.tmpdir=t:\testoutput\test-support\jtreg_closed_test_hotspot_jtreg_applications_runthese_RunThese30M_java\tmp -Xcomp -XX:+CreateCoredumpOnCrash -ea -esa -XX:CompileThreshold=100 -XX:+UnlockExperimentalVMOptions -XX:-TieredCompilation -XX:MaxRAMPercentage=50 -Djava.net.preferIPv6Addresses=false -XX:+DisplayVMOutputToStderr -Xlog:gc*,gc+heap=debug:gc.log:uptime,timemillis,level,tags -XX:+DisableExplicitGC -XX:+StartAttachListener -Djava.io.tmpdir=T:\testoutput\test-support\jtreg_closed_test_hotspot_jtreg_applications_runthese_RunThese30M_java\scratch\0/java.io.tmpdir -Duser.home=T:\testoutput\test-support\jtreg_closed_test_hotspot_jtreg_applications_runthese_RunThese30M_java\scratch\0/user.home -agentpath:c:\ade\mesos\work_dir\jib-master\install\jdk-17+20-1676\windows-x64-debug.test\hotspot\jtreg\native\JvmtiStressModule.dll -XX:NativeMemoryTracking=detail -Djdk.test.lib.random.seed=7405213412903230615 applications.kitchensink.process.stress.Main T:\testoutput\test-support\jtreg_closed_test_hotspot_jtreg_applications_runthese_RunThese30M_java\scratch\0\kitchensink.final.properties

      <snip>

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

      Current thread (0x000001c130b8cde0): JavaThread "JFR Recorder Thread" daemon [_thread_in_vm, id=27136, stack(0x0000001cf6300000,0x0000001cf6400000)]

      Stack: [0x0000001cf6300000,0x0000001cf6400000]
      Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
      V [jvm.dll+0xacc521] os::platform_print_native_stack+0xf1 (os_windows_x86.cpp:235)
      V [jvm.dll+0xcef1b7] VMError::report+0xfc7 (vmError.cpp:739)
      V [jvm.dll+0xcf0b3e] VMError::report_and_die+0x7fe (vmError.cpp:1549)
      V [jvm.dll+0xcf1254] VMError::report_and_die+0x64 (vmError.cpp:1330)
      V [jvm.dll+0x4ce787] report_vm_error+0xb7 (debug.cpp:282)
      V [jvm.dll+0x71ad14] register_klass+0x164 (jfrTypeSet.cpp:470)
      V [jvm.dll+0x44fd6c] ClassLoaderData::classes_do+0x2c (classLoaderData.cpp:346)
      V [jvm.dll+0x453192] ClassLoaderDataGraph::classes_do+0x192 (classLoaderDataGraph.cpp:368)
      V [jvm.dll+0x719209] JfrTypeSet::clear+0x109 (jfrTypeSet.cpp:1123)
      V [jvm.dll+0x6c5f6e] JfrCheckpointManager::clear+0x11e (jfrCheckpointManager.cpp:355)
      V [jvm.dll+0x6ffcde] JfrRecorderService::start+0x18e (jfrRecorderService.cpp:419)
      V [jvm.dll+0x7009a1] recorderthread_entry+0x281 (jfrRecorderThreadLoop.cpp:78)
      V [jvm.dll+0xc7e017] JavaThread::thread_main_inner+0x1f7 (thread.cpp:1342)
      V [jvm.dll+0xc75384] Thread::call_run+0x1b4 (thread.cpp:411)
      V [jvm.dll+0xacae1e] thread_native_entry+0xae (os_windows.cpp:552)
      C [ucrtbase.dll+0x1fb80]
      C [KERNEL32.DLL+0x84d4]
      C [ntdll.dll+0x51781]

      Attachments

        Issue Links

          Activity

            People

              mgronlun Markus Grönlund
              dcubed Daniel Daugherty
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: