Test SortingNearlySortedPrimitive sporadically failed at frame::sender(RegisterMap*)

XMLWordPrintable

    • Type: Bug
    • Resolution: Duplicate
    • Priority: P4
    • None
    • Affects Version/s: 26
    • Component/s: hotspot
    • None

      Found this sporadic test failure on a non related change (the pr https://github.com/openjdk/jdk/pull/28242 is about shenandoah gc, but the test failed on g1) GHA test: https://github.com/rgithubli/jdk/actions/runs/19309434854/job/55228261978.

      Partial hs_err:


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

      Command Line: -Xmx768m -XX:MaxRAMPercentage=12.5 -Dtest.boot.jdk=/home/runner/work/jdk/jdk/bootjdk/jdk -Djava.io.tmpdir=/home/runner/work/jdk/jdk/build/run-test-prebuilt/test-support/jtreg_test_jdk_tier1_part2/t
      mp -ea -esa -XX:-CreateCoredumpOnCrash -Djava.library.path=/home/runner/work/jdk/jdk/bundles/tests/jdk/jtreg/native --patch-module=java.base=/home/runner/work/jdk/jdk/build/run-test-prebuilt/test-support/jtreg_test_jdk_tier1_part2/patches/java.base -Djava.security.policy=file:/home/runner/work/jdk/jdk/build/run-test-prebuilt/test-support/jtreg_test_jdk_tier1_part2/jtreg.policy com.sun.javatest.regtest.agent.AgentServer -id 4 -logfile /home/runner/work/jdk/jdk/build/run-test-prebuilt/test-support/jtreg_test_jdk_tier1_part2/jtData/agentServer.4.trace -allowSetSecurityManager -port 37403 -timeoutFactor 4.0

      Host: Intel(R) Xeon(R) Platinum 8370C CPU @ 2.80GHz, 4 cores, 15G, Ubuntu 22.04.5 LTS
      Time: Wed Nov 12 20:03:26 2025 UTC elapsed time: 18.305625 seconds (0d 0h 0m 18s)

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

      Current thread (0x00007fa4e033ec20): JavaThread "AgentVMThread" [_thread_in_Java, id=2600, stack(0x00007fa4e458d000,0x00007fa4e468d000) (1024K)]

      Stack: [0x00007fa4e458d000,0x00007fa4e468d000], sp=0x00007fa4e4686b10, free space=998k
      Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
      V [libjvm.so+0x6765ff] frame::sender(RegisterMap*) const+0x29f (nativeInst_x86.hpp:600)
      V [libjvm.so+0x7fb917] Deoptimization::fetch_unroll_info_helper(JavaThread*, int)+0x127 (deoptimization.cpp:500)
      V [libjvm.so+0x7fc836] Deoptimization::fetch_unroll_info(JavaThread*, int)+0x26 (deoptimization.cpp:296)
      v ~DeoptimizationBlob 0x00007fa4cf787da5
      J 4260 c1 java.util.DualPivotQuicksort$$Lambda+0x00000000651a5fc8.partition(Ljava/lang/Object;IIII)[I java.base@26-internal (14 bytes) @ 0x00007fa4c874fe95 [0x00007fa4c874f700+0x0000000000000795]
      J 4021 c1 java.util.DualPivotQuicksort.sort(Ljava/util/DualPivotQuicksort$Sorter;[FIII)V java.base@26-internal (694 bytes) @ 0x00007fa4c8718004 [0x00007fa4c8717380+0x0000000000000c84]
      J 4021 c1 java.util.DualPivotQuicksort.sort(Ljava/util/DualPivotQuicksort$Sorter;[FIII)V java.base@26-internal (694 bytes) @ 0x00007fa4c87180e4 [0x00007fa4c8717380+0x0000000000000d64]
      J 4021 c1 java.util.DualPivotQuicksort.sort(Ljava/util/DualPivotQuicksort$Sorter;[FIII)V java.base@26-internal (694 bytes) @ 0x00007fa4c8718134 [0x00007fa4c8717380+0x0000000000000db4]
      J 4021 c1 java.util.DualPivotQuicksort.sort(Ljava/util/DualPivotQuicksort$Sorter;[FIII)V java.base@26-internal (694 bytes) @ 0x00007fa4c8718134 [0x00007fa4c8717380+0x0000000000000db4]
      J 4112 c2 SortingNearlySortedPrimitive.sortAndAssert([F)V (41 bytes) @ 0x00007fa4cfe9b884 [0x00007fa4cfe9b6a0+0x00000000000001e4]
      j SortingNearlySortedPrimitive.testShapes(Ljava/lang/String;Ljava/util/function/IntFunction;I)V+31
      j java.lang.invoke.LambdaForm$DMH+0x0000000065218400.invokeVirtual(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;I)V+16 java.base@26-internal
      j java.lang.invoke.LambdaForm$MH+0x000000006521d000.invoke(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;+93 java.base@26-internal
      j java.lang.invoke.LambdaForm$MH+0x0000000065109000.invokeExact_MT(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;+24 java.base@26-internal


      The full hs_err log is in the attachment.

            Assignee:
            Unassigned
            Reporter:
            Rui Li
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: