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

java/lang/StackWalker/VerifyStackTrace.java failed with Unexpected stack trace

    Details

    • Subcomponent:
    • CPU:
      x86_64
    • OS:
      linux
    • Verification:
      Not verified

      Description

      This failure can be reproduced permanently with Jigsaw build on several Linux hosts.

      Please refer to the test output:
      ----------messages:(3/183)----------
      command: main -XX:-MemberNameInStackFrame VerifyStackTrace
      reason: User specified action: run main/othervm -XX:-MemberNameInStackFrame VerifyStackTrace
      elapsed time (seconds): 1.267
      ----------System.out:(11/563)----------

      Testing: StackWalker.getInstance(StackWalker.Option.RETAIN_CLASS_REFERENCE)
      1: VerifyStackTrace.lambda$test$1(VerifyStackTrace.java:245)
      2: VerifyStackTrace$Handle.execute(VerifyStackTrace.java:176)
      3: VerifyStackTrace$Handle.run(VerifyStackTrace.java:189)
      4: VerifyStackTrace.invoke(VerifyStackTrace.java:224)
      5: VerifyStackTrace$1.run(VerifyStackTrace.java:257)
      6: java.security.AccessController.doPrivileged(java.base@9-ea/Native Method)
      7: VerifyStackTrace.test(VerifyStackTrace.java:266)
      8: VerifyStackTrace.main(VerifyStackTrace.java:217)
      Main found: true
      ----------System.err:(36/2074)----------

      Unexpected stack trace:
      <!-- expected -->
      1: VerifyStackTrace.lambda$test$??(VerifyStackTrace.java:00)
      2: VerifyStackTrace$Handle.execute(VerifyStackTrace.java:00)
      3: VerifyStackTrace$Handle.run(VerifyStackTrace.java:00)
      4: VerifyStackTrace.invoke(VerifyStackTrace.java:00)
      5: VerifyStackTrace$??.run(VerifyStackTrace.java:00)
      6: java.security.AccessController.doPrivileged(java.base/Native Method)
      7: VerifyStackTrace.test(VerifyStackTrace.java:00)
      8: VerifyStackTrace.main(VerifyStackTrace.java:00)

      <-- actual -->
      1: VerifyStackTrace.lambda$test$1(VerifyStackTrace.java:245)
      2: VerifyStackTrace$Handle.execute(VerifyStackTrace.java:176)
      3: VerifyStackTrace$Handle.run(VerifyStackTrace.java:189)
      4: VerifyStackTrace.invoke(VerifyStackTrace.java:224)
      5: VerifyStackTrace$1.run(VerifyStackTrace.java:257)
      6: java.security.AccessController.doPrivileged(java.base@9-ea/Native Method)
      7: VerifyStackTrace.test(VerifyStackTrace.java:266)
      8: VerifyStackTrace.main(VerifyStackTrace.java:217)

      java.lang.RuntimeException: Unexpected stack trace for: StackWalker.getInstance(StackWalker.Option.RETAIN_CLASS_REFERENCE)
      at VerifyStackTrace.test(VerifyStackTrace.java:281)
      at VerifyStackTrace.main(VerifyStackTrace.java:217)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(java.base@9-ea/Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(java.base@9-ea/NativeMethodAccessorImpl.java:62)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(java.base@9-ea/DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(java.base@9-ea/Method.java:531)
      at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:110)
      at java.lang.Thread.run(java.base@9-ea/Thread.java:804)

        Attachments

          Activity

            People

            • Assignee:
              mchung Mandy Chung
              Reporter:
              xiaofeya Xiaofeng Yang
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: