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

VerifyLocalVariableTableOnRetransformTest.sh fails after JSR-292 merge

    XMLWordPrintable

Details

    • b66
    • generic
    • generic

    Backports

      Description

        Lana's testing of the JDK8-T&L snapshot for JDK8-B54 ran into
        a failure in the following test:

        java/lang/instrument/VerifyLocalVariableTableOnRetransformTest.sh

        Here is a snippet from the .jtr file:

        #section:shell
        ----------messages:(3/180)----------
        command: shell VerifyLocalVariableTableOnRetransformTest.sh []
        reason: User specified action: run shell VerifyLocalVariableTableOnRetransformTest.sh
        elapsed time (seconds): 0.813
        ----------System.out:(43/2795)----------
        InstrumentationHandoff JPLIS agent initialized
        Reading test class from /Users/aurora/sandbox/gresults/testoutput/jdk_lang/JTwork/classes/java/lang/instrument/DummyClassWithLVT.class
        Read 1448 bytes.
        Debugging message: Added transformer VerifyLocalVariableTableOnRetransformTest$MyObserver with canRetransform=true
        VerifyLocalVariableTableOnRetransformTest$MyObserver.transform() sees 'DummyClassWithLVT' of 1448 bytes.
        Info: DummyClassWithLVT lengths match.
        Info: verified 'DummyClassWithLVT.class' matches 'classfileBuffer'.
        VerifyLocalVariableTableOnRetransformTest$MyObserver.transform() sees 'DummyClassWithLVT' of 1448 bytes.
        Info: DummyClassWithLVT lengths match.
        Warning: DummyClassWithLVT[956]: '3' != '1'
        Debugging message: tearDown beginning
        Exception in thread "main" VerifyLocalVariableTableOnRetransformTest$MyObserver.transform() sees 'java/lang/Throwable$WrappedPrintStream' of 699 bytes.
        VerifyLocalVariableTableOnRetransformTest$MyObserver.transform() sees 'java/lang/Throwable$PrintStreamOrWriter' of 492 bytes.
        VerifyLocalVariableTableOnRetransformTest$MyObserver.transform() sees 'java/util/IdentityHashMap' of 9068 bytes.
        VerifyLocalVariableTableOnRetransformTest$MyObserver.transform() sees 'java/util/IdentityHashMap$KeySet' of 1793 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 2956 bytes.
        VerifyLocalVariableTableOnRetransformTest$MyObserver.transform() sees 'java/lang/Shutdown$Lock' of 377 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 /Users/aurora/sandbox/gresults/testoutput/jdk_lang/JTwork/classes/java/lang/instrument/DummyClassWithLVT.class
        ---
        > Classfile /Users/aurora/sandbox/gresults/testoutput/jdk_lang/JTwork/scratch/DummyClassWithLVT.class
        3c3
        < MD5 checksum add938cbf65c704016583270092d8258
        ---
        > MD5 checksum fc840a52f016dcc1e67d00b879bf2ec1
        110c110
        < stack=1, locals=1, args_size=1
        ---
        > stack=3, locals=1, args_size=1
        123c123
        < stack=4, locals=11, args_size=1
        ---
        > stack=6, locals=11, args_size=1
        ----------System.err:(0/0)----------
        result: Failed. Execution failed: exit code 1


        test result: Failed. Execution failed: exit code 1
        The test was added via the following bug:

            7191322 4/4 add test for 7064927 to java.lang.instrument

        as a way to test the following bug fix:

            7064927 4/4 retransformClasses() does not pass in LocalVariableTable
                        of a method

        The test was pushed to T&L for the JDK8-B54 snapshot so
        the test is new relative to the merge with the JSR-292
        changes that landed in JDK8-B52 and JDK8-B54.

        Attachments

          Issue Links

            Activity

              People

                sspitsyn Serguei Spitsyn
                dcubed Daniel Daugherty
                Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved:
                  Imported:
                  Indexed: