-
Bug
-
Resolution: Unresolved
-
P4
-
23, 24
-
x86_64
-
windows
Looking at the logs, it seems that the Java Fuzzer failed with the following exception:
Exception in thread "Reference Handler" java.lang.NoClassDefFoundError: jdk/internal/ref/Cleaner
at java.base/java.lang.ref.Reference$ReferenceHandler.run(Reference.java:205)
I was not able to reproduce this, neither on Linux nor on Windows.
Original report:
The following test failed in the JDK23 CI:
applications/javafuzzer/MediumTest.java
Here's a snippet from the log file:
#section:driver
----------messages:(7/312)----------
command: driver applications.javafuzzer.JavaFuzzerRunner -NT 50
reason: User specified action: run driver/timeout=21600 applications.javafuzzer.JavaFuzzerRunner -NT 50
started: Sat Mar 30 02:35:39 UTC 2024
Mode: agentvm
Agent id: 2
finished: Sat Mar 30 04:49:56 UTC 2024
elapsed time (seconds): 8057.471
----------configuration:(20/2468)*----------
<snip>
----------System.out:(45/4377)*----------
For random generator using seed: -7481341320563235980
To re-run test with same seed value please add "-Djdk.test.lib.random.seed=-7481341320563235980" to command line.
Setting permissions for mock scripts under C:\\ade\\mesos\\work_dir\\jib-master\\install\\jdk-23+17-1310\\src.full\\closed\\test\\hotspot\\jtreg\\applications\\javafuzzer\\mock
[2024-03-30T02:35:46.266556900Z] Gathering output for process 38252
[2024-03-30T02:35:46.329048800Z] Waiting for completion for process 38252
[2024-03-30T02:35:46.329048800Z] Waiting for completion finished for process 38252
Output and diagnostic info for process 38252 was saved into 'pid-38252-output.log'
[2024-03-30T02:35:46.375918Z] Gathering output for process 65212
[2024-03-30T02:35:46.375918Z] Waiting for completion for process 65212
[2024-03-30T02:35:46.407223100Z] Waiting for completion finished for process 65212
Output and diagnostic info for process 65212 was saved into 'pid-65212-output.log'
Using JRuby dist path: c:\\ade\\mesos\\work_dir\\jib-master\\install\\org\\jruby\\jruby-dist\\9.2.12.0\\jruby-dist-9.2.12.0-bin.zip\\jruby-9.2.12.0
[DBG] Created generator string: '/cygdrive/c/ade/mesos/work_dir/jib-master/install/jdk-23+17-1310/windows-x64-debug.jdk/jdk-23/fastdebug/bin/java --module-path c:\\ade\\mesos\\work_dir\\jib-master\\install\\org\\jruby\\jruby-dist\\9.2.12.0\\jruby-dist-9.2.12.0-bin.zip\\jruby-9.2.12.0\\lib\\jruby.jar --add-opens java.base/sun.nio.ch=org.jruby.dist --add-opens java.base/java.io=org.jruby.dist -Djruby.home=c:/ade/mesos/work_dir/jib-master/install/org/jruby/jruby-dist/9.2.12.0/jruby-dist-9.2.12.0-bin.zip/jruby-9.2.12.0 -Djruby.lib=c:/ade/mesos/work_dir/jib-master/install/org/jruby/jruby-dist/9.2.12.0/jruby-dist-9.2.12.0-bin.zip/jruby-9.2.12.0/lib org.jruby.Main -W0 -I c:\\ade\\mesos\\work_dir\\jib-master\\install\\com\\oracle\\jpg\\bigapps\\javafuzzer\\javafuzzer\\3.4\\javafuzzer-3.4.zip\\rb c:\\ade\\mesos\\work_dir\\jib-master\\install\\com\\oracle\\jpg\\bigapps\\javafuzzer\\javafuzzer\\3.4\\javafuzzer-3.4.zip\\rb\\Fuzzer.rb -f c:\\ade\\mesos\\work_dir\\jib-master\\install\\com\\oracle\\jpg\\bigapps\\javafuzzer\\javafuzzer\\3.4\\javafuzzer-3.4.zip\\rb\\config.yml'
Using the following path for FailureHandler: 'c:\\ade\\mesos\\work_dir\\jib-master\\install\\jdk-23+17-1310\\windows-x64-debug.test\\failure_handler\\jtregFailureHandler.jar'
Starting JavaFuzzer: 'bash c:\\ade\\mesos\\work_dir\\jib-master\\install\\com\\oracle\\jpg\\bigapps\\javafuzzer\\javafuzzer\\3.4\\javafuzzer-3.4.zip\\mrt.sh -R /cygdrive/C/sb/prod/1711765988/testoutput/test-support/jtreg_closed_test_hotspot_jtreg_applications_javafuzzer_MediumTest_java/scratch/0 -NT 50 -NP 12 -A -conf config.yml'
[2024-03-30T02:35:53.277403500Z] Gathering output for process 24600
[2024-03-30T02:35:53.277403500Z] Waiting for completion for process 24600
[2024-03-30T04:49:56.565122100Z] Waiting for completion finished for process 24600
Output and diagnostic info for process 24600 was saved into 'pid-24600-output.log'
Summary of the JavaFuzzer run:
------------------------------
Host: win2022-x64-719527
Tests: 12 x 50
Args: -conf config.yml
Started at: Sat Mar 30 02:35:53 GMT 2024
r4- 50: 34 passed, 0 crashes, 0 fails, 0 hangs, 0 incorrect tests, 16 Reference Java failures
r2- 50: 34 passed, 0 crashes, 1 fails, 0 hangs, 0 incorrect tests, 15 Reference Java failures
r5- 50: 32 passed, 0 crashes, 0 fails, 0 hangs, 0 incorrect tests, 18 Reference Java failures
r10- 50: 32 passed, 0 crashes, 0 fails, 0 hangs, 0 incorrect tests, 18 Reference Java failures
r11- 50: 33 passed, 0 crashes, 0 fails, 0 hangs, 0 incorrect tests, 17 Reference Java failures
r3- 50: 33 passed, 0 crashes, 0 fails, 0 hangs, 0 incorrect tests, 17 Reference Java failures
r8- 50: 29 passed, 0 crashes, 0 fails, 0 hangs, 0 incorrect tests, 21 Reference Java failures
r1- 50: 35 passed, 0 crashes, 0 fails, 0 hangs, 0 incorrect tests, 15 Reference Java failures
r7- 50: 33 passed, 0 crashes, 0 fails, 0 hangs, 0 incorrect tests, 17 Reference Java failures
r12- 50: 27 passed, 0 crashes, 0 fails, 0 hangs, 0 incorrect tests, 23 Reference Java failures
r6- 50: 34 passed, 0 crashes, 0 fails, 0 hangs, 0 incorrect tests, 16 Reference Java failures
r9- 50: 27 passed, 0 crashes, 0 fails, 0 hangs, 0 incorrect tests, 23 Reference Java failures
Finished at: Sat Mar 30 04:49:56 GMT 2024
----------System.err:(15/923)----------
java.lang.RuntimeException: assertEquals expected: 1 but was: 2
at jdk.test.lib.Asserts.fail(Asserts.java:691)
at jdk.test.lib.Asserts.assertEquals(Asserts.java:204)
at jdk.test.lib.Asserts.assertEquals(Asserts.java:191)
at applications.javafuzzer.JavaFuzzerRunner.reportResults(JavaFuzzerRunner.java:279)
at applications.javafuzzer.JavaFuzzerRunner.runWithConfigurations(JavaFuzzerRunner.java:300)
at applications.javafuzzer.JavaFuzzerRunner.main(JavaFuzzerRunner.java:322)
at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
at java.base/java.lang.reflect.Method.invoke(Method.java:580)
at com.sun.javatest.regtest.agent.MainActionHelper$AgentVMRunnable.run(MainActionHelper.java:333)
at java.base/java.lang.Thread.run(Thread.java:1575)
JavaTest Message: Test threw exception: java.lang.RuntimeException
JavaTest Message: shutting down test
result: Failed. Execution failed: `main' threw exception: java.lang.RuntimeException: assertEquals expected: 1 but was: 2
Exception in thread "Reference Handler" java.lang.NoClassDefFoundError: jdk/internal/ref/Cleaner
at java.base/java.lang.ref.Reference$ReferenceHandler.run(Reference.java:205)
I was not able to reproduce this, neither on Linux nor on Windows.
Original report:
The following test failed in the JDK23 CI:
applications/javafuzzer/MediumTest.java
Here's a snippet from the log file:
#section:driver
----------messages:(7/312)----------
command: driver applications.javafuzzer.JavaFuzzerRunner -NT 50
reason: User specified action: run driver/timeout=21600 applications.javafuzzer.JavaFuzzerRunner -NT 50
started: Sat Mar 30 02:35:39 UTC 2024
Mode: agentvm
Agent id: 2
finished: Sat Mar 30 04:49:56 UTC 2024
elapsed time (seconds): 8057.471
----------configuration:(20/2468)*----------
<snip>
----------System.out:(45/4377)*----------
For random generator using seed: -7481341320563235980
To re-run test with same seed value please add "-Djdk.test.lib.random.seed=-7481341320563235980" to command line.
Setting permissions for mock scripts under C:\\ade\\mesos\\work_dir\\jib-master\\install\\jdk-23+17-1310\\src.full\\closed\\test\\hotspot\\jtreg\\applications\\javafuzzer\\mock
[2024-03-30T02:35:46.266556900Z] Gathering output for process 38252
[2024-03-30T02:35:46.329048800Z] Waiting for completion for process 38252
[2024-03-30T02:35:46.329048800Z] Waiting for completion finished for process 38252
Output and diagnostic info for process 38252 was saved into 'pid-38252-output.log'
[2024-03-30T02:35:46.375918Z] Gathering output for process 65212
[2024-03-30T02:35:46.375918Z] Waiting for completion for process 65212
[2024-03-30T02:35:46.407223100Z] Waiting for completion finished for process 65212
Output and diagnostic info for process 65212 was saved into 'pid-65212-output.log'
Using JRuby dist path: c:\\ade\\mesos\\work_dir\\jib-master\\install\\org\\jruby\\jruby-dist\\9.2.12.0\\jruby-dist-9.2.12.0-bin.zip\\jruby-9.2.12.0
[DBG] Created generator string: '/cygdrive/c/ade/mesos/work_dir/jib-master/install/jdk-23+17-1310/windows-x64-debug.jdk/jdk-23/fastdebug/bin/java --module-path c:\\ade\\mesos\\work_dir\\jib-master\\install\\org\\jruby\\jruby-dist\\9.2.12.0\\jruby-dist-9.2.12.0-bin.zip\\jruby-9.2.12.0\\lib\\jruby.jar --add-opens java.base/sun.nio.ch=org.jruby.dist --add-opens java.base/java.io=org.jruby.dist -Djruby.home=c:/ade/mesos/work_dir/jib-master/install/org/jruby/jruby-dist/9.2.12.0/jruby-dist-9.2.12.0-bin.zip/jruby-9.2.12.0 -Djruby.lib=c:/ade/mesos/work_dir/jib-master/install/org/jruby/jruby-dist/9.2.12.0/jruby-dist-9.2.12.0-bin.zip/jruby-9.2.12.0/lib org.jruby.Main -W0 -I c:\\ade\\mesos\\work_dir\\jib-master\\install\\com\\oracle\\jpg\\bigapps\\javafuzzer\\javafuzzer\\3.4\\javafuzzer-3.4.zip\\rb c:\\ade\\mesos\\work_dir\\jib-master\\install\\com\\oracle\\jpg\\bigapps\\javafuzzer\\javafuzzer\\3.4\\javafuzzer-3.4.zip\\rb\\Fuzzer.rb -f c:\\ade\\mesos\\work_dir\\jib-master\\install\\com\\oracle\\jpg\\bigapps\\javafuzzer\\javafuzzer\\3.4\\javafuzzer-3.4.zip\\rb\\config.yml'
Using the following path for FailureHandler: 'c:\\ade\\mesos\\work_dir\\jib-master\\install\\jdk-23+17-1310\\windows-x64-debug.test\\failure_handler\\jtregFailureHandler.jar'
Starting JavaFuzzer: 'bash c:\\ade\\mesos\\work_dir\\jib-master\\install\\com\\oracle\\jpg\\bigapps\\javafuzzer\\javafuzzer\\3.4\\javafuzzer-3.4.zip\\mrt.sh -R /cygdrive/C/sb/prod/1711765988/testoutput/test-support/jtreg_closed_test_hotspot_jtreg_applications_javafuzzer_MediumTest_java/scratch/0 -NT 50 -NP 12 -A -conf config.yml'
[2024-03-30T02:35:53.277403500Z] Gathering output for process 24600
[2024-03-30T02:35:53.277403500Z] Waiting for completion for process 24600
[2024-03-30T04:49:56.565122100Z] Waiting for completion finished for process 24600
Output and diagnostic info for process 24600 was saved into 'pid-24600-output.log'
Summary of the JavaFuzzer run:
------------------------------
Host: win2022-x64-719527
Tests: 12 x 50
Args: -conf config.yml
Started at: Sat Mar 30 02:35:53 GMT 2024
r4- 50: 34 passed, 0 crashes, 0 fails, 0 hangs, 0 incorrect tests, 16 Reference Java failures
r2- 50: 34 passed, 0 crashes, 1 fails, 0 hangs, 0 incorrect tests, 15 Reference Java failures
r5- 50: 32 passed, 0 crashes, 0 fails, 0 hangs, 0 incorrect tests, 18 Reference Java failures
r10- 50: 32 passed, 0 crashes, 0 fails, 0 hangs, 0 incorrect tests, 18 Reference Java failures
r11- 50: 33 passed, 0 crashes, 0 fails, 0 hangs, 0 incorrect tests, 17 Reference Java failures
r3- 50: 33 passed, 0 crashes, 0 fails, 0 hangs, 0 incorrect tests, 17 Reference Java failures
r8- 50: 29 passed, 0 crashes, 0 fails, 0 hangs, 0 incorrect tests, 21 Reference Java failures
r1- 50: 35 passed, 0 crashes, 0 fails, 0 hangs, 0 incorrect tests, 15 Reference Java failures
r7- 50: 33 passed, 0 crashes, 0 fails, 0 hangs, 0 incorrect tests, 17 Reference Java failures
r12- 50: 27 passed, 0 crashes, 0 fails, 0 hangs, 0 incorrect tests, 23 Reference Java failures
r6- 50: 34 passed, 0 crashes, 0 fails, 0 hangs, 0 incorrect tests, 16 Reference Java failures
r9- 50: 27 passed, 0 crashes, 0 fails, 0 hangs, 0 incorrect tests, 23 Reference Java failures
Finished at: Sat Mar 30 04:49:56 GMT 2024
----------System.err:(15/923)----------
java.lang.RuntimeException: assertEquals expected: 1 but was: 2
at jdk.test.lib.Asserts.fail(Asserts.java:691)
at jdk.test.lib.Asserts.assertEquals(Asserts.java:204)
at jdk.test.lib.Asserts.assertEquals(Asserts.java:191)
at applications.javafuzzer.JavaFuzzerRunner.reportResults(JavaFuzzerRunner.java:279)
at applications.javafuzzer.JavaFuzzerRunner.runWithConfigurations(JavaFuzzerRunner.java:300)
at applications.javafuzzer.JavaFuzzerRunner.main(JavaFuzzerRunner.java:322)
at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
at java.base/java.lang.reflect.Method.invoke(Method.java:580)
at com.sun.javatest.regtest.agent.MainActionHelper$AgentVMRunnable.run(MainActionHelper.java:333)
at java.base/java.lang.Thread.run(Thread.java:1575)
JavaTest Message: Test threw exception: java.lang.RuntimeException
JavaTest Message: shutting down test
result: Failed. Execution failed: `main' threw exception: java.lang.RuntimeException: assertEquals expected: 1 but was: 2
- duplicates
-
JDK-8304087 JavaFuzzer failed due to NoClassDefFoundError in reference output
- Closed
-
JDK-8335125 Test applications/javafuzzer/BigTest.java failed with "assertEquals: expected 1 to equal 2"
- Closed
- relates to
-
JDK-8335215 move Cleaner initialization to startup
- New