JDK-8240710 : JFR TestCrossProcessStreaming.java failed to attach
  • Type: Bug
  • Component: hotspot
  • Sub-Component: jfr
  • Affected Version: 15
  • Priority: P4
  • Status: Closed
  • Resolution: Duplicate
  • OS: windows
  • CPU: x86_64
  • Submitted: 2020-03-08
  • Updated: 2020-03-18
  • Resolved: 2020-03-18
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 15
15Resolved
Related Reports
Duplicate :  
Relates :  
Relates :  
Description
The following test failed in the JDK15 CI:

jdk/jfr/api/consumer/streaming/TestCrossProcessStreaming.java

Here's a snippet from the log file:

----------System.err:(16/1222)----------
com.sun.tools.attach.AttachNotSupportedException: jvm.dll not loaded by target process
	at jdk.attach/sun.tools.attach.VirtualMachineImpl.<init>(VirtualMachineImpl.java:64)
	at jdk.attach/sun.tools.attach.AttachProviderImpl.attachVirtualMachine(AttachProviderImpl.java:69)
	at jdk.attach/com.sun.tools.attach.VirtualMachine.attach(VirtualMachine.java:207)
	at jdk.jfr.api.consumer.streaming.TestCrossProcessStreaming.getJfrRepository(TestCrossProcessStreaming.java:169)
	at jdk.jfr.api.consumer.streaming.TestCrossProcessStreaming.main(TestCrossProcessStreaming.java:86)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.base/java.lang.reflect.Method.invoke(Method.java:564)
	at com.sun.javatest.regtest.agent.MainActionHelper$AgentVMRunnable.run(MainActionHelper.java:298)
	at java.base/java.lang.Thread.run(Thread.java:832)

JavaTest Message: Test threw exception: com.sun.tools.attach.AttachNotSupportedException
JavaTest Message: shutting down test

----------System.out:(2/1776)*----------
Command line: [c:\\ade\\mesos\\work_dir\\jib-master\\install\\jdk-15+14-522\\windows-x64-debug.jdk\\jdk-15\\fastdebug\\bin\\java.exe -cp T:\\testoutput\\test-support\\jtreg_open_test_jdk_jdk_svc\\classes\\0\\jdk\\jfr\\api\\consumer\\streaming\\TestCrossProcessStreaming.d;C:\\ade\\mesos\\work_dir\\jib-master\\install\\jdk-15+14-522\\src.full\\open\\test\\jdk\\jdk\\jfr\\api\\consumer\\streaming;T:\\testoutput\\test-support\\jtreg_open_test_jdk_jdk_svc\\classes\\0\\test\\lib;T:\\testoutput\\test-support\\jtreg_open_test_jdk_jdk_svc\\classes\\0\\test\\jdk;C:\\ade\\mesos\\work_dir\\jib-master\\install\\jtreg\\5.0\\b01\\bundles\\jtreg_bin-5.0.zip\\jtreg\\lib\\javatest.jar;C:\\ade\\mesos\\work_dir\\jib-master\\install\\jtreg\\5.0\\b01\\bundles\\jtreg_bin-5.0.zip\\jtreg\\lib\\jtreg.jar -XX:StartFlightRecording jdk.jfr.api.consumer.streaming.TestCrossProcessStreaming$EventProducer ]
[Event-Producer]:c:\\ade\\mesos\\work_dir\\jib-master\\install\\jdk-15+14-522\\windows-x64-debug.jdk\\jdk-15\\fastdebug\\bin\\java.exe -cp T:\\testoutput\\test-support\\jtreg_open_test_jdk_jdk_svc\\classes\\0\\jdk\\jfr\\api\\consumer\\streaming\\TestCrossProcessStreaming.d;C:\\ade\\mesos\\work_dir\\jib-master\\install\\jdk-15+14-522\\src.full\\open\\test\\jdk\\jdk\\jfr\\api\\consumer\\streaming;T:\\testoutput\\test-support\\jtreg_open_test_jdk_jdk_svc\\classes\\0\\test\\lib;T:\\testoutput\\test-support\\jtreg_open_test_jdk_jdk_svc\\classes\\0\\test\\jdk;C:\\ade\\mesos\\work_dir\\jib-master\\install\\jtreg\\5.0\\b01\\bundles\\jtreg_bin-5.0.zip\\jtreg\\lib\\javatest.jar;C:\\ade\\mesos\\work_dir\\jib-master\\install\\jtreg\\5.0\\b01\\bundles\\jtreg_bin-5.0.zip\\jtreg\\lib\\jtreg.jar -XX:StartFlightRecording jdk.jfr.api.consumer.streaming.TestCrossProcessStreaming$EventProducer
result: Failed. Execution failed: `main' threw exception: com.sun.tools.attach.AttachNotSupportedException: jvm.dll not loaded by target process


test result: Failed. Execution failed: `main' threw exception: com.sun.tools.attach.AttachNotSupportedException: jvm.dll not loaded by target process

Comments
Changes done in "8241033: Create test library utility for getting JFR streaming repository" fix this problem
18-03-2020

Proposed fix: http://cr.openjdk.java.net/~mseledtsov/8240710.00/
13-03-2020

ILW = MLH = P4
09-03-2020