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

java/lang/StackWalker/VerifyStackTrace.java fails after JDK-8163369

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P2
    • Resolution: Fixed
    • Affects Version/s: 9
    • Fix Version/s: 9
    • Component/s: core-libs
    • Labels:
    • Subcomponent:
    • Resolved In Build:
      b131
    • CPU:
      generic
    • OS:
      generic
    • Verification:
      Verified

      Description

      This test has been observed to be failing on all platforms after JDK-8163369

      Please refer to following test output:
      ----------configuration:(0/0)----------
      ----------System.out:(44/2758)----------

      Testing: StackWalker.getInstance(StackWalker.Option.RETAIN_CLASS_REFERENCE)
      1: VerifyStackTrace.lambda$test$1(VerifyStackTrace.java:244)
      2: VerifyStackTrace$Handle.execute(VerifyStackTrace.java:175)
      3: VerifyStackTrace$Handle.run(VerifyStackTrace.java:179)
      4: VerifyStackTrace.invoke(VerifyStackTrace.java:223)
      5: VerifyStackTrace$1.run(VerifyStackTrace.java:254)
      6: java.security.AccessController.doPrivileged(java.base@9-ea/Native Method)
      7: VerifyStackTrace.test(VerifyStackTrace.java:240)
      8: VerifyStackTrace.main(VerifyStackTrace.java:216)
      Main found: true

      Testing: nStackWalker.getInstance(StackWalker.Option.RETAIN_CLASS_REFERENCE, StackWalker.Option.SHOW_REFLECT_FRAMES)
      1: VerifyStackTrace.lambda$test$1(VerifyStackTrace.java:244)
      2: VerifyStackTrace$Handle.execute(VerifyStackTrace.java:175)
      3: VerifyStackTrace$Handle.run(VerifyStackTrace.java:179)
      4: VerifyStackTrace.invoke(VerifyStackTrace.java:223)
      5: jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(java.base@9-ea/Native Method)
      6: jdk.internal.reflect.NativeMethodAccessorImpl.invoke(java.base@9-ea/NativeMethodAccessorImpl.java:49)
      7: jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(java.base@9-ea/DelegatingMethodAccessorImpl.java:43)
      8: java.lang.reflect.Method.invoke(java.base@9-ea/Method.java:527)
      9: VerifyStackTrace$1.run(VerifyStackTrace.java:254)
      10: java.security.AccessController.doPrivileged(java.base@9-ea/Native Method)
      11: VerifyStackTrace.test(VerifyStackTrace.java:240)
      12: VerifyStackTrace.main(VerifyStackTrace.java:216)
      Main found: true

      Testing: StackWalker.getInstance(StackWalker.Option.RETAIN_CLASS_REFERENCE, StackWalker.Option.SHOW_HIDDEN_FRAMES)
      1: VerifyStackTrace.lambda$test$1(VerifyStackTrace.java:244)
      2: VerifyStackTrace$$Lambda$1/87578055.run(Unknown Source)
      3: VerifyStackTrace$Handle.execute(VerifyStackTrace.java:175)
      4: java.lang.invoke.LambdaForm$MH/943578605.invokeVirtual_LL_V(java.base@9-ea/LambdaForm$MH)
      5: java.lang.invoke.LambdaForm$MH/784624748.invoke_MT(java.base@9-ea/LambdaForm$MH)
      6: VerifyStackTrace$Handle.run(VerifyStackTrace.java:179)
      7: VerifyStackTrace.invoke(VerifyStackTrace.java:223)
      8: jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(java.base@9-ea/Native Method)
      9: jdk.internal.reflect.NativeMethodAccessorImpl.invoke(java.base@9-ea/NativeMethodAccessorImpl.java:49)
      10: jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(java.base@9-ea/DelegatingMethodAccessorImpl.java:43)
      11: java.lang.reflect.Method.invoke(java.base@9-ea/Method.java:527)
      12: VerifyStackTrace$1.run(VerifyStackTrace.java:254)
      13: java.security.AccessController.doPrivileged(java.base@9-ea/Native Method)
      14: VerifyStackTrace.test(VerifyStackTrace.java:240)
      15: VerifyStackTrace.main(VerifyStackTrace.java:216)
      Main found: true
      ----------System.err:(50/3416)----------

      Unexpected stack trace:
      <!-- expected -->
      1: VerifyStackTrace.lambda$test$??(VerifyStackTrace.java:00)
      2: VerifyStackTrace$$Lambda$??/xxxxxxxx.run(Unknown Source)
      3: VerifyStackTrace$Handle.execute(VerifyStackTrace.java:00)
      4: java.lang.invoke.LambdaForm$DMH/xxxxxxxx.invokeVirtual_LL_V(java.base/LambdaForm$DMH)
      5: java.lang.invoke.LambdaForm$MH/xxxxxxxx.invoke_MT(java.base/LambdaForm$MH)
      6: VerifyStackTrace$Handle.run(VerifyStackTrace.java:00)
      7: VerifyStackTrace.invoke(VerifyStackTrace.java:00)
      8: jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(java.base/Native Method)
      9: jdk.internal.reflect.NativeMethodAccessorImpl.invoke(java.base/NativeMethodAccessorImpl.java:00)
      10: jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(java.base/DelegatingMethodAccessorImpl.java:00)
      11: java.lang.reflect.Method.invoke(java.base/Method.java:00)
      12: VerifyStackTrace$??.run(VerifyStackTrace.java:00)
      13: java.security.AccessController.doPrivileged(java.base/Native Method)
      14: VerifyStackTrace.test(VerifyStackTrace.java:00)
      15: VerifyStackTrace.main(VerifyStackTrace.java:00)

      <-- actual -->
      1: VerifyStackTrace.lambda$test$1(VerifyStackTrace.java:244)
      2: VerifyStackTrace$$Lambda$1/87578055.run(Unknown Source)
      3: VerifyStackTrace$Handle.execute(VerifyStackTrace.java:175)
      4: java.lang.invoke.LambdaForm$MH/943578605.invokeVirtual_LL_V(java.base@9-ea/LambdaForm$MH)
      5: java.lang.invoke.LambdaForm$MH/784624748.invoke_MT(java.base@9-ea/LambdaForm$MH)
      6: VerifyStackTrace$Handle.run(VerifyStackTrace.java:179)
      7: VerifyStackTrace.invoke(VerifyStackTrace.java:223)
      8: jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(java.base@9-ea/Native Method)
      9: jdk.internal.reflect.NativeMethodAccessorImpl.invoke(java.base@9-ea/NativeMethodAccessorImpl.java:49)
      10: jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(java.base@9-ea/DelegatingMethodAccessorImpl.java:43)
      11: java.lang.reflect.Method.invoke(java.base@9-ea/Method.java:527)
      12: VerifyStackTrace$1.run(VerifyStackTrace.java:254)
      13: java.security.AccessController.doPrivileged(java.base@9-ea/Native Method)
      14: VerifyStackTrace.test(VerifyStackTrace.java:240)
      15: VerifyStackTrace.main(VerifyStackTrace.java:216)

      java.lang.RuntimeException: Unexpected stack trace for: StackWalker.getInstance(StackWalker.Option.RETAIN_CLASS_REFERENCE, StackWalker.Option.SHOW_HIDDEN_FRAMES)
      at VerifyStackTrace.test(VerifyStackTrace.java:280)
      at VerifyStackTrace.main(VerifyStackTrace.java:218)
      at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(java.base@9-ea/Native Method)
      at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(java.base@9-ea/NativeMethodAccessorImpl.java:62)
      at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(java.base@9-ea/DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(java.base@9-ea/Method.java:535)
      at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:110)
      at java.lang.Thread.run(java.base@9-ea/Thread.java:843)

        Attachments

          Activity

            People

            Assignee:
            redestad Claes Redestad
            Reporter:
            xiaofeya Xiaofeng Yang
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: