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

sun/tools/jhsdb/JShellHeapDumpTest.java fails with RuntimeException 'JShellToolProvider' missing from stdout/stderr

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: P4
    • Resolution: Unresolved
    • Affects Version/s: 17
    • Fix Version/s: 18
    • Component/s: hotspot
    • Labels:

      Description

      Test sun/tools/jhsdb/JShellHeapDumpTest.java still fails with RuntimeException 'JShellToolProvider' missing from stdout/stderr

      The log is:

      Starting Jshell
      [JShell]:c:\\ade\\mesos\\work_dir\\jib-master\\install\\jdk-17+26-2439\\windows-x64-debug.jdk\\jdk-17\\fastdebug\\bin\\jshell.exe
      [JShell] | Welcome to JShell -- Version 17-ea
      [JShell] | For an introduction type: /help intro
      Jshell Started in 6294ms
      Starting jmap against 3536
      [2021-06-22T04:05:55.686558Z] Gathering output for process 9220
      [2021-06-22T04:07:41.159886400Z] Waiting for completion for process 9220
      [2021-06-22T04:07:41.175476500Z] Waiting for completion finished for process 9220
      Output and diagnostic info for process 9220 was saved into 'pid-9220-output.log'
      jhsdb jmap stdout:
      Attaching to process ID 3536, please wait...
      Debugger attached successfully.
      Server compiler detected.
      JVM version is 17-ea+26-LTS-2439
      heap written to T:\\testoutput\\test-support\\jtreg_open_test_jdk_jdk_svc\\scratch\\0\\jhsdb.jmap.heap.1624334741094.hprof

      jhsdb jmap stderr:

      ###### End of all output:
      [2021-06-22T04:07:41.894334400Z] Waiting for completion for process 9220
      [2021-06-22T04:07:41.894334400Z] Waiting for completion finished for process 9220
      Destroying jshell
      Jshell destroyed
      Dump file created Tue Jun 22 04:05:56 UTC 2021
      SerialNo 14
        java.io.FileInputStream.read0()I (FileInputStream.java:(native method))
        java.io.FileInputStream.read()I (FileInputStream.java:228)
        jdk.internal.org.jline.utils.NonBlockingInputStreamImpl.run()V (NonBlockingInputStreamImpl.java:216)
        jdk.internal.org.jline.utils.NonBlockingInputStreamImpl$$Lambda$529+0x0000000801206b88.run()V (:(unknown))
        java.lang.Thread.run()V (Thread.java:833)
      SerialNo 13
        jdk.internal.misc.Unsafe.park(ZJ)V (Unsafe.java:(native method))
        java.util.concurrent.locks.LockSupport.park()V (LockSupport.java:341)
        java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionNode.block()Z (AbstractQueuedSynchronizer.java:506)
        java.util.concurrent.ForkJoinPool.unmanagedBlock(Ljava/util/concurrent/ForkJoinPool$ManagedBlocker;)V (ForkJoinPool.java:3463)
        java.util.concurrent.ForkJoinPool.managedBlock(Ljava/util/concurrent/ForkJoinPool$ManagedBlocker;)V (ForkJoinPool.java:3434)
        java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await()V (AbstractQueuedSynchronizer.java:1623)
        java.util.concurrent.LinkedBlockingQueue.take()Ljava/lang/Object; (LinkedBlockingQueue.java:435)
        java.util.concurrent.ThreadPoolExecutor.getTask()Ljava/lang/Runnable; (ThreadPoolExecutor.java:1062)
        java.util.concurrent.ThreadPoolExecutor.runWorker(Ljava/util/concurrent/ThreadPoolExecutor$Worker;)V (ThreadPoolExecutor.java:1122)
        java.util.concurrent.ThreadPoolExecutor$Worker.run()V (ThreadPoolExecutor.java:635)
        java.lang.Thread.run()V (Thread.java:833)
      SerialNo 12
        sun.nio.ch.SocketDispatcher.read0(Ljava/io/FileDescriptor;JI)I (SocketDispatcher.java:(native method))
        sun.nio.ch.SocketDispatcher.read(Ljava/io/FileDescriptor;JI)I (SocketDispatcher.java:46)
        sun.nio.ch.NioSocketImpl.tryRead(Ljava/io/FileDescriptor;[BII)I (NioSocketImpl.java:261)
        sun.nio.ch.NioSocketImpl.implRead([BII)I (NioSocketImpl.java:312)
        sun.nio.ch.NioSocketImpl.read([BII)I (NioSocketImpl.java:350)
        sun.nio.ch.NioSocketImpl$1.read([BII)I (NioSocketImpl.java:803)
        java.net.Socket$SocketInputStream.read([BII)I (Socket.java:966)
        java.net.Socket$SocketInputStream.read()I (Socket.java:961)
        java.io.FilterInputStream.read()I (FilterInputStream.java:82)
        jdk.jshell.execution.DemultiplexInput.run()V (DemultiplexInput.java:58)
      SerialNo 11
        java.lang.Object.wait(J)V (Object.java:(native method))
        java.lang.Object.wait()V (Object.java:338)
        com.sun.tools.jdi.EventQueueImpl.removeUnfiltered(J)Lcom/sun/tools/jdi/EventSetImpl; (EventQueueImpl.java:190)
        com.sun.tools.jdi.EventQueueImpl.remove(J)Lcom/sun/jdi/event/EventSet; (EventQueueImpl.java:97)
        com.sun.tools.jdi.EventQueueImpl.remove()Lcom/sun/jdi/event/EventSet; (EventQueueImpl.java:83)
        jdk.jshell.execution.JdiEventHandler.run()V (JdiEventHandler.java:79)
        java.lang.Thread.run()V (Thread.java:833)
      SerialNo 10
        sun.nio.ch.SocketDispatcher.read0(Ljava/io/FileDescriptor;JI)I (SocketDispatcher.java:(native method))
        sun.nio.ch.SocketDispatcher.read(Ljava/io/FileDescriptor;JI)I (SocketDispatcher.java:46)
        sun.nio.ch.NioSocketImpl.tryRead(Ljava/io/FileDescriptor;[BII)I (NioSocketImpl.java:261)
        sun.nio.ch.NioSocketImpl.implRead([BII)I (NioSocketImpl.java:312)
        sun.nio.ch.NioSocketImpl.read([BII)I (NioSocketImpl.java:350)
        sun.nio.ch.NioSocketImpl$1.read([BII)I (NioSocketImpl.java:803)
        java.net.Socket$SocketInputStream.read([BII)I (Socket.java:966)
        java.net.Socket$SocketInputStream.read()I (Socket.java:961)
        com.sun.tools.jdi.SocketConnection.readPacket()[B (SocketConnection.java:82)
        com.sun.tools.jdi.TargetVM.run()V (TargetVM.java:124)
        java.lang.Thread.run()V (Thread.java:833)
      SerialNo 9
        java.lang.Object.wait(J)V (Object.java:(native method))
        java.lang.Object.wait()V (Object.java:338)
        com.sun.tools.jdi.EventQueueImpl.removeUnfiltered(J)Lcom/sun/tools/jdi/EventSetImpl; (EventQueueImpl.java:190)
        com.sun.tools.jdi.EventQueueImpl.removeInternal()Lcom/sun/jdi/event/EventSet; (EventQueueImpl.java:125)
        com.sun.tools.jdi.InternalEventHandler.run()V (InternalEventHandler.java:61)
        java.lang.Thread.run()V (Thread.java:833)
      SerialNo 8
        java.lang.Object.wait(J)V (Object.java:(native method))
        java.lang.ref.ReferenceQueue.remove(J)Ljava/lang/ref/Reference; (ReferenceQueue.java:155)
        jdk.internal.ref.CleanerImpl.run()V (CleanerImpl.java:140)
        java.lang.Thread.run()V (Thread.java:833)
        jdk.internal.misc.InnocuousThread.run()V (InnocuousThread.java:162)
      SerialNo 7
      SerialNo 6
      SerialNo 5
      SerialNo 4
        java.lang.Object.wait(J)V (Object.java:(native method))
        java.lang.ref.ReferenceQueue.remove(J)Ljava/lang/ref/Reference; (ReferenceQueue.java:155)
        java.lang.ref.ReferenceQueue.remove()Ljava/lang/ref/Reference; (ReferenceQueue.java:176)
        java.lang.ref.Finalizer$FinalizerThread.run()V (Finalizer.java:172)
      SerialNo 3
        java.lang.ref.Reference.waitForReferencePendingList()V (Reference.java:(native method))
        java.lang.ref.Reference.processPendingReferences()V (Reference.java:253)
        java.lang.ref.Reference$ReferenceHandler.run()V (Reference.java:215)
      SerialNo 2
      SerialNo 1

      ----------System.err:(18/1331)----------
      java.lang.RuntimeException: Test ERROR java.lang.RuntimeException: 'JShellToolProvider' missing from stdout/stderr
      at JShellHeapDumpTest.printStackTraces(JShellHeapDumpTest.java:110)
      at JShellHeapDumpTest.testHeapDump(JShellHeapDumpTest.java:127)
      at JShellHeapDumpTest.main(JShellHeapDumpTest.java:169)
      at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
      at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.base/java.lang.reflect.Method.invoke(Method.java:568)
      at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:127)
      at java.base/java.lang.Thread.run(Thread.java:833)
      Caused by: java.lang.RuntimeException: 'JShellToolProvider' missing from stdout/stderr
      at JShellHeapDumpTest.printStackTraces(JShellHeapDumpTest.java:107)
      ... 8 more

      JavaTest Message: Test threw exception: java.lang.RuntimeException: Test ERROR java.lang.RuntimeException: 'JShellToolProvider' missing from stdout/stderr
      JavaTest Message: shutting down test

      STATUS:Failed.`main' threw exception: java.lang.RuntimeException: Test ERROR java.lang.RuntimeException: 'JShellToolProvider' missing from stdout/stderr
      ----------rerun:(49/5757)*----------
      cd 'T:\\testoutput\\test-support\\jtreg_open_test_jdk_jdk_svc\\scratch\\0' && \\
      JDK8_HOME='c:\\ade\\mesos\\work_dir\\jib-master\\install\\jdk\\16\\36\\bundles\\windows-x64\\jdk-16_windows-x64_bin.zip\\jdk-16' \\
      JIB_DATA_DIR=C:/ade/mesos/work_dir/jib-master \\
      JIB_HOME='c:\\ade\\mesos\\work_dir\\jib-master\\install\\com\\oracle\\java\\jib\\jib\\3.0-SNAPSHOT\\jib-3.0-20210618.184637-471-distribution.zip\\jib-3.0-SNAPSHOT-distribution' \\
      JTREG_EXTRA_PROBLEM_LISTS=ProblemList-Xcomp.txt \\
      JTREG_KEYWORDS='"!jfr & !headful"' \\
      JTREG_TIMEOUT_FACTOR=10 \\
      JTREG_VERBOSE=fail,error,time \\
      PATH='C:\\ade\\mesos\\work_dir\\jib-master\\install\\jpg\\infra\\builddeps\\wix\\3.11.1+1.0\\wix-3.11.1+1.0.zip;C:\\ade\\mesos\\work_dir\\jib-master\\install\\jtreg\\6\\1\\bundles\\jtreg-6+1.zip\\jtreg\\bin;C:\\ade\\mesos\\work_dir\\jib-master\\install\\jpg\\infra\\builddeps\\gnumake-cygwin_x64\\4.0+1.0\\gnumake-cygwin_x64-4.0+1.0.tar.gz\\cygwin\\bin;C:\\ade\\mesos\\work_dir\\jib-master\\install\\jdk\\16\\36\\bundles\\windows-x64\\jdk-16_windows-x64_bin.zip\\jdk-16\\bin;C:\\cygwin\\usr\\local\\bin;C:\\cygwin\\bin;C:\\cygwin\\bin;C:\\cygwin\\bin;C:\\WINDOWS\\system32;C:\\WINDOWS;C:\\WINDOWS\\System32\\Wbem;C:\\WINDOWS\\System32\\WindowsPowerShell\\v1.0;C:\\WINDOWS\\System32\\OpenSSH;C:\\cygwin\\bin;C:\\Users\\cyg_server\\AppData\\Local\\Microsoft\\WindowsApps' \\
      SystemDrive=C: \\
      SystemRoot='C:\\WINDOWS' \\
      TEMP='C:\\cygwin\\tmp' \\
      TEST_IMAGE_DIR='c:\\ade\\mesos\\work_dir\\jib-master\\install\\jdk-17+26-2439\\windows-x64-debug.test' \\
      TMP='C:\\cygwin\\tmp' \\
      TZ=Etc/GMT \\
      _NT_SYMBOL_PATH=' c:\\ade\\mesos\\work_dir\\jib-master\\install\\jdk-17+26-2439\\windows-x64-debug.jdk_symbols\\jdk-17\\fastdebug\\bin;c:\\ade\\mesos\\work_dir\\jib-master\\install\\jdk-17+26-2439\\windows-x64-debug.jdk_symbols\\jdk-17\\fastdebug\\bin\\server' \\
      windir='C:\\WINDOWS' \\
      CLASSPATH='T:\\testoutput\\test-support\\jtreg_open_test_jdk_jdk_svc\\classes\\0\\sun\\tools\\jhsdb\\JShellHeapDumpTest.d;C:\\ade\\mesos\\work_dir\\jib-master\\install\\jdk-17+26-2439\\src.full\\open\\test\\jdk\\sun\\tools\\jhsdb;T:\\testoutput\\test-support\\jtreg_open_test_jdk_jdk_svc\\classes\\0\\test\\lib;C:\\ade\\mesos\\work_dir\\jib-master\\install\\jdk-17+26-2439\\src.full\\open\\test\\lib;C:\\ade\\mesos\\work_dir\\jib-master\\install\\jtreg\\6\\1\\bundles\\jtreg-6+1.zip\\jtreg\\lib\\javatest.jar;C:\\ade\\mesos\\work_dir\\jib-master\\install\\jtreg\\6\\1\\bundles\\jtreg-6+1.zip\\jtreg\\lib\\jtreg.jar' \\
          'c:\\ade\\mesos\\work_dir\\jib-master\\install\\jdk-17+26-2439\\windows-x64-debug.jdk\\jdk-17\\fastdebug\\bin\\java' \\
              -Dtest.vm.opts='-Xmx768m -XX:MaxRAMPercentage=4.16667 -Djava.io.tmpdir=t:\\testoutput\\test-support\\jtreg_open_test_jdk_jdk_svc\\tmp -ea -esa' \\
              -Dtest.tool.vm.opts='-J-Xmx768m -J-XX:MaxRAMPercentage=4.16667 -J-Djava.io.tmpdir=t:\\testoutput\\test-support\\jtreg_open_test_jdk_jdk_svc\\tmp -J-ea -J-esa' \\
              -Dtest.compiler.opts= \\
              -Dtest.java.opts='-XX:+CreateCoredumpOnCrash -XX:+IgnoreUnrecognizedVMOptions -XX:+UseParallelGC -Xcomp -XX:-TieredCompilation' \\
              -Dtest.jdk='c:\\ade\\mesos\\work_dir\\jib-master\\install\\jdk-17+26-2439\\windows-x64-debug.jdk\\jdk-17\\fastdebug' \\
              -Dcompile.jdk='c:\\ade\\mesos\\work_dir\\jib-master\\install\\jdk-17+26-2439\\windows-x64-debug.jdk\\jdk-17\\fastdebug' \\
              -Dtest.timeout.factor=10.0 \\
              -Dtest.nativepath='c:\\ade\\mesos\\work_dir\\jib-master\\install\\jdk-17+26-2439\\windows-x64-debug.test\\jdk\\jtreg\\native' \\
              -Dtest.root='C:\\ade\\mesos\\work_dir\\jib-master\\install\\jdk-17+26-2439\\src.full\\open\\test\\jdk' \\
              -Dtest.name=sun/tools/jhsdb/JShellHeapDumpTest.java \\
              -Dtest.file='C:\\ade\\mesos\\work_dir\\jib-master\\install\\jdk-17+26-2439\\src.full\\open\\test\\jdk\\sun\\tools\\jhsdb\\JShellHeapDumpTest.java' \\
              -Dtest.src='C:\\ade\\mesos\\work_dir\\jib-master\\install\\jdk-17+26-2439\\src.full\\open\\test\\jdk\\sun\\tools\\jhsdb' \\
              -Dtest.src.path='C:\\ade\\mesos\\work_dir\\jib-master\\install\\jdk-17+26-2439\\src.full\\open\\test\\jdk\\sun\\tools\\jhsdb;C:\\ade\\mesos\\work_dir\\jib-master\\install\\jdk-17+26-2439\\src.full\\open\\test\\lib' \\
              -Dtest.classes='T:\\testoutput\\test-support\\jtreg_open_test_jdk_jdk_svc\\classes\\0\\sun\\tools\\jhsdb\\JShellHeapDumpTest.d' \\
              -Dtest.class.path='T:\\testoutput\\test-support\\jtreg_open_test_jdk_jdk_svc\\classes\\0\\sun\\tools\\jhsdb\\JShellHeapDumpTest.d;T:\\testoutput\\test-support\\jtreg_open_test_jdk_jdk_svc\\classes\\0\\test\\lib' \\
              -Dtest.class.path.prefix='T:\\testoutput\\test-support\\jtreg_open_test_jdk_jdk_svc\\classes\\0\\sun\\tools\\jhsdb\\JShellHeapDumpTest.d;C:\\ade\\mesos\\work_dir\\jib-master\\install\\jdk-17+26-2439\\src.full\\open\\test\\jdk\\sun\\tools\\jhsdb;T:\\testoutput\\test-support\\jtreg_open_test_jdk_jdk_svc\\classes\\0\\test\\lib' \\
              -Dtest.modules='jdk.hotspot.agent java.management' \\
              --add-modules jdk.hotspot.agent,java.management \\
              -Xmx768m \\
              -XX:MaxRAMPercentage=4.16667 \\
              '-Djava.io.tmpdir=t:\\testoutput\\test-support\\jtreg_open_test_jdk_jdk_svc\\tmp' \\
              -ea \\
              -esa \\
              -XX:+CreateCoredumpOnCrash \\
              -XX:+IgnoreUnrecognizedVMOptions \\
              -XX:+UseParallelGC \\
              -Xcomp \\
              -XX:-TieredCompilation \\
              '-Djava.library.path=c:\\ade\\mesos\\work_dir\\jib-master\\install\\jdk-17+26-2439\\windows-x64-debug.test\\jdk\\jtreg\\native' \\
              com.sun.javatest.regtest.agent.MainWrapper 'T:\\testoutput\\test-support\\jtreg_open_test_jdk_jdk_svc\\sun\\tools\\jhsdb\\JShellHeapDumpTest.d\\main.0.jta'
      result: Failed. Execution failed: `main' threw exception: java.lang.RuntimeException: Test ERROR java.lang.RuntimeException: 'JShellToolProvider' missing from stdout/stderr


      test result: Failed. Execution failed: `main' threw exception: java.lang.RuntimeException: Test ERROR java.lang.RuntimeException: 'JShellToolProvider' missing from stdout/stderr

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              cjplummer Chris Plummer
              Reporter:
              lmesnik Leonid Mesnik
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated: