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

Unexpected StackOverflowError in "process reaper" thread still happens

XMLWordPrintable

    • b08
    • x86_64
    • linux

        The following test failed in the JDK16 CI:

        runtime/cds/appcds/dynamicArchive/LambdaProxyCallerIsHidden.java

        Here's a snippet from the log file:

        #section:main
        ----------messages:(7/481)----------
        command: main -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI -Xbootclasspath/a:. LambdaProxyCallerIsHidden
        reason: User specified action: run main/othervm -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI -Xbootclasspath/a:. LambdaProxyCallerIsHidden
        Mode: othervm [/othervm specified]
        Additional options from @modules: --add-modules java.base --add-exports java.base/jdk.internal.misc=ALL-UNNAMED
        Timeout information:
        --- Timeout information end.
        elapsed time (seconds): 1225.829
        ----------configuration:(4/111)----------
        Boot Layer
          add modules: java.base
          add exports: java.base/jdk.internal.misc ALL-UNNAMED

        ----------System.out:(9/3762)----------
        Command line: [/opt/mach5/mesos/work_dir/jib-master/install/jdk-16+6-180/linux-x64-debug.jdk/jdk-16/fastdebug/bin/java -cp /opt/mach5/mesos/work_dir/slaves/4728e7c1-7e67-490e-be0f-6bbf2a2f33db-S312/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/233971cd-2d9e-4b70-862f-ea2f2e53d608/runs/0af541cb-a880-4872-a77e-203af1fb1a78/testoutput/test-support/jtreg_open_test_hotspot_jtreg_hotspot_runtime/classes/0/runtime/cds/appcds/dynamicArchive/LambdaProxyCallerIsHidden.d:/opt/mach5/mesos/work_dir/jib-master/install/jdk-16+6-180/src.full/open/test/hotspot/jtreg/runtime/cds/appcds/dynamicArchive:/opt/mach5/mesos/work_dir/slaves/4728e7c1-7e67-490e-be0f-6bbf2a2f33db-S312/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/233971cd-2d9e-4b70-862f-ea2f2e53d608/runs/0af541cb-a880-4872-a77e-203af1fb1a78/testoutput/test-support/jtreg_open_test_hotspot_jtreg_hotspot_runtime/classes/0/test/lib:/opt/mach5/mesos/work_dir/jib-master/install/jdk-16+6-180/src.full/open/test/lib:/opt/mach5/mesos/work_dir/slaves/4728e7c1-7e67-490e-be0f-6bbf2a2f33db-S312/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/233971cd-2d9e-4b70-862f-ea2f2e53d608/runs/0af541cb-a880-4872-a77e-203af1fb1a78/testoutput/test-support/jtreg_open_test_hotspot_jtreg_hotspot_runtime/classes/0/test/hotspot/jtreg/runtime/cds/appcds:/opt/mach5/mesos/work_dir/jib-master/install/jdk-16+6-180/src.full/open/test/hotspot/jtreg/runtime/cds/appcds:/opt/mach5/mesos/work_dir/slaves/4728e7c1-7e67-490e-be0f-6bbf2a2f33db-S312/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/233971cd-2d9e-4b70-862f-ea2f2e53d608/runs/0af541cb-a880-4872-a77e-203af1fb1a78/testoutput/test-support/jtreg_open_test_hotspot_jtreg_hotspot_runtime/classes/0/test/hotspot/jtreg/runtime/cds/appcds/dynamicArchive/test-classes:/opt/mach5/mesos/work_dir/jib-master/install/jdk-16+6-180/src.full/open/test/hotspot/jtreg/runtime/cds/appcds/dynamicArchive/test-classes:/opt/mach5/mesos/work_dir/jib-master/install/jtreg/5.1/b01/bundles/jtreg_bin-5.1.zip/jtreg/lib/javatest.jar:/opt/mach5/mesos/work_dir/jib-master/install/jtreg/5.1/b01/bundles/jtreg_bin-5.1.zip/jtreg/lib/jtreg.jar -XX:MaxRAMPercentage=6 -Djava.io.tmpdir=/opt/mach5/mesos/work_dir/slaves/4728e7c1-7e67-490e-be0f-6bbf2a2f33db-S312/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/233971cd-2d9e-4b70-862f-ea2f2e53d608/runs/0af541cb-a880-4872-a77e-203af1fb1a78/testoutput/test-support/jtreg_open_test_hotspot_jtreg_hotspot_runtime/tmp -Xcomp -XX:+CreateCoredumpOnCrash -ea -esa -XX:CompileThreshold=100 -XX:+UnlockExperimentalVMOptions -server -XX:+TieredCompilation -XX:ArchiveClassesAtExit=/opt/mach5/mesos/work_dir/slaves/4728e7c1-7e67-490e-be0f-6bbf2a2f33db-S312/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/233971cd-2d9e-4b70-862f-ea2f2e53d608/runs/0af541cb-a880-4872-a77e-203af1fb1a78/testoutput/test-support/jtreg_open_test_hotspot_jtreg_hotspot_runtime/scratch/3/appcds-10h14m04s696.jsa -Xshare:auto -Xlog:class+load,cds+dynamic,cds -cp /opt/mach5/mesos/work_dir/slaves/4728e7c1-7e67-490e-be0f-6bbf2a2f33db-S312/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/233971cd-2d9e-4b70-862f-ea2f2e53d608/runs/0af541cb-a880-4872-a77e-203af1fb1a78/testoutput/test-support/jtreg_open_test_hotspot_jtreg_hotspot_runtime/scratch/3/callerishidden.jar LambdaProxyCallerIsHiddenApp ]
        [2020-07-11T10:14:07.961808666Z] Gathering output for process 11841
        [ELAPSED: 51730 ms]
        [logging stdout to runtime.cds.appcds.dynamicArchive.LambdaProxyCallerIsHidden.java-0000-dump.stdout]
        [logging stderr to runtime.cds.appcds.dynamicArchive.LambdaProxyCallerIsHidden.java-0000-dump.stderr]
        [STDERR]

        [2020-07-11T10:14:58.082054979Z] Waiting for completion for process 11841
        Timeout refired 1200 times
        ----------System.err:(15/1348)----------
        Exception in thread "process reaper" java.lang.StackOverflowError
        at java.base/java.util.concurrent.ConcurrentHashMap.fullAddCount(ConcurrentHashMap.java:2584)
        at java.base/java.util.concurrent.ConcurrentHashMap.addCount(ConcurrentHashMap.java:2334)
        at java.base/java.util.concurrent.ConcurrentHashMap.putVal(ConcurrentHashMap.java:1075)
        at java.base/java.util.concurrent.ConcurrentHashMap.putIfAbsent(ConcurrentHashMap.java:1541)
        at java.base/java.lang.invoke.MethodType$ConcurrentWeakInternSet.add(MethodType.java:1400)
        at java.base/java.lang.invoke.MethodType.makeImpl(MethodType.java:359)
        at java.base/java.lang.invoke.MethodHandleNatives.findMethodHandleType(MethodHandleNatives.java:389)
        at java.base/java.util.concurrent.CompletableFuture.completeValue(CompletableFuture.java:305)
        at java.base/java.util.concurrent.CompletableFuture.complete(CompletableFuture.java:2136)
        at java.base/java.lang.ProcessHandleImpl$1.run(ProcessHandleImpl.java:166)
        at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1130)
        at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:630)
        at java.base/java.lang.Thread.run(Thread.java:832)
        Java HotSpot(TM) 64-Bit Server VM warning: outputStream::do_vsnprintf output truncated -- buffer length is 2000 bytes but 2058 bytes are needed.
        ----------rerun:(49/10273)*----------

        Here's the description of the test task:

        Run test open/test/hotspot/jtreg/:hotspot_runtime with linux-x64-debug with -Xcomp -XX:+CreateCoredumpOnCrash -ea -esa -XX:CompileThreshold=100 -XX:+UnlockExperimentalVMOptions -server -XX:+TieredCompilation #tier4-comp

        I don't know if any of the options affect the reproducibility of
        this latest failure.

        Update: This failure occurred in jdk-16+6-180-tier4 which includes
        the fix for:

         JDK-8217475 Unexpected StackOverflowError in "process reaper" thread

          There are no Sub-Tasks for this issue.

              rriggs Roger Riggs
              dcubed Daniel Daugherty
              Votes:
              0 Vote for this issue
              Watchers:
              9 Start watching this issue

                Created:
                Updated:
                Resolved: