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

LingeredApp.startAppExactJvmOpts does not print app output when launching fails

    XMLWordPrintable

Details

    • Enhancement
    • Resolution: Fixed
    • P4
    • 17
    • None
    • hotspot
    • None
    • svc
    • b11

    Description

      If the child process exits due to some error condition, stdout/stderr are not logged. This makes it difficult to analyze test failures:

      ----------System.out:(2/885)----------
      Jar file created: .../scratch/0/test.jar
      Command line: ['...jdk-17/fastdebug/bin/java' '-cp' '.../scratch/0/test.jar' '-XX:+RecordDynamicDumpInfo' 'LingeredTestApp' 'ff2d248f-3d32-4206-b040-3ba07d974ed6.lck']
      ----------System.err:(18/1110)----------
      java.io.IOException: App exited unexpectedly with 1
      at jdk.test.lib.apps.LingeredApp.waitAppReady(LingeredApp.java:279)
      at jdk.test.lib.apps.LingeredApp.waitAppReady(LingeredApp.java:295)
      at jdk.test.lib.apps.LingeredApp.startAppExactJvmOpts(LingeredApp.java:421)
      at JCmdTest.createLingeredApp(JCmdTest.java:92)
      at JCmdTest.test_static(JCmdTest.java:153)
      at JCmdTest.main(JCmdTest.java:208)
      at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:78)
      at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.base/java.lang.reflect.Method.invoke(Method.java:566)
      at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:127)
      at java.base/java.lang.Thread.run(Thread.java:831)

      JavaTest Message: Test threw exception: java.io.IOException: App exited unexpectedly with 1
      JavaTest Message: shutting down test

      STATUS:Failed.`main' threw exception: java.io.IOException: App exited unexpectedly with 1
      ----------rerun:(37/8657)*----------

      Attachments

        Issue Links

          Activity

            People

              minqi Yumin Qi
              iklam Ioi Lam
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: