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

runThese failed with "unable to create native thread: possibly out of memory or process/resource limits reached"

    XMLWordPrintable

Details

    • b07
    • x86_64
    • os_x

    Backports

      Description

        The following test failed in the JDK22 CI:

        applications/runthese/RunThese8H.java

        Here's a snippet from the log file:

        Stress process failed. See stress.process.err/stress.process.out files for details. The tail of stress stdout is:


        The tail of stress stderr is:
        wn Source)
          java.base@22-ea/java.lang.Thread.runWith(Thread.java:1583)
          java.base@22-ea/java.lang.Thread.run(Thread.java:1570)
        Thread: Thread[#7925,ForkJoinPool-1-worker-11,5,CarrierThreads]
          java.base@22-ea/java.lang.VirtualThread.mount(VirtualThread.java:348)
          java.base@22-ea/java.lang.VirtualThread.runContinuation(VirtualThread.java:231)
          java.base@22-ea/java.lang.VirtualThread$$Lambda/0x0000000135597ce0.run(Unknown Source)
          java.base@22-ea/java.util.concurrent.ForkJoinTask$RunnableExecuteAction.exec(ForkJoinTask.java:1423)
          java.base@22-ea/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:387)
          java.base@22-ea/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1312)
          java.base@22-ea/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1843)
          java.base@22-ea/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1808)
          java.base@22-ea/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:188)
        Thread: Thread[#904795,pool-472-thread-1,5,main]
          java.base@22-ea/jdk.internal.misc.Unsafe.park(Native Method)
          java.base@22-ea/java.util.concurrent.locks.LockSupport.park(LockSupport.java:371)
          java.base@22-ea/java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionNode.block(AbstractQueuedSynchronizer.java:519)
          java.base@22-ea/java.util.concurrent.ForkJoinPool.unmanagedBlock(ForkJoinPool.java:3780)
          java.base@22-ea/java.util.concurrent.ForkJoinPool.managedBlock(ForkJoinPool.java:3725)
          java.base@22-ea/java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(AbstractQueuedSynchronizer.java:1707)
          java.base@22-ea/java.util.concurrent.LinkedBlockingQueue.take(LinkedBlockingQueue.java:435)
          java.base@22-ea/java.util.concurrent.ThreadPoolExecutor.getTask(ThreadPoolExecutor.java:1070)
          java.base@22-ea/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1130)
          java.base@22-ea/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642)
          java.base@22-ea/java.lang.Thread.runWith(Thread.java:1583)
          java.base@22-ea/java.lang.Thread.run(Thread.java:1570)
        Thread: Thread[#7900,Thread-2108,5,main]
          javasoft.sqe.tests.api.java.lang.management.ThreadMXBean.FindDeadlockedThreads.lambda$test01$0(FindDeadlockedThreads.java:71)
          javasoft.sqe.tests.api.java.lang.management.ThreadMXBean.FindDeadlockedThreads$$Lambda/0x0000000134e768e8.run(Unknown Source)
          java.base@22-ea/java.lang.Thread.runWith(Thread.java:1583)
          java.base@22-ea/java.lang.Thread.run(Thread.java:1570)
        Thread: Thread[#853672,InnocuousThread-24,5,InnocuousThreadGroup]
          java.base@22-ea/jdk.internal.misc.Unsafe.park(Native Method)
          java.base@22-ea/java.util.concurrent.locks.LockSupport.park(LockSupport.java:371)
          java.base@22-ea/java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionNode.block(AbstractQueuedSynchronizer.java:519)
          java.base@22-ea/java.util.concurrent.ForkJoinPool.unmanagedBlock(ForkJoinPool.java:3780)
          java.base@22-ea/java.util.concurrent.ForkJoinPool.managedBlock(ForkJoinPool.java:3725)
          java.base@22-ea/java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(AbstractQueuedSynchronizer.java:1707)
          java.base@22-ea/java.util.concurrent.ArrayBlockingQueue.take(ArrayBlockingQueue.java:420)
          java.base@22-ea/sun.nio.ch.KQueuePort$EventHandlerTask.run(KQueuePort.java:281)
          java.base@22-ea/sun.nio.ch.AsynchronousChannelGroupImpl$1.run(AsynchronousChannelGroupImpl.java:113)
          java.base@22-ea/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144)
          java.base@22-ea/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642)
          java.base@22-ea/java.lang.Thread.runWith(Thread.java:1583)
          java.base@22-ea/java.lang.Thread.run(Thread.java:1570)
          java.base@22-ea/jdk.internal.misc.InnocuousThread.run(InnocuousThread.java:186)
        Thread: Thread[#1783169, ,5,group]
        Thread: Thread[#982613,Thread-136921,5,main]
          java.base@22-ea/jdk.internal.misc.Unsafe.park(Native Method)
          java.base@22-ea/java.util.concurrent.locks.LockSupport.park(LockSupport.java:221)
          java.base@22-ea/java.util.concurrent.locks.AbstractQueuedSynchronizer.acquire(AbstractQueuedSynchronizer.java:754)
          java.base@22-ea/java.util.concurrent.locks.AbstractQueuedSynchronizer.acquireSharedInterruptibly(AbstractQueuedSynchronizer.java:1099)
          java.base@22-ea/java.util.concurrent.CountDownLatch.await(CountDownLatch.java:230)
          javasoft.sqe.tests.api.java.lang.management.ThreadMXBean.GetThreadCpuTime.lambda$test01$2(GetThreadCpuTime.java:65)
          javasoft.sqe.tests.api.java.lang.management.ThreadMXBean.GetThreadCpuTime$$Lambda/0x000000013644e5a8.run(Unknown Source)
          java.base@22-ea/java.lang.Thread.runWith(Thread.java:1583)
          java.base@22-ea/java.lang.Thread.run(Thread.java:1570)
        Thread: Thread[#853664,InnocuousThread-16,5,InnocuousThreadGroup]
          java.base@22-ea/sun.nio.ch.KQueue.poll(Native Method)
          java.base@22-ea/sun.nio.ch.KQueuePort$EventHandlerTask.poll(KQueuePort.java:200)
          java.base@22-ea/sun.nio.ch.KQueuePort$EventHandlerTask.run(KQueuePort.java:287)
          java.base@22-ea/sun.nio.ch.AsynchronousChannelGroupImpl$1.run(AsynchronousChannelGroupImpl.java:113)
          java.base@22-ea/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144)
          java.base@22-ea/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642)
          java.base@22-ea/java.lang.Thread.runWith(Thread.java:1583)
          java.base@22-ea/java.lang.Thread.run(Thread.java:1570)
          java.base@22-ea/jdk.internal.misc.InnocuousThread.run(InnocuousThread.java:186)
        Thread: Thread[#853669,InnocuousThread-21,5,InnocuousThreadGroup]
          java.base@22-ea/jdk.internal.misc.Unsafe.park(Native Method)
          java.base@22-ea/java.util.concurrent.locks.LockSupport.park(LockSupport.java:371)
          java.base@22-ea/java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionNode.block(AbstractQueuedSynchronizer.java:519)
          java.base@22-ea/java.util.concurrent.ForkJoinPool.unmanagedBlock(ForkJoinPool.java:3780)
          java.base@22-ea/java.util.concurrent.ForkJoinPool.managedBlock(ForkJoinPool.java:3725)
          java.base@22-ea/java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(AbstractQueuedSynchronizer.java:1707)
          java.base@22-ea/java.util.concurrent.ArrayBlockingQueue.take(ArrayBlockingQueue.java:420)
          java.base@22-ea/sun.nio.ch.KQueuePort$EventHandlerTask.run(KQueuePort.java:281)
          java.base@22-ea/sun.nio.ch.AsynchronousChannelGroupImpl$1.run(AsynchronousChannelGroupImpl.java:113)
          java.base@22-ea/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144)
          java.base@22-ea/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642)
          java.base@22-ea/java.lang.Thread.runWith(Thread.java:1583)
          java.base@22-ea/java.lang.Thread.run(Thread.java:1570)
          java.base@22-ea/jdk.internal.misc.InnocuousThread.run(InnocuousThread.java:186)
        Thread: Thread[#45,RunThese-TestRunner-Thread-0,5,main]
          java.base@22-ea/java.lang.Thread.dumpThreads(Native Method)
          java.base@22-ea/java.lang.Thread.getAllStackTraces(Thread.java:2488)
          app//applications.kitchensink.process.stress.modules.JckStressModule$TestRunner.runTest(JckStressModule.java:333)
          app//applications.kitchensink.process.stress.modules.JckStressModule$TestRunner.run(JckStressModule.java:234)
          java.base@22-ea/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144)
          java.base@22-ea/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642)
          java.base@22-ea/java.lang.Thread.runWith(Thread.java:1583)
          java.base@22-ea/java.lang.Thread.run(Thread.java:1570)
        Thread: Thread[#56,RunThese-TestRunner-Thread-11,5,main]
          java.base@22-ea/java.lang.Object.wait0(Native Method)
          java.base@22-ea/java.lang.Object.wait(Object.java:375)
          java.base@22-ea/java.lang.Thread.join(Thread.java:2039)
          app//applications.kitchensink.process.stress.modules.JckStressModule$TestRunner.runTest(JckStressModule.java:320)
          app//applications.kitchensink.process.stress.modules.JckStressModule$TestRunner.run(JckStressModule.java:234)
          java.base@22-ea/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144)
          java.base@22-ea/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642)
          java.base@22-ea/java.lang.Thread.runWith(Thread.java:1583)
          java.base@22-ea/java.lang.Thread.run(Thread.java:1570)
        Thread: Thread[#853671,InnocuousThread-23,5,InnocuousThreadGroup]
          java.base@22-ea/jdk.internal.misc.Unsafe.park(Native Method)
          java.base@22-ea/java.util.concurrent.locks.LockSupport.park(LockSupport.java:371)
          java.base@22-ea/java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionNode.block(AbstractQueuedSynchronizer.java:519)
          java.base@22-ea/java.util.concurrent.ForkJoinPool.unmanagedBlock(ForkJoinPool.java:3780)
          java.base@22-ea/java.util.concurrent.ForkJoinPool.managedBlock(ForkJoinPool.java:3725)
          java.base@22-ea/java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(AbstractQueuedSynchronizer.java:1707)
          java.base@22-ea/java.util.concurrent.ArrayBlockingQueue.take(ArrayBlockingQueue.java:420)
          java.base@22-ea/sun.nio.ch.KQueuePort$EventHandlerTask.run(KQueuePort.java:281)
          java.base@22-ea/sun.nio.ch.AsynchronousChannelGroupImpl$1.run(AsynchronousChannelGroupImpl.java:113)
          java.base@22-ea/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144)
          java.base@22-ea/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642)
          java.base@22-ea/java.lang.Thread.runWith(Thread.java:1583)
          java.base@22-ea/java.lang.Thread.run(Thread.java:1570)
          java.base@22-ea/jdk.internal.misc.InnocuousThread.run(InnocuousThread.java:186)
        ======= End of StackTrace Dump =====
        FatalError [13] Unexpected issues while starting new thread for test javasoft.sqe.tests.api.java.lang.Thread.SleepDuration_positiveMs. Error: unable to create native thread: possibly out of memory or process/resource limits reached


        The tail of stress stdout is:
        For random generator using seed: 1052072573885100046
        To re-run test with same seed value please add "-Djdk.test.lib.random.seed=1052072573885100046" to command line.
        Stress process main method is started.
        ----------System.err:(800/93073)----------

        <snip>

        result: Failed. Unexpected exit from test [exit code: 74]

        I'm starting this bug in hotspot/test so that [~lmesnik] can take a
        look at this failure mode which is rather strange.

        Attachments

          Issue Links

            Activity

              People

                stefank Stefan Karlsson
                dcubed Daniel Daugherty
                Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved: