-
Bug
-
Resolution: Fixed
-
P2
-
15
-
b02
-
generic
-
generic
-
Verified
The following tests are failing the JDK15 CI:
java/lang/instrument/RedefineRecordAttrGenericSig/TestRecordAttrGenericSig.java
java/lang/instrument/RedefineRecordAttr/TestRecordAttr.java
Here's a snippet from the TestRecordAttrGenericSig.java log file:
#section:compile
----------messages:(6/540)----------
command: compile --enable-preview --source 14 /opt/mach5/mesos/work_dir/jib-master/install/jdk-15+1-4/src.full/open/test/jdk/java/lang/instrument/RedefineRecordAttrGenericSig/Host/Host.java
reason: User specified action: run compile --enable-preview --source 14 Host/Host.java
Additional options from @modules: --add-modules java.base,java.compiler,java.instrument,jdk.jartool --add-exports java.base/jdk.internal.misc=ALL-UNNAMED --add-exports jdk.jartool/sun.tools.jar=ALL-UNNAMED
Mode: agentvm
Agent id: 1
elapsed time (seconds): 1.054
----------configuration:(15/1906)----------
Boot Layer (javac runtime environment)
class path: /opt/mach5/mesos/work_dir/jib-master/install/java/re/jtreg/4.2/promoted/all/b16/bundles/jtreg_bin-4.2.zip/jtreg/lib/javatest.jar
/opt/mach5/mesos/work_dir/jib-master/install/java/re/jtreg/4.2/promoted/all/b16/bundles/jtreg_bin-4.2.zip/jtreg/lib/jtreg.jar
patch: java.base /opt/mach5/mesos/work_dir/slaves/d65fa3d4-10de-46aa-a2db-52cc9981537a-S759/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/45698872-7301-4b54-8f83-2ccca6b0b6a8/runs/2c2256fd-8c4b-442c-9180-63c9232c254c/testoutput/test-support/jtreg_open_test_jdk_jdk_svc/patches/java.base
javac compilation environment
add modules: java.base java.compiler java.instrument jdk.jartool
add exports: java.base/jdk.internal.misc ALL-UNNAMED
jdk.jartool/sun.tools.jar ALL-UNNAMED
source path: /opt/mach5/mesos/work_dir/jib-master/install/jdk-15+1-4/src.full/open/test/jdk/java/lang/instrument/RedefineRecordAttrGenericSig
/opt/mach5/mesos/work_dir/jib-master/install/jdk-15+1-4/src.full/open/test/lib
class path: /opt/mach5/mesos/work_dir/jib-master/install/jdk-15+1-4/src.full/open/test/jdk/java/lang/instrument/RedefineRecordAttrGenericSig
/opt/mach5/mesos/work_dir/slaves/d65fa3d4-10de-46aa-a2db-52cc9981537a-S759/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/45698872-7301-4b54-8f83-2ccca6b0b6a8/runs/2c2256fd-8c4b-442c-9180-63c9232c254c/testoutput/test-support/jtreg_open_test_jdk_jdk_svc/classes/2/java/lang/instrument/RedefineRecordAttrGenericSig/TestRecordAttrGenericSig.d
/opt/mach5/mesos/work_dir/slaves/d65fa3d4-10de-46aa-a2db-52cc9981537a-S759/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/45698872-7301-4b54-8f83-2ccca6b0b6a8/runs/2c2256fd-8c4b-442c-9180-63c9232c254c/testoutput/test-support/jtreg_open_test_jdk_jdk_svc/classes/2/test/lib
----------rerun:(43/6337)*----------
<snip>
----------direct:(2/119)----------
error: invalid source release 14 with --enable-preview
(preview language features are only supported for release 15)
result: Error. command line error (exit code 2)
test result: Error. command line error (exit code 2)
It looks like the "--source 14" is making the test not build.
Here's a snippet from the TestRecordAttr.java log file:
#section:build
----------messages:(3/97)----------
command: build TestRecordAttr
reason: Named class compiled on demand
elapsed time (seconds): 0.0
result: Passed. All files up to date
#section:main
----------messages:(5/534)----------
command: main -javaagent:redefineagent.jar --enable-preview -Xlog:redefine+class+record=trace TestRecordAttr Host
reason: User specified action: run main/othervm -javaagent:redefineagent.jar --enable-preview -Xlog:redefine+class+record=trace TestRecordAttr Host
Mode: othervm [/othervm specified]
Additional options from @modules: --add-modules java.base,java.compiler,java.instrument,jdk.jartool --add-exports java.base/jdk.internal.misc=ALL-UNNAMED --add-exports jdk.jartool/sun.tools.jar=ALL-UNNAMED
elapsed time (seconds): 2.074
----------configuration:(5/190)----------
Boot Layer
add modules: java.base java.compiler java.instrument jdk.jartool
add exports: java.base/jdk.internal.misc ALL-UNNAMED
jdk.jartool/sun.tools.jar ALL-UNNAMED
----------System.out:(2/78)----------
Testing original Host class from Host
Trying bad retransform from HostA/redef
----------System.err:(20/2355)----------
error: invalid source release 14 with --enable-preview
(preview language features are only supported for release 15)
java.io.FileNotFoundException: /opt/mach5/mesos/work_dir/slaves/d65fa3d4-10de-46aa-a2db-52cc9981537a-S759/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/45698872-7301-4b54-8f83-2ccca6b0b6a8/runs/2c2256fd-8c4b-442c-9180-63c9232c254c/testoutput/test-support/jtreg_open_test_jdk_jdk_svc/classes/0/java/lang/instrument/RedefineRecordAttr/TestRecordAttr.d/HostA/redef/Host.class (No such file or directory)
at java.base/java.io.FileInputStream.open0(Native Method)
at java.base/java.io.FileInputStream.open(FileInputStream.java:212)
at java.base/java.io.FileInputStream.<init>(FileInputStream.java:154)
at TestRecordAttr.bytesForHostClass(TestRecordAttr.java:260)
at TestRecordAttr.checkBadTransforms(TestRecordAttr.java:239)
at TestRecordAttr.main(TestRecordAttr.java:214)
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.MainWrapper$MainThread.run(MainWrapper.java:127)
at java.base/java.lang.Thread.run(Thread.java:832)
JavaTest Message: Test threw exception: java.io.FileNotFoundException: /opt/mach5/mesos/work_dir/slaves/d65fa3d4-10de-46aa-a2db-52cc9981537a-S759/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/45698872-7301-4b54-8f83-2ccca6b0b6a8/runs/2c2256fd-8c4b-442c-9180-63c9232c254c/testoutput/test-support/jtreg_open_test_jdk_jdk_svc/classes/0/java/lang/instrument/RedefineRecordAttr/TestRecordAttr.d/HostA/redef/Host.class (No such file or directory)
JavaTest Message: shutting down test
STATUS:Failed.`main' threw exception: java.io.FileNotFoundException: /opt/mach5/mesos/work_dir/slaves/d65fa3d4-10de-46aa-a2db-52cc9981537a-S759/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/45698872-7301-4b54-8f83-2ccca6b0b6a8/runs/2c2256fd-8c4b-442c-9180-63c9232c254c/testoutput/test-support/jtreg_open_test_jdk_jdk_svc/classes/0/java/lang/instrument/RedefineRecordAttr/TestRecordAttr.d/HostA/redef/Host.class (No such file or directory)
----------rerun:(43/6208)*----------
Starting this bug as a P2 since there are at least 18 failures
per Tier5 job set.
java/lang/instrument/RedefineRecordAttrGenericSig/TestRecordAttrGenericSig.java
java/lang/instrument/RedefineRecordAttr/TestRecordAttr.java
Here's a snippet from the TestRecordAttrGenericSig.java log file:
#section:compile
----------messages:(6/540)----------
command: compile --enable-preview --source 14 /opt/mach5/mesos/work_dir/jib-master/install/jdk-15+1-4/src.full/open/test/jdk/java/lang/instrument/RedefineRecordAttrGenericSig/Host/Host.java
reason: User specified action: run compile --enable-preview --source 14 Host/Host.java
Additional options from @modules: --add-modules java.base,java.compiler,java.instrument,jdk.jartool --add-exports java.base/jdk.internal.misc=ALL-UNNAMED --add-exports jdk.jartool/sun.tools.jar=ALL-UNNAMED
Mode: agentvm
Agent id: 1
elapsed time (seconds): 1.054
----------configuration:(15/1906)----------
Boot Layer (javac runtime environment)
class path: /opt/mach5/mesos/work_dir/jib-master/install/java/re/jtreg/4.2/promoted/all/b16/bundles/jtreg_bin-4.2.zip/jtreg/lib/javatest.jar
/opt/mach5/mesos/work_dir/jib-master/install/java/re/jtreg/4.2/promoted/all/b16/bundles/jtreg_bin-4.2.zip/jtreg/lib/jtreg.jar
patch: java.base /opt/mach5/mesos/work_dir/slaves/d65fa3d4-10de-46aa-a2db-52cc9981537a-S759/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/45698872-7301-4b54-8f83-2ccca6b0b6a8/runs/2c2256fd-8c4b-442c-9180-63c9232c254c/testoutput/test-support/jtreg_open_test_jdk_jdk_svc/patches/java.base
javac compilation environment
add modules: java.base java.compiler java.instrument jdk.jartool
add exports: java.base/jdk.internal.misc ALL-UNNAMED
jdk.jartool/sun.tools.jar ALL-UNNAMED
source path: /opt/mach5/mesos/work_dir/jib-master/install/jdk-15+1-4/src.full/open/test/jdk/java/lang/instrument/RedefineRecordAttrGenericSig
/opt/mach5/mesos/work_dir/jib-master/install/jdk-15+1-4/src.full/open/test/lib
class path: /opt/mach5/mesos/work_dir/jib-master/install/jdk-15+1-4/src.full/open/test/jdk/java/lang/instrument/RedefineRecordAttrGenericSig
/opt/mach5/mesos/work_dir/slaves/d65fa3d4-10de-46aa-a2db-52cc9981537a-S759/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/45698872-7301-4b54-8f83-2ccca6b0b6a8/runs/2c2256fd-8c4b-442c-9180-63c9232c254c/testoutput/test-support/jtreg_open_test_jdk_jdk_svc/classes/2/java/lang/instrument/RedefineRecordAttrGenericSig/TestRecordAttrGenericSig.d
/opt/mach5/mesos/work_dir/slaves/d65fa3d4-10de-46aa-a2db-52cc9981537a-S759/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/45698872-7301-4b54-8f83-2ccca6b0b6a8/runs/2c2256fd-8c4b-442c-9180-63c9232c254c/testoutput/test-support/jtreg_open_test_jdk_jdk_svc/classes/2/test/lib
----------rerun:(43/6337)*----------
<snip>
----------direct:(2/119)----------
error: invalid source release 14 with --enable-preview
(preview language features are only supported for release 15)
result: Error. command line error (exit code 2)
test result: Error. command line error (exit code 2)
It looks like the "--source 14" is making the test not build.
Here's a snippet from the TestRecordAttr.java log file:
#section:build
----------messages:(3/97)----------
command: build TestRecordAttr
reason: Named class compiled on demand
elapsed time (seconds): 0.0
result: Passed. All files up to date
#section:main
----------messages:(5/534)----------
command: main -javaagent:redefineagent.jar --enable-preview -Xlog:redefine+class+record=trace TestRecordAttr Host
reason: User specified action: run main/othervm -javaagent:redefineagent.jar --enable-preview -Xlog:redefine+class+record=trace TestRecordAttr Host
Mode: othervm [/othervm specified]
Additional options from @modules: --add-modules java.base,java.compiler,java.instrument,jdk.jartool --add-exports java.base/jdk.internal.misc=ALL-UNNAMED --add-exports jdk.jartool/sun.tools.jar=ALL-UNNAMED
elapsed time (seconds): 2.074
----------configuration:(5/190)----------
Boot Layer
add modules: java.base java.compiler java.instrument jdk.jartool
add exports: java.base/jdk.internal.misc ALL-UNNAMED
jdk.jartool/sun.tools.jar ALL-UNNAMED
----------System.out:(2/78)----------
Testing original Host class from Host
Trying bad retransform from HostA/redef
----------System.err:(20/2355)----------
error: invalid source release 14 with --enable-preview
(preview language features are only supported for release 15)
java.io.FileNotFoundException: /opt/mach5/mesos/work_dir/slaves/d65fa3d4-10de-46aa-a2db-52cc9981537a-S759/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/45698872-7301-4b54-8f83-2ccca6b0b6a8/runs/2c2256fd-8c4b-442c-9180-63c9232c254c/testoutput/test-support/jtreg_open_test_jdk_jdk_svc/classes/0/java/lang/instrument/RedefineRecordAttr/TestRecordAttr.d/HostA/redef/Host.class (No such file or directory)
at java.base/java.io.FileInputStream.open0(Native Method)
at java.base/java.io.FileInputStream.open(FileInputStream.java:212)
at java.base/java.io.FileInputStream.<init>(FileInputStream.java:154)
at TestRecordAttr.bytesForHostClass(TestRecordAttr.java:260)
at TestRecordAttr.checkBadTransforms(TestRecordAttr.java:239)
at TestRecordAttr.main(TestRecordAttr.java:214)
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.MainWrapper$MainThread.run(MainWrapper.java:127)
at java.base/java.lang.Thread.run(Thread.java:832)
JavaTest Message: Test threw exception: java.io.FileNotFoundException: /opt/mach5/mesos/work_dir/slaves/d65fa3d4-10de-46aa-a2db-52cc9981537a-S759/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/45698872-7301-4b54-8f83-2ccca6b0b6a8/runs/2c2256fd-8c4b-442c-9180-63c9232c254c/testoutput/test-support/jtreg_open_test_jdk_jdk_svc/classes/0/java/lang/instrument/RedefineRecordAttr/TestRecordAttr.d/HostA/redef/Host.class (No such file or directory)
JavaTest Message: shutting down test
STATUS:Failed.`main' threw exception: java.io.FileNotFoundException: /opt/mach5/mesos/work_dir/slaves/d65fa3d4-10de-46aa-a2db-52cc9981537a-S759/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/45698872-7301-4b54-8f83-2ccca6b0b6a8/runs/2c2256fd-8c4b-442c-9180-63c9232c254c/testoutput/test-support/jtreg_open_test_jdk_jdk_svc/classes/0/java/lang/instrument/RedefineRecordAttr/TestRecordAttr.d/HostA/redef/Host.class (No such file or directory)
----------rerun:(43/6208)*----------
Starting this bug as a P2 since there are at least 18 failures
per Tier5 job set.