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

java/lang/instrument/VerifyLocalVariableTableOnRetransformTest.sh failed with "TestCaseScaffoldException: DummyClassWithLVT did not match .class file"

    XMLWordPrintable

    Details

      Description

      The following test failed in the JDK17 CI:

      java/lang/instrument/VerifyLocalVariableTableOnRetransformTest.sh

      Here's a snippet from the log file:

      VerifyLocalVariableTableOnRetransformTest$MyObserver.transform() sees 'java/util/NavigableSet' of 1179 bytes.
      VerifyLocalVariableTableOnRetransformTest$MyObserver.transform() sees 'java/util/IdentityHashMap' of 13111 bytes.
      VerifyLocalVariableTableOnRetransformTest$MyObserver.transform() sees 'java/util/IdentityHashMap$KeySet' of 3688 bytes.
      ATestCaseScaffold$TestCaseScaffoldException: DummyClassWithLVT did not match .class file
      at ATestCaseScaffold.fail(ATestCaseScaffold.java:116)
      at ATestCaseScaffold.assertTrue(ATestCaseScaffold.java:129)
      at VerifyLocalVariableTableOnRetransformTest.verifyClassFileBuffer(VerifyLocalVariableTableOnRetransformTest.java:123)
      at VerifyLocalVariableTableOnRetransformTest.doRunTest(VerifyLocalVariableTableOnRetransformTest.java:72)
      at ATestCaseScaffold.runTest(ATestCaseScaffold.java:60)
      at VerifyLocalVariableTableOnRetransformTest.main(VerifyLocalVariableTableOnRetransformTest.java:66)
      VerifyLocalVariableTableOnRetransformTest$MyObserver.transform() sees 'java/lang/Shutdown' of 2722 bytes.
      VerifyLocalVariableTableOnRetransformTest$MyObserver.transform() sees 'java/lang/Shutdown$Lock' of 360 bytes.
      ATestCaseScaffold$TestCaseScaffoldException: DummyClassWithLVT did not match .class file
      FAIL: found 'did not match .class file' in the test output
      INFO: 'javap -v' comparison between the .class files:
      1c1
      < Classfile /opt/mach5/mesos/work_dir/slaves/a4f8fba9-f017-4328-b286-c66b6a97143d-S9021/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/ae50325a-a120-4da0-84a8-dec2fc9980d9/runs/89647b55-3da1-45c9-88a0-3170ea16b90f/testoutput/test-support/jtreg_open_test_jdk_jdk_svc/classes/2/java/lang/instrument/VerifyLocalVariableTableOnRetransformTest.d/DummyClassWithLVT.class
      ---
      > Classfile /opt/mach5/mesos/work_dir/slaves/a4f8fba9-f017-4328-b286-c66b6a97143d-S9021/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/ae50325a-a120-4da0-84a8-dec2fc9980d9/runs/89647b55-3da1-45c9-88a0-3170ea16b90f/testoutput/test-support/jtreg_open_test_jdk_jdk_svc/scratch/3/DummyClassWithLVT.class
      3c3
      < SHA-256 checksum ba26964074fb3f240e485f46be66aa3afc302a60c1807410b6cadc618f104328
      ---
      > SHA-256 checksum e8ecc277c488978c3230e8cc6d51d404c6952492252d02f701e801c784952395
      216a217,218
      > InnerClasses:
      > public static final #106= #102 of #104; // Lookup=class java/lang/invoke/MethodHandles$Lookup of class java/lang/invoke/MethodHandles
      242,243d243
      < InnerClasses:
      < public static final #106= #102 of #104; // Lookup=class java/lang/invoke/MethodHandles$Lookup of class java/lang/invoke/MethodHandles
      ----------System.err:(0/0)----------
      ----------rerun:(31/3685)*----------

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              amenkov Alex Menkov
              Reporter:
              dcubed Daniel Daugherty
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: