java.lang.RuntimeException: Unexpected stack trace for: StackWalker.getInstance(StackWalker.Option.RETAIN_CLASS_REFERENCE, StackWalker.Option.SHOW_HIDDEN_FRAMES)

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • 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)
    via by Felix Yang,
  • 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)
    via by Felix Yang,
    • 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)
    No Bugmate found.