Taken from comments in original issue:
Since test sun/tools/jcmd/TestJcmdPIDSubstitution.java was added yesterday we saw 4 errors on multiple platforms.
Example today on macOS aarch64 (other errors were seen on Windows and AIX).
Seems the error occurs when testing 'Compiler.perfmap myfile%p' .
[2024-08-01T07:31:03.278638Z] Gathering output for process 24251
[2024-08-01T07:31:03.279568Z] Waiting for completion for process 24251
[2024-08-01T07:31:04.039150Z] Waiting for completion finished for process 24251
Output and diagnostic info for process 24251 was saved into 'pid-24251-output.log'
24239:
java.lang.IllegalArgumentException: Unknown diagnostic command
----------System.err:(18/854)----------
stdout: [24239:
];
stderr: [java.lang.IllegalArgumentException: Unknown diagnostic command
]
exitValue = 1
java.lang.RuntimeException: Expected to get exit value of [0], exit value is: [1]
at jdk.test.lib.process.OutputAnalyzer.shouldHaveExitValue(OutputAnalyzer.java:521)
at TestJcmdPIDSubstitution.verifyOutputFilenames(TestJcmdPIDSubstitution.java:59)
at TestJcmdPIDSubstitution.main(TestJcmdPIDSubstitution.java:50)
at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
at java.base/java.lang.reflect.Method.invoke(Method.java:588)
at com.sun.javatest.regtest.agent.MainActionHelper$AgentVMRunnable.run(MainActionHelper.java:333)
at java.base/java.lang.Thread.run(Thread.java:1575)
Compiler.perfmap is only enabled for linux causing the failure.
Since test sun/tools/jcmd/TestJcmdPIDSubstitution.java was added yesterday we saw 4 errors on multiple platforms.
Example today on macOS aarch64 (other errors were seen on Windows and AIX).
Seems the error occurs when testing 'Compiler.perfmap myfile%p' .
[2024-08-01T07:31:03.278638Z] Gathering output for process 24251
[2024-08-01T07:31:03.279568Z] Waiting for completion for process 24251
[2024-08-01T07:31:04.039150Z] Waiting for completion finished for process 24251
Output and diagnostic info for process 24251 was saved into 'pid-24251-output.log'
24239:
java.lang.IllegalArgumentException: Unknown diagnostic command
----------System.err:(18/854)----------
stdout: [24239:
];
stderr: [java.lang.IllegalArgumentException: Unknown diagnostic command
]
exitValue = 1
java.lang.RuntimeException: Expected to get exit value of [0], exit value is: [1]
at jdk.test.lib.process.OutputAnalyzer.shouldHaveExitValue(OutputAnalyzer.java:521)
at TestJcmdPIDSubstitution.verifyOutputFilenames(TestJcmdPIDSubstitution.java:59)
at TestJcmdPIDSubstitution.main(TestJcmdPIDSubstitution.java:50)
at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
at java.base/java.lang.reflect.Method.invoke(Method.java:588)
at com.sun.javatest.regtest.agent.MainActionHelper$AgentVMRunnable.run(MainActionHelper.java:333)
at java.base/java.lang.Thread.run(Thread.java:1575)
Compiler.perfmap is only enabled for linux causing the failure.
- relates to
-
JDK-8334492 DiagnosticCommands (jcmd) should accept %p in output filenames and substitute PID
- Resolved
- links to
-
Commit(master) openjdk/jdk/6733b89d
-
Review(master) openjdk/jdk/20421
-
Review(master) openjdk/jdk/20480