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

sun/tools/jps/TestJps.java can fail with long VM arguments string

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 18
    • Component/s: core-svc
    • Labels:
      None
    • Subcomponent:
    • Resolved In Build:
      b22
    • CPU:
      generic
    • OS:
      generic

      Description

      make run-test TEST=open/test/jdk/sun/tools/jps/TestJps.java TEST_VM_OPTS="-XX:+IgnoreUnrecognizedVMOptions -XX:-MylonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglongOption"

      fails with:
      java.lang.RuntimeException: '^25968.*-XX:Flags=C:\\\\ade\\\\jvm\\\\jdk-master\\\\build\\\\windows-x64-debug\\\\test-support\\\\jtreg_open_test_jdk_sun_tools_jps_TestJps_java\\\\scratch\\\\0\\\\vmflags.*' missing from stdout/stderr

      at jdk.test.lib.process.OutputAnalyzer.shouldMatch(OutputAnalyzer.java:340)
      at JpsHelper.runJpsVariants(JpsHelper.java:243)
      at TestJps.testJps(TestJps.java:56)
      at TestJps.main(TestJps.java:64)
      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)


      The test fails analyzing "jps -v" output
      Corresponding log:
      25968 LingeredAppForJps -Xmx768m -XX:MaxRAMPercentage=6.25 -Djava.io.tmpdir=c:\\ade\\jvm\\jdk-master\\build\\windows-x64-debug\\test-support\\jtreg_open_test_jdk_sun_tools_jps_TestJps_java\\tmp -XX:+IgnoreUnrecognizedVMOptions -XX:-MylonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglongOption -ea -esa -XX:+UsePerfData -Xmx512m -Xlog:gc -Dmultiline.prop=value1\\nvalue2\\r\\nvalue3 -XX:Flags=C:\\ade\\jvm\\jdk

      This is artificial example, but we have failures in Oracle CI in some environments due long paths which make VM argument string too long (> 1024 symbols)

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              amenkov Alex Menkov
              Reporter:
              amenkov Alex Menkov
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: