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

java/lang/instrument/NativeMethodPrefixAgent.java failing

    XMLWordPrintable

    Details

      Backports

        Description

        TESTFAIL:java/lang/instrument/NativeMethodPrefixAgent.java

        java/lang/instrument/NativeMethodPrefixAgent.java start failing since 2014-03-09 in nightly testing. Failure is reproducible.

        STDERR:
           wrapped: gc
           wrapped: freeMemory
           wrapped: maxMemory
           wrapped: availableProcessors
           wrapped: runFinalization0
           wrapped: totalMemory
           wrapped: traceInstructions
           wrapped: traceMethodCalls
           wrapped: gc
           wrapped: freeMemory
           wrapped: maxMemory
           wrapped: availableProcessors
           wrapped: runFinalization0
           wrapped: totalMemory
           wrapped: traceInstructions
           wrapped: traceMethodCalls
        start
        ERROR: Injection failure: java.lang.Error: 294 unexpected CP tag: 15
        java.lang.Error: 294 unexpected CP tag: 15
        at ilib.ClassReaderWriter.copyConstantPool(ClassReaderWriter.java:258)
        at ilib.Inject.doit(Inject.java:168)
        at ilib.Inject.instrumentation(Inject.java:41)
        at NativeMethodPrefixAgent$Tr.transform(NativeMethodPrefixAgent.java:72)
        at sun.instrument.TransformerManager.transform(TransformerManager.java:188)
        at sun.instrument.InstrumentationImpl.transform(InstrumentationImpl.java:428)
        at sun.management.ManagementFactoryHelper.<clinit>(ManagementFactoryHelper.java:455)
        at java.lang.management.ManagementFactory.getRuntimeMXBean(ManagementFactory.java:349)
        at NativeMethodPrefixApp.run(NativeMethodPrefixApp.java:48)
        at NativeMethodPrefixApp.main(NativeMethodPrefixApp.java:40)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:484)
        at com.sun.javatest.regtest.MainWrapper$MainThread.run(MainWrapper.java:94)
        at java.lang.Thread.run(Thread.java:744)
        Returning bad class file, to cause test failure
        ERROR: Injection failure: java.lang.Error: 294 unexpected CP tag: 15
        java.lang.Error: 294 unexpected CP tag: 15
        at ilib.ClassReaderWriter.copyConstantPool(ClassReaderWriter.java:258)
        at ilib.Inject.doit(Inject.java:168)
        at ilib.Inject.instrumentation(Inject.java:41)
        at NativeMethodPrefixAgent$Tr.transform(NativeMethodPrefixAgent.java:72)
        at sun.instrument.TransformerManager.transform(TransformerManager.java:188)
        at sun.instrument.InstrumentationImpl.transform(InstrumentationImpl.java:428)
        at sun.management.ManagementFactoryHelper.<clinit>(ManagementFactoryHelper.java:455)
        at java.lang.management.ManagementFactory.getRuntimeMXBean(ManagementFactory.java:349)
        at NativeMethodPrefixApp.run(NativeMethodPrefixApp.java:48)
        at NativeMethodPrefixApp.main(NativeMethodPrefixApp.java:40)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:484)
        at com.sun.javatest.regtest.MainWrapper$MainThread.run(MainWrapper.java:94)
        at java.lang.Thread.run(Thread.java:744)
        Returning bad class file, to cause test failure
        ERROR: Injection failure: java.lang.ArrayIndexOutOfBoundsException: 0
        java.lang.ArrayIndexOutOfBoundsException: 0
        at ilib.ClassReaderWriter.copy(ClassReaderWriter.java:145)
        at ilib.Inject.doit(Inject.java:164)
        at ilib.Inject.instrumentation(Inject.java:41)
        at NativeMethodPrefixAgent$Tr.transform(NativeMethodPrefixAgent.java:72)
        at sun.instrument.TransformerManager.transform(TransformerManager.java:188)
        at sun.instrument.InstrumentationImpl.transform(InstrumentationImpl.java:428)
        at sun.management.ManagementFactoryHelper.<clinit>(ManagementFactoryHelper.java:455)
        at java.lang.management.ManagementFactory.getRuntimeMXBean(ManagementFactory.java:349)
        at NativeMethodPrefixApp.run(NativeMethodPrefixApp.java:48)
        at NativeMethodPrefixApp.main(NativeMethodPrefixApp.java:40)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:484)
        at com.sun.javatest.regtest.MainWrapper$MainThread.run(MainWrapper.java:94)
        at java.lang.Thread.run(Thread.java:744)
        Returning bad class file, to cause test failure
        Oracle Corporation
        java.lang.Exception: ERROR: Missing callback for transform 0
        at NativeMethodPrefixApp.run(NativeMethodPrefixApp.java:53)
        at NativeMethodPrefixApp.main(NativeMethodPrefixApp.java:40)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:484)
        at com.sun.javatest.regtest.MainWrapper$MainThread.run(MainWrapper.java:94)
        at java.lang.Thread.run(Thread.java:744)

        JavaTest Message: Test threw exception: java.lang.Exception: ERROR: Missing callback for transform 0
        JavaTest Message: shutting down test

          Attachments

            Issue Links

              Activity

                People

                Assignee:
                jbachorik Jaroslav BachorĂ­k
                Reporter:
                amlu Amy Lu (Inactive)
                Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved: