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

com/sun/jdi/InterfaceMethodsTest.java fails in hs nightly

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P3
    • Resolution: Duplicate
    • Affects Version/s: 9
    • Fix Version/s: 9
    • Component/s: core-svc
    • Labels:

      Description

      com/sun/jdi/InterfaceMethodsTest.java fails in hs nightly on Solaris amd64 with "java.lang.Exception: InterfaceMethodsTest: failed"

        Issue Links

          Activity

          Hide
          sballal Sharath Ballal added a comment -
          ILW = H(nightly failure, integration blocker)L(seen once)H(no workaround) = P2
          Show
          sballal Sharath Ballal added a comment - ILW = H(nightly failure, integration blocker)L(seen once)H(no workaround) = P2
          Hide
          coleenp Coleen Phillimore added a comment -
          For the record, this has been failing before the Jigsaw integration but now fails very consistently.
          Show
          coleenp Coleen Phillimore added a comment - For the record, this has been failing before the Jigsaw integration but now fails very consistently.
          Hide
          sspitsyn Serguei Spitsyn added a comment -
          [ to Jesper: ]
          The test was added to the ProblemList by Coleen, so it is not going to fail in JPRT until fixed and removed from the ProblemList.
          Show
          sspitsyn Serguei Spitsyn added a comment - [ to Jesper: ] The test was added to the ProblemList by Coleen, so it is not going to fail in JPRT until fixed and removed from the ProblemList.
          Hide
          sspitsyn Serguei Spitsyn added a comment - - edited
          [deleted fragment of my analysis as it was not correct]

          All manifestations are not clear what exact Exception was thrown.
          And there is no detailed error message.
          The only message we see is: "Exception occurred in target VM".

          This is a fragment of the log posted by Rachel:

          --- FAILED
          [5632ms] FAILED: Invocation failed with error message Exception occurred in target VM
          Invoking: InterfaceMethodsTest$TargetClass.defaultMethodC()I with target of type InterfaceMethodsTest$InterfaceA
          [5632ms] Invoking method: InterfaceMethodsTest$InterfaceA.defaultMethodC()
          [5632ms] interface InterfaceMethodsTest$InterfaceA (loaded by instance of sun.misc.Launcher$AppClassLoader(id=101))
          [5667ms] return val = 1
          [5667ms] defaultMethodC return value matches: 1

          A failure fragment by the link posted by Dmitry has multiple error messages:

          --- FAILED
          [1134ms] FAILED: Invocation failed with error message Exception occurred in target VM
          Invoking: InterfaceMethodsTest$TargetClass.classMethod()I with target of type InterfaceMethodsTest$TargetClass
          [1134ms] Invoking method: InterfaceMethodsTest$TargetClass.classMethod()
          [1134ms] class InterfaceMethodsTest$TargetClass (loaded by instance of sun.misc.Launcher$AppClassLoader(id=101))
          --- FAILED
          [1135ms] FAILED: Invocation failed with error message Exception occurred in target VM
          Invoking: InterfaceMethodsTest$TargetClass.implementedMethod()I with target of type InterfaceMethodsTest$TargetClass
          [1135ms] Invoking method: InterfaceMethodsTest$TargetClass.implementedMethod()
          [1135ms] class InterfaceMethodsTest$TargetClass (loaded by instance of sun.misc.Launcher$AppClassLoader(id=101))
          --- FAILED
          [1136ms] FAILED: Invocation failed with error message Exception occurred in target VM
          Invoking: InterfaceMethodsTest$TargetClass.staticMethodA()I with target of type InterfaceMethodsTest$TargetClass
          . . . . . . . . . . . . . . . . . . . . . . . . . . . .
          --- FAILED
          [1147ms] FAILED: Invocation failed with error message Exception occurred in target VM
          Invoking: InterfaceMethodsTest$TargetClass.defaultMethodC()I with target of type InterfaceMethodsTest$InterfaceA
          [1148ms] Invoking method: InterfaceMethodsTest$InterfaceA.defaultMethodC()
          [1148ms] interface InterfaceMethodsTest$InterfaceA (loaded by instance of sun.misc.Launcher$AppClassLoader(id=101))
          --- FAILED
          [1149ms] FAILED: Invocation failed with error message Exception occurred in target VM
          Invoking: InterfaceMethodsTest$TargetClass.defaultMethodD()I with target of type InterfaceMethodsTest$InterfaceA

          The test needs to be modified to get more details out of the failures.
          Also, we need this issue to get reproducible.
          Show
          sspitsyn Serguei Spitsyn added a comment - - edited [deleted fragment of my analysis as it was not correct] All manifestations are not clear what exact Exception was thrown. And there is no detailed error message. The only message we see is: "Exception occurred in target VM". This is a fragment of the log posted by Rachel: --- FAILED [5632ms] FAILED: Invocation failed with error message Exception occurred in target VM Invoking: InterfaceMethodsTest$TargetClass.defaultMethodC()I with target of type InterfaceMethodsTest$InterfaceA [5632ms] Invoking method: InterfaceMethodsTest$InterfaceA.defaultMethodC() [5632ms] interface InterfaceMethodsTest$InterfaceA (loaded by instance of sun.misc.Launcher$AppClassLoader(id=101)) [5667ms] return val = 1 [5667ms] defaultMethodC return value matches: 1 A failure fragment by the link posted by Dmitry has multiple error messages: --- FAILED [1134ms] FAILED: Invocation failed with error message Exception occurred in target VM Invoking: InterfaceMethodsTest$TargetClass.classMethod()I with target of type InterfaceMethodsTest$TargetClass [1134ms] Invoking method: InterfaceMethodsTest$TargetClass.classMethod() [1134ms] class InterfaceMethodsTest$TargetClass (loaded by instance of sun.misc.Launcher$AppClassLoader(id=101)) --- FAILED [1135ms] FAILED: Invocation failed with error message Exception occurred in target VM Invoking: InterfaceMethodsTest$TargetClass.implementedMethod()I with target of type InterfaceMethodsTest$TargetClass [1135ms] Invoking method: InterfaceMethodsTest$TargetClass.implementedMethod() [1135ms] class InterfaceMethodsTest$TargetClass (loaded by instance of sun.misc.Launcher$AppClassLoader(id=101)) --- FAILED [1136ms] FAILED: Invocation failed with error message Exception occurred in target VM Invoking: InterfaceMethodsTest$TargetClass.staticMethodA()I with target of type InterfaceMethodsTest$TargetClass . . . . . . . . . . . . . . . . . . . . . . . . . . . . --- FAILED [1147ms] FAILED: Invocation failed with error message Exception occurred in target VM Invoking: InterfaceMethodsTest$TargetClass.defaultMethodC()I with target of type InterfaceMethodsTest$InterfaceA [1148ms] Invoking method: InterfaceMethodsTest$InterfaceA.defaultMethodC() [1148ms] interface InterfaceMethodsTest$InterfaceA (loaded by instance of sun.misc.Launcher$AppClassLoader(id=101)) --- FAILED [1149ms] FAILED: Invocation failed with error message Exception occurred in target VM Invoking: InterfaceMethodsTest$TargetClass.defaultMethodD()I with target of type InterfaceMethodsTest$InterfaceA The test needs to be modified to get more details out of the failures. Also, we need this issue to get reproducible.
          Hide
          sspitsyn Serguei Spitsyn added a comment -
          It is possible the JDK-8152686 has the same root cause.
          It has to be proven first and then this bug can be closed as dup of the JDK-8152686.
          Show
          sspitsyn Serguei Spitsyn added a comment - It is possible the JDK-8152686 has the same root cause. It has to be proven first and then this bug can be closed as dup of the JDK-8152686 .
          Hide
          sspitsyn Serguei Spitsyn added a comment - - edited
          This test failure was initially appeared in the nightly that used the JPRT build:
            http://sthjprt.se.oracle.com/archives/2016/03/2016-03-22-190619.egahlin.product

          I've removed most of the previous details in this comment as it seems, I took a wrong path.
          There was an error in my logical speculations, sorry.
          My investigation is continued with the corrected path.
          The main suspect to cause this regression is again the fix of JDK-4858370.
          Dan is in process to back it out.

          Show
          sspitsyn Serguei Spitsyn added a comment - - edited This test failure was initially appeared in the nightly that used the JPRT build:    http://sthjprt.se.oracle.com/archives/2016/03/2016-03-22-190619.egahlin.product I've removed most of the previous details in this comment as it seems, I took a wrong path. There was an error in my logical speculations, sorry. My investigation is continued with the corrected path. The main suspect to cause this regression is again the fix of JDK-4858370 . Dan is in process to back it out.
          Hide
          sspitsyn Serguei Spitsyn added a comment -
          We agreed with Dmitry to re-assign this bug to me.
          Show
          sspitsyn Serguei Spitsyn added a comment - We agreed with Dmitry to re-assign this bug to me.
          Hide
          sspitsyn Serguei Spitsyn added a comment -
          I'm closing this bug as dup of:
             https://bugs.openjdk.java.net/browse/JDK-8152686

          The anti-delta of the JDK-4858370 resolved the issue, and the test
          com/sun/jdi/InterfaceMethodsTest.java did not fail in 1000 runs.
          Show
          sspitsyn Serguei Spitsyn added a comment - I'm closing this bug as dup of:     https://bugs.openjdk.java.net/browse/JDK-8152686 The anti-delta of the JDK-4858370 resolved the issue, and the test com/sun/jdi/InterfaceMethodsTest.java did not fail in 1000 runs.
          Hide
          sspitsyn Serguei Spitsyn added a comment -
          The following test is also impacted by this bug:
               com/sun/jdi/InvokeTest.java
          Show
          sspitsyn Serguei Spitsyn added a comment - The following test is also impacted by this bug:      com/sun/jdi/InvokeTest.java

            People

            • Assignee:
              sspitsyn Serguei Spitsyn
              Reporter:
              rprotacio Rachel Protacio (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              10 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: