[lworld] misc jdk/jfr/event/oldobject tests crash with --enable-preview

XMLWordPrintable

    • jfr
    • generic
    • generic

      The following tests crashed in the Valhalla CI with the --enable-preview option:

      jdk/jfr/event/oldobject/TestReferenceChainLimit.java
      jdk/jfr/event/oldobject/TestLargeRootSet.java
      jdk/jfr/event/oldobject/TestHeapDeep.java

      Here's a snippet from the TestReferenceChainLimit.java log file:

      #section:main
      ----------messages:(8/473)----------
      command: main -XX:TLABSize=2k jdk.jfr.event.oldobject.TestReferenceChainLimit
      reason: User specified action: run main/othervm -XX:TLABSize=2k jdk.jfr.event.oldobject.TestReferenceChainLimit
      started: Thu Jan 08 00:36:18.603 GMT 2026
      Mode: othervm [/othervm specified]
      Additional options from @modules: --add-modules jdk.jfr --add-exports jdk.jfr/jdk.jfr.internal.test=ALL-UNNAMED
      Process id: 52689
      finished: Thu Jan 08 00:38:52.828 GMT 2026
      elapsed time (seconds): 154.225
      ----------configuration:(4/115)----------
      Boot Layer
        add modules: jdk.jfr
        add exports: jdk.jfr/jdk.jfr.internal.test ALL-UNNAMED

      ----------System.out:(17/1634)----------
      #
      # A fatal error has been detected by the Java Runtime Environment:
      #
      # Internal Error (/System/Volumes/Data/mesos/work_dir/slaves/da1065b5-7b94-4f0d-85e9-a3a252b9a32e-S47240/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/4dc375b5-0100-46ae-b1b4-4d631fe9325b/runs/facfb9c2-f4d4-436d-b35b-6dead39aed31/workspace/open/src/hotspot/share/jfr/leakprofiler/checkpoint/eventEmitter.cpp:141), pid=52689, tid=19715
      # assert(edge->pointee() == sample->object()) failed: invariant
      #
      # JRE version: Java(TM) SE Runtime Environment (27.0+1) (fastdebug build 27-valhalla+1-20)
      # Java VM: Java HotSpot(TM) 64-Bit Server VM (fastdebug 27-valhalla+1-20, mixed mode, sharing, tiered, compressed oops, compressed class ptrs, g1 gc, bsd-aarch64)
      # Core dump will be written. Default location: core.52689
      #
      # JFR recording file will be written. Location: /System/Volumes/Data/mesos/work_dir/slaves/da1065b5-7b94-4f0d-85e9-a3a252b9a32e-S43554/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/c41a313d-0f5d-4eee-9758-cafee1b1c3c8/runs/089ced67-c09d-4c93-b710-089b5ddb8e1a/testoutput/test-support/jtreg_open_test_jdk_tier3_part1/scratch/3/hs_err_pid52689.jfr
      #
      # An error report file with more information is saved as:
      # /System/Volumes/Data/mesos/work_dir/slaves/da1065b5-7b94-4f0d-85e9-a3a252b9a32e-S43554/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/c41a313d-0f5d-4eee-9758-cafee1b1c3c8/runs/089ced67-c09d-4c93-b710-089b5ddb8e1a/testoutput/test-support/jtreg_open_test_jdk_tier3_part1/scratch/3/hs_err_pid52689.log

      ------ Timeout during error reporting after 120 s. ------
      # [ timer expired, abort... ]
      ----------System.err:(0/0)----------
      ----------rerun:(43/9333)*----------

      Here's the crashing stack for TestReferenceChainLimit.java:

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

      Current thread (0x0000000154009a10): VMThread "VM Thread" [id=19715, stack(0x0000000170cdc000,0x0000000170edf000) (2060K)]

      Stack: [0x0000000170cdc000,0x0000000170edf000], sp=0x0000000170ede420, free space=2057k
      Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
      V [libjvm.dylib+0x1375214] VMError::report(outputStream*, bool)+0x1b70 (eventEmitter.cpp:141)
      V [libjvm.dylib+0x1378b18] VMError::report_and_die(int, char const*, char const*, char*, Thread*, unsigned char*, void const*, void const*, char const*, int, unsigned long)+0x55c
      V [libjvm.dylib+0x625550] print_error_for_unit_test(char const*, char const*, char*)+0x0
      V [libjvm.dylib+0x718850] EventEmitter::write_event(ObjectSample const*, EdgeStore*)+0x4c0
      V [libjvm.dylib+0x7180e8] EventEmitter::write_events(ObjectSampler*, EdgeStore*, bool)+0x16c
      V [libjvm.dylib+0x100cc18] PathToGcRootsOperation::doit()+0x2c4
      V [libjvm.dylib+0x1380be8] VM_Operation::evaluate()+0x11c
      V [libjvm.dylib+0x1395c04] VMThread::evaluate_operation(VM_Operation*)+0x13c
      V [libjvm.dylib+0x13966d4] VMThread::inner_execute(VM_Operation*)+0x320
      V [libjvm.dylib+0x13958b8] VMThread::loop()+0x98
      V [libjvm.dylib+0x1395644] VMThread::run()+0xc0
      V [libjvm.dylib+0x12a7180] Thread::call_run()+0xf0
      V [libjvm.dylib+0xfb89e8] thread_native_entry(Thread*)+0x138
      C [libsystem_pthread.dylib+0x6bc8] _pthread_start+0x88
      VM_Operation (0x00000001727f9e60): JFROldObject, mode: safepoint, requested by thread 0x000000015403a610

      Here's a snippet from the TestLargeRootSet.java log file:

      #section:main
      ----------messages:(8/459)----------
      command: main -XX:TLABSize=2k jdk.jfr.event.oldobject.TestLargeRootSet
      reason: User specified action: run main/othervm -XX:TLABSize=2k jdk.jfr.event.oldobject.TestLargeRootSet
      started: Thu Jan 08 00:36:09.248 GMT 2026
      Mode: othervm [/othervm specified]
      Additional options from @modules: --add-modules jdk.jfr --add-exports jdk.jfr/jdk.jfr.internal.test=ALL-UNNAMED
      Process id: 52676
      finished: Thu Jan 08 00:38:53.631 GMT 2026
      elapsed time (seconds): 164.383
      ----------configuration:(4/115)----------
      Boot Layer
        add modules: jdk.jfr
        add exports: jdk.jfr/jdk.jfr.internal.test ALL-UNNAMED

      ----------System.out:(17/1622)----------
      #
      # A fatal error has been detected by the Java Runtime Environment:
      #
      # Internal Error (/System/Volumes/Data/mesos/work_dir/slaves/da1065b5-7b94-4f0d-85e9-a3a252b9a32e-S47240/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/4dc375b5-0100-46ae-b1b4-4d631fe9325b/runs/facfb9c2-f4d4-436d-b35b-6dead39aed31/workspace/open/src/hotspot/share/jfr/leakprofiler/chains/edgeStore.cpp:241), pid=52676, tid=18691
      # assert(_leak_context_edges != nullptr) failed: invariant
      #
      # JRE version: Java(TM) SE Runtime Environment (27.0+1) (fastdebug build 27-valhalla+1-20)
      # Java VM: Java HotSpot(TM) 64-Bit Server VM (fastdebug 27-valhalla+1-20, mixed mode, sharing, tiered, compressed oops, compressed class ptrs, g1 gc, bsd-aarch64)
      # Core dump will be written. Default location: core.52676
      #
      # JFR recording file will be written. Location: /System/Volumes/Data/mesos/work_dir/slaves/da1065b5-7b94-4f0d-85e9-a3a252b9a32e-S43554/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/c41a313d-0f5d-4eee-9758-cafee1b1c3c8/runs/089ced67-c09d-4c93-b710-089b5ddb8e1a/testoutput/test-support/jtreg_open_test_jdk_tier3_part1/scratch/0/hs_err_pid52676.jfr
      #
      # An error report file with more information is saved as:
      # /System/Volumes/Data/mesos/work_dir/slaves/da1065b5-7b94-4f0d-85e9-a3a252b9a32e-S43554/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/c41a313d-0f5d-4eee-9758-cafee1b1c3c8/runs/089ced67-c09d-4c93-b710-089b5ddb8e1a/testoutput/test-support/jtreg_open_test_jdk_tier3_part1/scratch/0/hs_err_pid52676.log

      ------ Timeout during error reporting after 120 s. ------
      # [ timer expired, abort... ]
      ----------System.err:(0/0)----------
      ----------rerun:(43/9235)*----------

      Here's the crashing stack from TestLargeRootSet.java:

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

      Current thread (0x000000013b817010): VMThread "VM Thread" [id=18691, stack(0x0000000170cf0000,0x0000000170ef3000) (2060K)]

      Stack: [0x0000000170cf0000,0x0000000170ef3000], sp=0x0000000170ef24a0, free space=2057k
      Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
      V [libjvm.dylib+0x1375214] VMError::report(outputStream*, bool)+0x1b70 (edgeStore.cpp:241)
      V [libjvm.dylib+0x1378b18] VMError::report_and_die(int, char const*, char const*, char*, Thread*, unsigned char*, void const*, void const*, char const*, int, unsigned long)+0x55c
      V [libjvm.dylib+0x625550] print_error_for_unit_test(char const*, char const*, char*)+0x0
      V [libjvm.dylib+0x6f2008] EdgeStore::has_leak_context(ObjectSample const*) const+0x13c
      V [libjvm.dylib+0x71823c] EventEmitter::link_sample_with_edge(ObjectSample const*, EdgeStore*)+0x74
      V [libjvm.dylib+0x71806c] EventEmitter::write_events(ObjectSampler*, EdgeStore*, bool)+0xf0
      V [libjvm.dylib+0x100cc18] PathToGcRootsOperation::doit()+0x2c4
      V [libjvm.dylib+0x1380be8] VM_Operation::evaluate()+0x11c
      V [libjvm.dylib+0x1395c04] VMThread::evaluate_operation(VM_Operation*)+0x13c
      V [libjvm.dylib+0x13966d4] VMThread::inner_execute(VM_Operation*)+0x320
      V [libjvm.dylib+0x13958b8] VMThread::loop()+0x98
      V [libjvm.dylib+0x1395644] VMThread::run()+0xc0
      V [libjvm.dylib+0x12a7180] Thread::call_run()+0xf0
      V [libjvm.dylib+0xfb89e8] thread_native_entry(Thread*)+0x138
      C [libsystem_pthread.dylib+0x6bc8] _pthread_start+0x88
      VM_Operation (0x000000017280df50): JFROldObject, mode: safepoint, requested by thread 0x000000013b832410

      Here's a snippet from the TestHeapDeep.java log file:

      #section:main
      ----------messages:(8/450)----------
      command: main -XX:TLABSize=2k jdk.jfr.event.oldobject.TestHeapDeep
      reason: User specified action: run main/othervm -XX:TLABSize=2k jdk.jfr.event.oldobject.TestHeapDeep
      started: Thu Jan 08 00:36:08.388 GMT 2026
      Mode: othervm [/othervm specified]
      Additional options from @modules: --add-modules jdk.jfr --add-exports jdk.jfr/jdk.jfr.internal.test=ALL-UNNAMED
      Process id: 52674
      finished: Thu Jan 08 00:38:52.828 GMT 2026
      elapsed time (seconds): 164.44
      ----------configuration:(4/115)----------
      Boot Layer
        add modules: jdk.jfr
        add exports: jdk.jfr/jdk.jfr.internal.test ALL-UNNAMED

      ----------System.out:(17/1634)----------
      #
      # A fatal error has been detected by the Java Runtime Environment:
      #
      # Internal Error (/System/Volumes/Data/mesos/work_dir/slaves/da1065b5-7b94-4f0d-85e9-a3a252b9a32e-S47240/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/4dc375b5-0100-46ae-b1b4-4d631fe9325b/runs/facfb9c2-f4d4-436d-b35b-6dead39aed31/workspace/open/src/hotspot/share/jfr/leakprofiler/checkpoint/eventEmitter.cpp:141), pid=52674, tid=18691
      # assert(edge->pointee() == sample->object()) failed: invariant
      #
      # JRE version: Java(TM) SE Runtime Environment (27.0+1) (fastdebug build 27-valhalla+1-20)
      # Java VM: Java HotSpot(TM) 64-Bit Server VM (fastdebug 27-valhalla+1-20, mixed mode, sharing, tiered, compressed oops, compressed class ptrs, g1 gc, bsd-aarch64)
      # Core dump will be written. Default location: core.52674
      #
      # JFR recording file will be written. Location: /System/Volumes/Data/mesos/work_dir/slaves/da1065b5-7b94-4f0d-85e9-a3a252b9a32e-S43554/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/c41a313d-0f5d-4eee-9758-cafee1b1c3c8/runs/089ced67-c09d-4c93-b710-089b5ddb8e1a/testoutput/test-support/jtreg_open_test_jdk_tier3_part1/scratch/1/hs_err_pid52674.jfr
      #
      # An error report file with more information is saved as:
      # /System/Volumes/Data/mesos/work_dir/slaves/da1065b5-7b94-4f0d-85e9-a3a252b9a32e-S43554/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/c41a313d-0f5d-4eee-9758-cafee1b1c3c8/runs/089ced67-c09d-4c93-b710-089b5ddb8e1a/testoutput/test-support/jtreg_open_test_jdk_tier3_part1/scratch/1/hs_err_pid52674.log

      ------ Timeout during error reporting after 120 s. ------
      # [ timer expired, abort... ]
      ----------System.err:(0/0)----------
      ----------rerun:(43/9179)*----------

      Here's the crashing stack from TestHeapDeep.java:

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

      Current thread (0x000000013e819e10): VMThread "VM Thread" [id=18691, stack(0x000000016c974000,0x000000016cb77000) (2060K)]

      Stack: [0x000000016c974000,0x000000016cb77000], sp=0x000000016cb76420, free space=2057k
      Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
      V [libjvm.dylib+0x1375214] VMError::report(outputStream*, bool)+0x1b70 (eventEmitter.cpp:141)
      V [libjvm.dylib+0x1378b18] VMError::report_and_die(int, char const*, char const*, char*, Thread*, unsigned char*, void const*, void const*, char const*, int, unsigned long)+0x55c
      V [libjvm.dylib+0x625550] print_error_for_unit_test(char const*, char const*, char*)+0x0
      V [libjvm.dylib+0x718850] EventEmitter::write_event(ObjectSample const*, EdgeStore*)+0x4c0
      V [libjvm.dylib+0x7180e8] EventEmitter::write_events(ObjectSampler*, EdgeStore*, bool)+0x16c
      V [libjvm.dylib+0x100cc18] PathToGcRootsOperation::doit()+0x2c4
      V [libjvm.dylib+0x1380be8] VM_Operation::evaluate()+0x11c
      V [libjvm.dylib+0x1395c04] VMThread::evaluate_operation(VM_Operation*)+0x13c
      V [libjvm.dylib+0x13966d4] VMThread::inner_execute(VM_Operation*)+0x320
      V [libjvm.dylib+0x13958b8] VMThread::loop()+0x98
      V [libjvm.dylib+0x1395644] VMThread::run()+0xc0
      V [libjvm.dylib+0x12a7180] Thread::call_run()+0xf0
      V [libjvm.dylib+0xfb89e8] thread_native_entry(Thread*)+0x138
      C [libsystem_pthread.dylib+0x6bc8] _pthread_start+0x88
      VM_Operation (0x000000016e491e60): JFROldObject, mode: safepoint, requested by thread 0x000000012d823610

        There are no Sub-Tasks for this issue.

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

              Created:
              Updated: