Deadlock between JVMTI and jni ReleasePrimitiveArrayCritical

XMLWordPrintable

    • Type: Bug
    • Resolution: Unresolved
    • Priority: P4
    • 26
    • Affects Version/s: 26
    • Component/s: hotspot
    • Cause Known

      The following test timed out in the JDK26 CI:

      applications/kitchensink/Kitchensink.java

      Here's a snippet from the log file:

      Stress process is started and all modules initialized.
      Dumping stress process VM options.
      VM non-default flags reported by jcmd VM.flags:
      62376:
      -XX:-AOTAdapterCaching -XX:-AOTInvokeDynamicLinking -XX:-AOTRecordTraining -XX:-AOTReplayTraining -XX:-AOTStubCaching -XX:+BytecodeVerificationLocal -XX:+BytecodeVerificationRemote -XX:CICompilerCount=4 -XX:CompileCommand=memlimit,*.*,0 -XX:CompressedClassSpaceSize=436207616 -XX:+CrashOnOutOfMemoryError -XX:+DisableExplicitGC -XX:+DisplayVMOutputToStderr -XX:-DisplayVMOutputToStdout -XX:+FlightRecorder -XX:+HeapDumpOnOutOfMemoryError -XX:InitialHeapSize=35651584 -XX:MaxHeapSize=8589934592 -XX:MaxMetaspaceSize=536870912 -XX:MaxRAM=17179869184 -XX:MaxRAMPercentage=50.000000 -XX:MinHeapDeltaBytes=2097152 -XX:MinHeapSize=8388608 -XX:NativeMemoryTracking=detail -XX:NonNMethodCodeHeapSize=5832704 -XX:NonProfiledCodeHeapSize=122929152 -XX:ProfiledCodeHeapSize=122896384 -XX:ReservedCodeCacheSize=251658240 -XX:+SegmentedCodeCache -XX:SoftMaxHeapSize=8589934592 -XX:+StartAttachListener -XX:+UnlockDiagnosticVMOptions -XX:-UseCompressedOops -XX:-UseNUMA -XX:-UseNUMAInterleaving -XX:+UseZGC -XX:+WhiteBoxAPI -XX:ZOldGCThreads=2 -XX:ZYoungGCThreads=2

      Starting picker module.

      Picker module started: Jfr
      Picker module started: Jcmd
      Picker module started: Monitor
      Picker module started: NMT
      Picker module started: Perfmon
      Picker module started: Jstat
      [stress.process.err] [ 2025-10-09T14:23:34.422836Z ] Iteration done: Instrumentation at Thu Oct 09 14:23:34 GMT 2025
      [stress.process.err] [ 2025-10-09T14:23:34.435327Z ] Iteration done: LockDeflation at Thu Oct 09 14:23:34 GMT 2025
       stdout: [];
       stderr: [jfr summary: file is empty '/System/Volumes/Data/mesos/work_dir/slaves/0103b69c-746c-4fb5-bf13-94918f380124-S1706/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/d75cd46a-29a3-442a-9af9-f40219daf28d/runs/2c2d5b27-4653-46a3-8eff-d98e27dd80ea/testoutput/test-support/jtreg_closed_test_hotspot_jtreg_applications_kitchensink_Kitchensink_java/scratch/0/jfr-files/external/ks_external13858030528049849745.jfr'
      ]
       exitValue = 1

       stdout: [];
       stderr: [jfr summary: file is empty '/System/Volumes/Data/mesos/work_dir/slaves/0103b69c-746c-4fb5-bf13-94918f380124-S1706/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/d75cd46a-29a3-442a-9af9-f40219daf28d/runs/2c2d5b27-4653-46a3-8eff-d98e27dd80ea/testoutput/test-support/jtreg_closed_test_hotspot_jtreg_applications_kitchensink_Kitchensink_java/scratch/0/jfr-files/external/ks_external11231795738798007271.jfr'
      ]
       exitValue = 1

       stdout: [];
       stderr: [jfr summary: file is empty '/System/Volumes/Data/mesos/work_dir/slaves/0103b69c-746c-4fb5-bf13-94918f380124-S1706/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/d75cd46a-29a3-442a-9af9-f40219daf28d/runs/2c2d5b27-4653-46a3-8eff-d98e27dd80ea/testoutput/test-support/jtreg_closed_test_hotspot_jtreg_applications_kitchensink_Kitchensink_java/scratch/0/jfr-files/external/ks_external16232410193570851567.jfr'
      ]
       exitValue = 1

       stdout: [];
       stderr: [jfr summary: file is empty '/System/Volumes/Data/mesos/work_dir/slaves/0103b69c-746c-4fb5-bf13-94918f380124-S1706/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/d75cd46a-29a3-442a-9af9-f40219daf28d/runs/2c2d5b27-4653-46a3-8eff-d98e27dd80ea/testoutput/test-support/jtreg_closed_test_hotspot_jtreg_applications_kitchensink_Kitchensink_java/scratch/0/jfr-files/external/ks_external8609090402161680561.jfr'
      ]
       exitValue = 1

      Unexpected exception Connection reset during communication. Check process module status.
      [Thu Oct 09 15:23:23 GMT 2025] (1760023403052) Picker module is about to shutdown
      Picker module expected time before shutdown for: Jcmd: 30s
      Picker module expected time before shutdown for: Jfr: 3m 20s
      Picker module expected time before shutdown for: Jstat: 5m
      Picker module expected time before shutdown for: Monitor: 1m
      Picker module expected time before shutdown for: NMT: 1m
      Picker module expected time before shutdown for: Perfmon: 5m
      Picker module finished at [Thu Oct 09 15:23:23 GMT 2025]: Jfr
      Picker module finished at [Thu Oct 09 15:23:23 GMT 2025]: Jcmd
      Picker module finished at [Thu Oct 09 15:23:23 GMT 2025]: Jstat
      Picker module finished at [Thu Oct 09 15:23:23 GMT 2025]: Perfmon
      Picker module finished at [Thu Oct 09 15:23:23 GMT 2025]: NMT
      Picker module finished at [Thu Oct 09 15:23:23 GMT 2025]: Monitor
      [Thu Oct 09 15:23:23 GMT 2025] (1760023403056) Picker module has been shutdown
      [Thu Oct 09 15:23:23 GMT 2025] (1760023403056) Stress process is about to shutdown
      Going to request to stop or kill stress process: 62376
      Stress process: 62376 is still alive.
      Unexpected exception sending stop message to ProcessStopper.
      java.net.ConnectException: Connection refused
      at java.base/sun.nio.ch.Net.connect0(Native Method)
      at java.base/sun.nio.ch.Net.connect(Net.java:546)
      at java.base/sun.nio.ch.Net.connect(Net.java:535)
      at java.base/sun.nio.ch.NioSocketImpl.connect(NioSocketImpl.java:585)
      at java.base/java.net.SocksSocketImpl.connect(SocksSocketImpl.java:284)
      at java.base/java.net.Socket.connect(Socket.java:666)
      at java.base/java.net.Socket.connect(Socket.java:597)
      at java.base/java.net.Socket.<init>(Socket.java:464)
      at java.base/java.net.Socket.<init>(Socket.java:276)
      at applications.kitchensink.utils.ProcessStopper.stopProcess(ProcessStopper.java:146)
      at applications.kitchensink.process.glue.Main.execute(Main.java:371)
      at applications.kitchensink.process.glue.Main.main(Main.java:219)
      at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
      at java.base/java.lang.reflect.Method.invoke(Method.java:565)
      at com.sun.javatest.regtest.agent.MainWrapper$MainTask.run(MainWrapper.java:138)
      at java.base/java.lang.Thread.run(Thread.java:1474)
      ERROR: Failure in shutdown connection to the process.62376Will kill it.
      ----------rerun:(40/10402)*----------

      <snip>

      result: Error. Program `/System/Volumes/Data/mesos/work_dir/jib-master/install/jdk-26+19-1960/macosx-aarch64-debug.jdk/jdk-26/fastdebug/bin/java' timed out (timeout set to 3600000ms, elapsed time including timeout handling was 3857844ms).

            Assignee:
            David Holmes
            Reporter:
            Daniel Daugherty
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated: