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

com/sun/jdi/RedefineImplementor.java RuntimeException: 'This is the new version of ' missing from stdout/stderr

XMLWordPrintable

    • x86_64
    • linux

      The following test failed in the JDK23 CI:

      com/sun/jdi/RedefineImplementor.java

      Here's a snippet from the log file:

      #section:main
      ----------messages:(7/302)----------
      command: main RedefineImplementor
      reason: User specified action: run main/othervm RedefineImplementor
      started: Tue Jul 16 21:18:52 UTC 2024
      Mode: othervm [/othervm specified]
      Additional options from @modules: --add-modules jdk.jdi
      finished: Tue Jul 16 21:19:02 UTC 2024
      elapsed time (seconds): 10.156
      ----------configuration:(3/35)----------
      Boot Layer
        add modules: jdk.jdi

      ----------System.out:(35/4336)----------
      Command line: [/opt/mach5/mesos/work_dir/jib-master/install/jdk-23+32-2349/linux-x64-debug.jdk/jdk-23/fastdebug/bin/java -cp /opt/mach5/mesos/work_dir/slaves/a4a7850a-7c35-410a-b879-d77fbb2f6087-S137282/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/d703181a-ea67-4db2-94fd-11255f9a2368/runs/672d5164-c856-41c4-a2ca-06b335b82e10/testoutput/test-support/jtreg_open_test_jdk_jdk_svc/classes/5/com/sun/jdi/RedefineImplementor.d:/opt/mach5/mesos/work_dir/jib-master/install/jdk-23+32-2349/src.full/open/test/jdk/com/sun/jdi:/opt/mach5/mesos/work_dir/slaves/a4a7850a-7c35-410a-b879-d77fbb2f6087-S137282/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/d703181a-ea67-4db2-94fd-11255f9a2368/runs/672d5164-c856-41c4-a2ca-06b335b82e10/testoutput/test-support/jtreg_open_test_jdk_jdk_svc/classes/5/test/lib:/opt/mach5/mesos/work_dir/jib-master/install/jdk-23+32-2349/src.full/open/test/lib:/opt/mach5/mesos/work_dir/jib-master/install/jtreg/7.3.1/1/bundles/jtreg-7.3.1+1.zip/jtreg/lib/jtreg.jar -Xmx768m -XX:MaxRAMPercentage=4.16667 -Dtest.boot.jdk=/opt/mach5/mesos/work_dir/jib-master/install/jdk/22/36/bundles/linux-x64/jdk-22_linux-x64_bin.tar.gz/jdk-22 -Djava.io.tmpdir=/opt/mach5/mesos/work_dir/slaves/a4a7850a-7c35-410a-b879-d77fbb2f6087-S137282/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/d703181a-ea67-4db2-94fd-11255f9a2368/runs/672d5164-c856-41c4-a2ca-06b335b82e10/testoutput/test-support/jtreg_open_test_jdk_jdk_svc/tmp -ea -esa -ea -esa -XX:-UseNotificationThread -agentlib:jdwp=transport=dt_socket,server=y,suspend=y RedefineImplementorTarg ]
      [debuggee]:/opt/mach5/mesos/work_dir/jib-master/install/jdk-23+32-2349/linux-x64-debug.jdk/jdk-23/fastdebug/bin/java -cp /opt/mach5/mesos/work_dir/slaves/a4a7850a-7c35-410a-b879-d77fbb2f6087-S137282/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/d703181a-ea67-4db2-94fd-11255f9a2368/runs/672d5164-c856-41c4-a2ca-06b335b82e10/testoutput/test-support/jtreg_open_test_jdk_jdk_svc/classes/5/com/sun/jdi/RedefineImplementor.d:/opt/mach5/mesos/work_dir/jib-master/install/jdk-23+32-2349/src.full/open/test/jdk/com/sun/jdi:/opt/mach5/mesos/work_dir/slaves/a4a7850a-7c35-410a-b879-d77fbb2f6087-S137282/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/d703181a-ea67-4db2-94fd-11255f9a2368/runs/672d5164-c856-41c4-a2ca-06b335b82e10/testoutput/test-support/jtreg_open_test_jdk_jdk_svc/classes/5/test/lib:/opt/mach5/mesos/work_dir/jib-master/install/jdk-23+32-2349/src.full/open/test/lib:/opt/mach5/mesos/work_dir/jib-master/install/jtreg/7.3.1/1/bundles/jtreg-7.3.1+1.zip/jtreg/lib/jtreg.jar -Xmx768m -XX:MaxRAMPercentage=4.16667 -Dtest.boot.jdk=/opt/mach5/mesos/work_dir/jib-master/install/jdk/22/36/bundles/linux-x64/jdk-22_linux-x64_bin.tar.gz/jdk-22 -Djava.io.tmpdir=/opt/mach5/mesos/work_dir/slaves/a4a7850a-7c35-410a-b879-d77fbb2f6087-S137282/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/d703181a-ea67-4db2-94fd-11255f9a2368/runs/672d5164-c856-41c4-a2ca-06b335b82e10/testoutput/test-support/jtreg_open_test_jdk_jdk_svc/tmp -ea -esa -ea -esa -XX:-UseNotificationThread -agentlib:jdwp=transport=dt_socket,server=y,suspend=y RedefineImplementorTarg
      [debuggee] Listening for transport dt_socket at address: 60033
      [jdb] Set uncaught java.lang.Throwable
      [jdb] Set deferred uncaught java.lang.Throwable
      [jdb] Initializing jdb ...
      [jdb]
      [jdb] VM Started: > No frames on the current call stack
      [jdb]
      [jdb] main[1]
      > stop at RedefineImplementorTarg:49
      [jdb] Deferring breakpoint RedefineImplementorTarg:49.
      [jdb] It will be set after the class is loaded.
      [jdb] main[1]
      > run
      [debuggee] RedefineImplementorTarg's run
      [jdb] > Set deferred breakpoint RedefineImplementorTarg:49
      [jdb]
      [jdb] Breakpoint hit: "thread=main", RedefineImplementorTarg.main(), line=49 bci=12
      [jdb] 49 RedefineImplementorB.func(r); // @1 breakpoint
      [jdb]
      [jdb] main[1]
      > redefine RedefineImplementorTarg ./ver1/RedefineImplementorTarg.class
      [jdb] main[1]
      > use ./ver1
      [jdb] main[1]
      > cont
      [debuggee] RedefineImplementorTarg's run
      [debuggee] This is the new version of RedefineImplementorTarg
      [jdb] >
      [jdb] The application exited
      [jdb]
      =======================================
      Exception thrown during test execution: 'This is the new version of ' missing from stdout/stderr
      =======================================
      ----------System.err:(20/1373)----------
      Java HotSpot(TM) 64-Bit Server VM warning: Option UseNotificationThread was deprecated in version 23.0 and will likely be removed in a future release.
      [debuggee] Java HotSpot(TM) 64-Bit Server VM warning: Option UseNotificationThread was deprecated in version 23.0 and will likely be removed in a future release.
       stdout: [Listening for transport dt_socket at address: 60033];
       stderr: [Listening for transport dt_socket at address: 60033]
       exitValue = -1

      java.lang.RuntimeException: 'This is the new version of ' missing from stdout/stderr
      at jdk.test.lib.process.OutputAnalyzer.shouldContain(OutputAnalyzer.java:252)
      at RedefineImplementor.runCases(RedefineImplementor.java:80)
      at lib.jdb.JdbTest.run(JdbTest.java:96)
      at RedefineImplementor.main(RedefineImplementor.java:62)
      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.MainWrapper$MainTask.run(MainWrapper.java:138)
      at java.base/java.lang.Thread.run(Thread.java:1575)

      JavaTest Message: Test threw exception: java.lang.RuntimeException: 'This is the new version of ' missing from stdout/stderr
      JavaTest Message: shutting down test

      STATUS:Failed.`main' threw exception: java.lang.RuntimeException: 'This is the new version of ' missing from stdout/stderr
      ----------rerun:(41/6933)*----------

      The test's output shows:

      > [debuggee] This is the new version of RedefineImplementorTarg

      so I'm not sure why the test failed with:

      RuntimeException: 'This is the new version of ' missing from stdout/stderr

            Unassigned Unassigned
            dcubed Daniel Daugherty
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: